/**
 * INIO Knowledge Base - Style Refinement
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Orbitron:wght@400;700&display=swap');

body, html { 
    margin: 0; 
    padding: 0; 
    background: #1c2327; /* Darker Gunmetal variant */
    color: #eee;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    font-size: 18px;
}

/* Base Heading Style */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

header {
    padding: 40px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 50px;
}

nav {
    display: flex;
    align-items: center; /* Use center for better logo/text alignment */
    gap: 40px;
}

.logo-h1 {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* SVG Logo Styling */
.logo-svg {
    height: 40px;
    width: 140px;
    display: block;
}

.logo-text-svg {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    fill: #4A6FF3;
}

.nav-links {
    display: flex;
    flex-grow: 1;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 20px;
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Orbitron', sans-serif;
}

.nav-links a:hover {
    color: #33FF57; 
}

.nav-links a.active {
    border-bottom: 2px solid transparent; /* Animated via colorShift */
}

.contact-link {
    margin-left: auto; /* Push to the right */
}

/* Pure CSS Color Animation */
@keyframes colorShift {
    0% { color: rgb(255, 87, 51); fill: rgb(255, 87, 51); border-bottom-color: rgb(255, 87, 51); }
    12.5% { color: rgb(51, 255, 87); fill: rgb(51, 255, 87); border-bottom-color: rgb(51, 255, 87); }
    25% { color: rgb(51, 87, 255); fill: rgb(51, 87, 255); border-bottom-color: rgb(51, 87, 255); }
    37.5% { color: rgb(243, 51, 255); fill: rgb(243, 51, 255); border-bottom-color: rgb(243, 51, 255); }
    50% { color: rgb(51, 255, 243); fill: rgb(51, 255, 243); border-bottom-color: rgb(51, 255, 243); }
    62.5% { color: rgb(243, 255, 51); fill: rgb(243, 255, 51); border-bottom-color: rgb(243, 255, 51); }
    75% { color: rgb(255, 140, 0); fill: rgb(255, 140, 0); border-bottom-color: rgb(255, 140, 0); }
    87.5% { color: rgb(0, 206, 209); fill: rgb(0, 206, 209); border-bottom-color: rgb(0, 206, 209); }
    100% { color: rgb(255, 87, 51); fill: rgb(255, 87, 51); border-bottom-color: rgb(255, 87, 51); }
}

.animate-title {
    animation: colorShift 20s linear infinite;
}

/* Content Area */
.content {
    max-width: 800px;
    margin: 0 auto;
}

.content p { margin-bottom: 1.5em; }
.content a { color: #4A6FF3; }

/* Code Blocks */
pre { background: #1a2226; padding: 20px; border-radius: 8px; overflow-x: auto; border: 1px solid #333; font-size: 16px; line-height: 1.5; }
code { background: #333; padding: 2px 6px; border-radius: 4px; font-family: monospace; }
pre code { background: transparent; padding: 0; }

footer {
    margin-top: 100px;
    border-top: 1px solid #333;
    padding: 40px 0;
    font-size: 0.9em;
    color: #888;
    text-align: center;
}

footer a { color: #aaa; text-decoration: none; }
footer a:hover { color: #33FF57; }

/* Table Support */
table { width: 100%; border-collapse: collapse; margin-bottom: 2em; background: #1a2226; border-radius: 8px; overflow: hidden; border: 1px solid #444; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #333; }
th { background: #333; color: #4A6FF3; font-family: 'Orbitron', sans-serif; font-size: 0.9em; text-transform: uppercase; letter-spacing: 1px; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: #232c32; }
tr:hover { background: #2d383f; }

/* Contact Page — Two Column Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 2em;
}

.contact-grid .security-col h2,
.contact-grid .signal-col h2 {
    font-size: 1.1em;
    color: #4A6FF3;
    margin-bottom: 0.8em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-grid p {
    color: #ccc;
    line-height: 1.8;
}

.contact-grid a {
    color: #4A6FF3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s;
}

.contact-grid a:hover {
    border-bottom-color: #33FF57;
}

.contact-grid ul {
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
}

.contact-grid ul li {
    padding: 0.4em 0;
    padding-left: 1.2em;
    position: relative;
    color: #ccc;
}

.contact-grid ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #33FF57;
}

.signal-card {
    background: #232c32;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.signal-card img {
    max-width: 240px;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

.signal-card .signal-handle {
    font-family: 'Orbitron', sans-serif;
    color: #4A6FF3;
    font-size: 1.1em;
    margin-top: 1em;
    letter-spacing: 1px;
}

.signal-card .signal-desc {
    color: #999;
    font-size: 0.9em;
    margin-top: 0.5em;
}

/* About Page */
.about-hero {
    margin: 1.5em 0;
}

.about-hero img {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    border: 1px solid #333;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 1.5em 0;
}

.about-values .value-item {
    background: #232c32;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px 20px;
}

.about-values .value-item h3 {
    font-size: 0.85em;
    color: #4A6FF3;
    margin-bottom: 0.4em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-values .value-item p {
    color: #ccc;
    font-size: 0.95em;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Adjustments */

/* Table Scroll Wrapper */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2em;
    border-radius: 8px;
    border: 1px solid #444;
}

.table-wrapper table {
    margin-bottom: 0;
    border: none;
}

/* Base Responsive Elements */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Medium Screens (Tablets) */
@media (max-width: 768px) {
    body, html {
        font-size: 16px;
    }

    .container {
        padding: 0 20px;
    }

    header {
        padding: 30px 0;
        margin-bottom: 30px;
    }

    nav {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .contact-link {
        margin-left: 0;
    }

    .content {
        padding: 0 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-values { 
        grid-template-columns: 1fr; 
    }
}

/* Small Screens (Phones) */
@media (max-width: 480px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 16px;
    }

    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    
    footer {
        margin-top: 60px;
        padding: 30px 0;
    }
}
