/* NAVIGATION */
.fixed-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: all 0.4s ease;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.fixed-nav.sticky {
    background: var(--sticky-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.meta {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-left: 1rem;
}

.nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.theme-toggle:hover {
    background: var(--border-color);
    color: var(--accent-color);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    opacity: 0.8;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--accent-color);
}

/*.nav-link.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* DESKTOP DROPDOWN */
.has-dropdown {
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: -2rem;
    /* Buffer to prevent closing when moving mouse to menu */
}

.has-dropdown .nav-link {
    cursor: default;
    display: flex;
    align-items: center;
    gap: 8px;
}

.has-dropdown .nav-link::after {
    content: '→';
    /* Technical arrow look */
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .nav-link::after {
    transform: rotate(90deg);
    opacity: 1;
    color: var(--accent-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--dropdown-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    min-width: 200px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.8rem 0;
    opacity: 0.6;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-sub:last-child {
    border-bottom: none;
}

.nav-sub:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 10px;
    /* Subtle slide effect */
}

/* Ensure dropdown works on sticky nav */
.fixed-nav.sticky .dropdown-menu {
    top: 100%;
    background: var(--sticky-bg);
}

/* HERO */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.hero-bg-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-glass-card {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    /* 35/65 balanced split */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.hero-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12rem 3rem 4rem 5%;
    /* Top padding for nav safety */
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 2rem;
    color: var(--accent-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    animation: zero-gravity 6s ease-in-out infinite;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--font-heading);
    line-height: 0.85;
    margin-bottom: 2.5rem;
    animation: zero-gravity 8s ease-in-out infinite 0.5s;
}

.hero-title span {
    display: block;
}

.span-thin {
    font-weight: 200;
    font-size: clamp(1.4rem, 3.5vw, 3rem);
    opacity: 0.8;
}

.span-bold {
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 6.5rem);
    letter-spacing: -0.02em;
}

.span-outline {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 5.5rem);
    -webkit-text-stroke: 1px var(--text-color);
    color: transparent;
    opacity: 0.4;
}

.accent-text {
    color: var(--accent-color);
}

.hero-meta {
    max-width: 420px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    animation: zero-gravity 10s ease-in-out infinite 1s;
}

.hero-actions {
    display: flex;
    gap: 2rem;
    animation: zero-gravity 9s ease-in-out infinite 1.5s;
}

.radar-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 2.5rem;
    background: var(--accent-color);
    color: #000;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: all 0.4s var(--ease);
}

.radar-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

.radar-ping {
    position: relative;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
}

@keyframes zero-gravity {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.radar-ping::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #000;
    animation: ping 1.5s infinite;
}

@keyframes ping {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 400%;
        height: 400%;
        opacity: 0;
    }
}

.card-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10% 5%;
    z-index: 1;
}

.cube-wall {
    position: relative;
    width: 100%;
    max-width: 650px;
    /* Reduced from 850px to prevent overflow */
    aspect-ratio: 1;
    /* AURORA LIGHT ENGINE - Shimmering multicolor Northern Lights */
    background:
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(234, 179, 8, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.3) 0%, transparent 50%),
        #020617;
    /* Dark base for contrast */
    animation: aurora-shimmer 12s ease-in-out infinite alternate;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    /* Reduced gap slightly */
    padding: 20px;
    /* Reduced padding slightly */
    perspective: 2000px;
    overflow: visible;
    border-radius: 40px;
    /* Sophisticated large radius */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
    transform: perspective(1200px) rotateY(-5deg);
    transition: all 0.5s ease;
}

@keyframes aurora-shimmer {
    0% {
        filter: hue-rotate(0deg) brightness(1);
        transform: perspective(1200px) rotateY(-5deg) scale(1);
    }

    50% {
        filter: hue-rotate(30deg) brightness(1.2);
        transform: perspective(1200px) rotateY(-3deg) scale(1.02);
    }

    100% {
        filter: hue-rotate(-20deg) brightness(1.1);
        transform: perspective(1200px) rotateY(-7deg) scale(0.98);
    }
}

/* Light core effect removed for transparency */
.cube-wall::before {
    display: none;
}

/* --- 3D CUBE SYSTEM --- */
.cube-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    transform-style: preserve-3d;
    will-change: transform;
    /* Independent motion variables */
    --z-depth: 30px;
    --rot-x: 2deg;
    --rot-y: 2deg;
    animation: cube-mechanical 8s ease-in-out infinite;
    /* Atmospheric Specular Glow */
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.15));
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    /* MACHINED MATERIAL - High specular edges */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.03);
    backface-visibility: hidden;
    transition: all 0.3s ease;
}

/* Front Face with Campaign Image */
.cube-face-front {
    transform: rotateY(0deg) translateZ(30px);
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Side faces for 3D depth */
.cube-face-right {
    transform: rotateY(90deg) translateZ(30px);
    background: linear-gradient(to left, #1e293b, #0f172a);
}

.cube-face-left {
    transform: rotateY(-90deg) translateZ(30px);
    background: linear-gradient(to right, #020617, #0f172a);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(30px);
    background: linear-gradient(to bottom, #334155, #0f172a);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(30px);
    background: linear-gradient(to top, #020617, #0f172a);
}

/* --- INDEPENDENT MECHANICAL ANIMATION --- */
@keyframes cube-mechanical {

    0%,
    100% {
        transform: translate3d(0, 0, -50px) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translate3d(0, 0, var(--z-depth)) rotateX(var(--rot-x)) rotateY(var(--rot-y));
    }
}



/* Mobile Adjustments */
@media (max-width: 768px) {
    .cube-wall {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }
}


.scroll-wrapper {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--text-muted);
    animation: scrollDrop 2s infinite;
}

@keyframes scrollDrop {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* MOBILE MENU */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    transform: rotate(-45deg) translate(2px, -1px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 80px 2rem 2rem;
    overflow-y: auto;
}

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

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    text-align: center;
}

.mobile-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: auto;
    width: 100%;
    align-items: center;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--accent-color);
}

.mobile-dropdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.mobile-submenu {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 0;
    align-items: center;
    background: var(--card-bg);
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 4px;
}

.mobile-submenu.active {
    display: flex;
    /* Show when active */
    animation: fadeIn 0.3s ease;
}

/* Arrow for Dropdown Parent */
.mobile-dropdown .mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.mobile-dropdown .mobile-link::after {
    content: '▼';
    /* Down arrow */
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.mobile-dropdown.active .mobile-link::after {
    transform: rotate(180deg);
    /* Rotate when open */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-submenu a {
    font-family: var(--font-body);
    font-size: 1.1rem;
    /* Slightly larger for touch */
    color: var(--text-color);
    /* Higher contrast */
    opacity: 0.7;
    transition: all 0.3s;
    padding: 0.5rem 0;
}

.mobile-submenu a:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateX(5px);
}

.mobile-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-details p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .nav-right {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-section {
        height: 100vh;
        height: 100svh;
        padding: 0;
        overflow: hidden;
    }

    .hero-glass-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        width: 100%;
        max-width: 100%;
        height: 100%;
        padding: 0;
        gap: 0;
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(5, 7, 10, 0.4);
    }

    .card-visual {
        order: -1;
        height: 40vh;
        /* slightly reduced from 45vh */
        width: 100%;
        max-width: 90vw;
        /* Keep it contained inside viewport width */
        border-radius: 0;
        margin: 0 auto;
        /* center horizontally */
        border: none;
        overflow: hidden;
    }

    .card-content {
        padding: 3rem 1.5rem;
        justify-content: flex-start;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero-badge {
        margin-bottom: 1.5rem;
        font-size: 0.65rem;
    }

    .hero-title {
        gap: 0.2rem;
        margin-bottom: 2rem;
        align-items: center;
    }

    .hero-meta {
        margin: 0 auto 2.5rem;
        padding: 0 1rem;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
    }

    .span-thin {
        font-size: 1.2rem;
    }

    .span-bold {
        font-size: 2rem;
        letter-spacing: -0.01em;
    }

    .span-outline {
        font-size: 2.2rem;
    }

    .hero-meta p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .radar-btn {
        padding: 1rem 2rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* --- PREMIUM PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #05070a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader-brand {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.5em;
    color: #fff;
    margin-right: -0.5em;
    /* Correct tracking center */
    animation: preloader-pulse 4s ease-in-out infinite;
}

.preloader-line {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loading-bar {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    animation: loading-sweep 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.preloader-status {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--accent-color);
    opacity: 0.6;
    text-transform: uppercase;
}

@keyframes preloader-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.98);
        letter-spacing: 0.5em;
    }

    50% {
        opacity: 1;
        transform: scale(1);
        letter-spacing: 0.6em;
    }
}

@keyframes loading-sweep {
    0% {
        left: -100%;
    }

    50% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}