/* css/global.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

:root {
    /* Permanent Light Mode Variables */
    --bg-color: #FFFFFF;
    --text-primary: #171717;
    --text-secondary: #5A5A5A;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --border-color: #EAE8ED;
    --brand-gradient: linear-gradient(135deg, #8061E8 0%, #FF0080 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   Navigation (Finalized Laptop & Mobile)
   ========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.brand-x {
    color: #FF0080;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 400;
    font-size: 0.9rem;
    align-items: center;
}

.nav-links a {
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #FF0080;
}

/* Hamburger Menu Button (Hidden on Laptop, Visible on Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* =========================================
   Mobile & Tablet Navigation Drawer (< 900px)
   ========================================= */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: #0A0A0A;
        /* Immersive dark mobile menu background */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

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

    .nav-links a {
        color: #FFFFFF !important;
        font-size: 1.8rem;
        font-weight: 600;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--brand-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Hamburger to 'X' transformation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: #FF0080;
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: #FF0080;
    }
}

/* =========================================
   Global Footer Section
   ========================================= */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 10vw 2rem;
    background: rgba(0, 0, 0, 0.02);
    width: 100%;
}

.footer-pre {
    text-align: center;
    padding: 2rem 10vw 6rem;
    border-bottom: 1px solid var(--border-color);
    margin: -5rem -10vw 5rem;
}

.footer-pre h2 {
    font-size: 3vw;
    font-weight: 300;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .footer-pre h2 {
        font-size: 1.8rem;
    }
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-quote {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.3;
    max-width: 500px;
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #FF0080;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    margin: 0 0.25rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}