/* ==========================================================================
   GLOBAL BASE STYLING (HEADER & FOOTER)
   ========================================================================== */

/* HEADER */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    background: rgba(5, 5, 5, 0.01);
    backdrop-filter: blur(0px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.main-header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -1px;
}

.nav-logo a {
    color: #fff;
    text-decoration: none;
}

.nav-logo span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* MOBILE TOGGLE */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-toggle span:nth-child(1) {
    top: 0;
}

.mobile-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-toggle span:nth-child(3) {
    bottom: 0;
}

/* FOOTER */
.main-footer {
    padding: 6rem 5% 3rem 5%;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.footer-brand h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-brand h2 span {
    color: var(--color-primary);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 6rem;
}

.footer-col h3 {
    font-size: 0.7rem;
    color: var(--color-primary);
    font-family: var(--font-mono);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.social-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

.social-links li a svg {
    transition: all 0.3s ease;
    opacity: 0.6;
}

.social-links li a:hover svg {
    opacity: 1;
    color: var(--color-primary);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 200, 200, 0.5));
}

.footer-bottom {
    max-width: 1400px;
    margin: 4rem auto 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    font-family: var(--font-mono);
}

.back-to-top a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.back-to-top a:hover {
    color: #fff;
}

/* MOBILE NAV OVERLAY */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        letter-spacing: 5px;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .mobile-toggle span {
        background: #fff;
    }

    .mobile-toggle.active span:first-child {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:last-child {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* FOOTER RESPONSIVENESS */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 1rem auto;
    }

    .footer-links {
        justify-content: center;
        gap: 4rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}