/* Shared site chrome: body background, navbar, and footer.
   Loaded on every page before the page-specific stylesheet so the
   navbar/footer look identical everywhere. */

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: #e6edf3;
    background: linear-gradient(135deg, #0d1117 0%, #111827 50%, #1a2332 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0d1117;
    color: #FFFFFF;
    border-bottom: 1px solid #30363d;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.navbar-title {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(1.2); /* Brighten icons */
}

.navbar-links {
    display: flex;
    gap: 20px;
}

.navbar-links a {
    color: #e2e2e2;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.navbar-links a:hover {
    color: #2dd4bf;
    text-decoration: underline;
}

/* Hamburger toggle button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.6em;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

/* Footer */
.footer {
    background-color: #0d1117;
    color: #8b949e;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #30363d;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.footer-logos p {
    width: 100%;
    margin: 0 0 10px;
    color: #e0e0e0;
}

.footer-logos img {
    height: 50px;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-logos img:hover {
    transform: scale(1.1);
}

/* =====================
   Mobile Responsive
   ===================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        order: 2;
    }

    .navbar {
        flex-wrap: wrap;
        padding: 10px 15px;
        gap: 8px;
    }

    .social-icons {
        order: 0;
    }

    .navbar-title {
        font-size: 1em;
        order: 1;
        flex: 1;
        text-align: center;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        background-color: #161b22;
        border-radius: 6px;
        overflow: hidden;
        gap: 0;
    }

    .navbar-links.nav-open {
        display: flex;
    }

    .navbar-links a {
        padding: 12px 20px;
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1em;
    }

    .footer-logos {
        flex-direction: column;
        gap: 12px;
    }

    .footer-logos img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .navbar-title {
        font-size: 0.85em;
    }
}
