/* ==========================================================================
   1. CUSTOM FONTS LOADING (Local Path)
   ========================================================================== */
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Fallback Google Fonts configuration embedded within root system */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght=500;700&display=swap');

/* ==========================================================================
   2. GLOBAL TECH-BLUE DESIGN VARIABLES
   ========================================================================== */
:root {
    --bg-dark: #0a0f1e;
    --bg-card: rgba(10, 25, 47, 0.7);
    --primary-neon: #00c6ff;
    --secondary-blue: #0072ff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-primary: 'Poppins', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
    --border-glass: rgba(0, 198, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ==========================================================================
   3. RESET & BASE THEME
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==========================================================================
   4. CORE HEADER & GLOBAL COMPONENT FRAMEWORKS
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 13, 26, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-area img {
    height: 38px;
    width: auto;
    display: block;
}

.brand-name {
    font-family: var(--font-tech);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    white-space: nowrap;
    background: linear-gradient(135deg, #ffffff 60%, var(--primary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: text-shadow 0.3s ease;
}

.logo-area:hover .brand-name {
    text-shadow: 0 0 12px rgba(0, 198, 255, 0.5);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    color: var(--text-muted);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-blue));
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 198, 255, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-neon);
    text-shadow: 0 0 8px rgba(0, 198, 255, 0.6);
}

/* ==========================================================================
   HAMBURGER — Desktop hidden, mobile shown
   ========================================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: rgba(0, 198, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    z-index: 1100;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hamburger:hover {
    background: rgba(0, 198, 255, 0.14);
    border-color: rgba(0, 198, 255, 0.4);
    box-shadow: 0 0 16px rgba(0, 198, 255, 0.2);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.25s ease,
                width 0.3s ease;
    transform-origin: center;
}

/* X animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   NAV OVERLAY
   ========================================================================== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.nav-overlay.active {
    opacity: 1;
}

/* ==========================================================================
   5. PREMIUM GLASSMORPHISM CARD UTILITY
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
}

/* ==========================================================================
   6. GLOBAL FOOTER UTILITY
   ========================================================================== */
footer {
    margin-top: auto;
    background: #030710;
    border-top: 1px solid var(--border-glass);
    padding: 3rem 2rem 1.5rem 2rem;
}

/* ==========================================================================
   7. MOBILE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-overlay {
        display: block;
    }

    /* Slide-in panel */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(280px, 80vw);
        height: 100dvh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        background: rgba(4, 9, 20, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--border-glass);
        padding: 90px 1.25rem 2rem;
        z-index: 999;
        transform: translateX(110%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        overflow-y: auto;
        box-shadow: -16px 0 40px rgba(0, 0, 0, 0.6);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* "NAVIGATION" label at top */
    .nav-menu::before {
        content: 'NAVIGATION';
        display: block;
        font-family: var(--font-tech);
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 3px;
        color: var(--primary-neon);
        opacity: 0.6;
        padding: 0 0.75rem 1rem;
        border-bottom: 1px solid var(--border-glass);
        margin-bottom: 0.75rem;
    }

    /* Staggered entry animation for each link */
    .nav-menu li {
        opacity: 0;
        transform: translateX(18px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active li { opacity: 1; transform: translateX(0); }
    .nav-menu.active li:nth-child(1) { transition-delay: 0.07s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.12s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.17s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.21s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.29s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.33s; }

    /* Individual link styling */
    .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-muted);
        padding: 0.8rem 0.75rem;
        border-radius: 10px;
        border: 1px solid transparent;
        margin-bottom: 4px;
        transition: color 0.25s ease, background 0.25s ease,
                    border-color 0.25s ease, box-shadow 0.25s ease;
        letter-spacing: 0.3px;
    }

    /* Neon dot indicator */
    .nav-link::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--primary-neon);
        box-shadow: 0 0 8px rgba(0, 198, 255, 0.8);
        opacity: 0;
        transform: scale(0);
        flex-shrink: 0;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    /* Remove desktop underline on mobile */
    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--text-main);
        background: rgba(0, 198, 255, 0.07);
        border-color: rgba(0, 198, 255, 0.18);
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        opacity: 1;
        transform: scale(1);
    }

    .nav-link.active {
        color: var(--primary-neon);
        background: rgba(0, 198, 255, 0.1);
        border-color: rgba(0, 198, 255, 0.3);
        box-shadow: 0 0 20px rgba(0, 198, 255, 0.12),
                    inset 0 0 12px rgba(0, 198, 255, 0.05);
        text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.05rem;
    }
    .nav-container {
        padding: 0.85rem 1.25rem;
    }
}