/* Global Reset & Variables */
:root {
    --bg-color: #050510;
    /* Very deep blue-black base */
    --text-color: #ffffff;
    --accent-color: #ededed;
    --secondary-text: #a0a0a0;

    /* User Provided Palette - PRINTING PRESS CMYK THEME */
    --color-cyan: #00E5FF;
    /* Neon Cyan */
    --color-magenta: #FF00E6;
    /* Neon Magenta */
    --color-yellow: #FFEA00;
    /* Neon Yellow */
    --color-black: #000000;
    /* Key (Black) */

    --color-deep-blue: #0A0A20;
    /* Keep deep blue as a base */

    /* Re-injecting gradients for CMYK feel */
    --brand-gradient: linear-gradient(90deg, var(--color-cyan), var(--color-magenta), var(--color-yellow));
    --brand-gradient-text: -webkit-linear-gradient(0deg, var(--color-cyan), var(--color-magenta), var(--color-yellow));
    /* Fallback to Cyan */
    --color-gold: #56BAE7;
    /* Fallback to Cyan */

    /* Superlative "Separated" Theme */
    /* We avoid mixing them in a gradient. We use them distinctively. */
    --brand-primary: var(--color-cyan);
    --brand-secondary: var(--color-deep-blue);

    /* Using Cyan for text gradients to make it pop against dark backgrounds */
    --brand-gradient: linear-gradient(90deg, var(--color-cyan), #ffffff);
    --brand-gradient-text: -webkit-linear-gradient(0deg, var(--color-cyan), #ffffff);

    --nav-height: 150px;
    --font-heading: 'Outfit', sans-serif;
    /* Bold, Modern, Unstretched */
    --font-body: 'Manrope', sans-serif;
    /* Clean, High Readability */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

/* Typography Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* HEADER & NAVIGATION - THE "ORBITAL COMMAND" SPECTACLE */
#main-header {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

#main-header.scrolled {
    top: 15px;
}

.header-container {
    pointer-events: auto;
    width: 90%;
    max-width: 1700px;
    background: rgba(10, 10, 25, 0.5);
    /* Ultra-sheer dark glass */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    /* Less rounded, more tech */
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.5s ease;
    position: relative;
    overflow: visible;
    /* Allowing elements to break out */
}

#main-header.scrolled .header-container {
    background: rgba(5, 5, 10, 0.85);
    padding: 10px 40px;
    border-radius: 100px;
    /* Morph to capsule on scroll */
    width: 85%;
    border-color: rgba(86, 186, 231, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(86, 186, 231, 0.1);
}

/* Logo - Larger & Spectacular */
.logo-container {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    /* Increased size significantly */
    width: auto;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 15px rgba(86, 186, 231, 0.2));
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.15) rotate(-2deg);
    filter: drop-shadow(0 0 30px rgba(86, 186, 231, 0.6));
}

/* Navigation - "The Floating Hologram" Concept */
.main-nav {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-list {
    display: flex;
    gap: 15px;
    /* Spaced out for elegance */
    padding: 0;
    background: transparent;
    position: relative;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    perspective: 1000px;
}

.nav-link {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 24px;
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
}

/* Unique "Liquid Fill" Hover Effect */
.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 0%;
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
    opacity: 0;
}

.nav-link:hover::before {
    width: 300%;
    height: 300%;
    opacity: 0.15;
}

.nav-link::after {
    /* Top & Bottom brackets appearance */
    content: '';
    position: absolute;
    inset: 0;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    transform: scaleX(0);
    transition: all 0.5s ease;
}

.nav-link:hover::after {
    border-color: var(--color-cyan);
    transform: scaleX(1);
    box-shadow: 0 0 15px rgba(86, 186, 231, 0.3) inset;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    letter-spacing: 2px;
}

/* Special Active State Indicator - "The Dot" */
.nav-item:hover .nav-link+.nav-indicator {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Arrow Animation */
.arrow-icon {
    font-size: 0.7rem;
    margin-left: 8px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0.5;
}

.has-submenu:hover .arrow-icon {
    transform: rotate(180deg);
    color: var(--color-cyan);
    opacity: 1;
}

/* SUBMENU - REINVENTED "CYBER GLOW" PANEL */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) perspective(2000px) rotateX(-20deg) scale(0.8);
    transform-origin: top center;

    background: linear-gradient(160deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 20, 0.98) 100%);
    min-width: 300px;
    /* Wider for impact */
    padding: 25px;
    border-radius: 20px;

    /* Neon Glow Shadow - Deep Blue dominant */
    box-shadow:
        0 15px 50px rgba(15, 30, 92, 0.8),
        0 0 0 1px rgba(86, 186, 231, 0.2),
        0 0 30px rgba(86, 186, 231, 0.1);
    /* Cyan dim glow */

    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);

    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 900;
    margin-top: 15px;
    /* Physical gap */
}

/* Glowing Top Line - Cyan */
.submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--color-cyan);
    box-shadow: 0 0 20px var(--color-cyan);
    border-radius: 10px;
}

/* Triangle connector */
.submenu::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-cyan);
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) perspective(2000px) rotateX(0deg) scale(1);
    margin-top: 25px;
    /* Slide down effect */
}

.submenu-link {
    display: block;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.submenu-link:last-child {
    border-bottom: none;
}

/* Stunning Hover Effect for Items */
.submenu-link:hover {
    color: #fff;
    background: linear-gradient(90deg, rgba(86, 186, 231, 0.1), transparent);
    padding-left: 30px;
    /* Slight slide */
    text-shadow: 0 0 10px rgba(86, 186, 231, 0.6);
    /* Cyan glow text */
}

.submenu-link::before {
    /* The indicator line */
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 70%;
    background: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.submenu-link:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* Hamburger for mobile */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* HERO SECTION - Initial WOW factor */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image:
        radial-gradient(circle at top right, rgba(50, 50, 50, 0.4) 0%, transparent 60%),
        linear-gradient(to bottom, #000000, #141414);
    /* Fallback/Base */
    overflow: hidden;
}

/* Animated background element */
.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 20%);
    animation: rotateBg 30s linear infinite;
    z-index: 1;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.highlight {
    background: var(--brand-gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Changed to inline-block for better flow */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-text);
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.8s;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 1.1s;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-deep-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-color);
}

.btn-primary:hover::before {
    transform: scaleX(1);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* Responsive - UPDATED TO INCLUDE TABLETS (up to 1024px) */
@media (max-width: 1024px) {

    /* Show Hamburger on Tablets too */
    .mobile-menu-toggle {
        display: flex;
        /* Flex to center icon */
        z-index: 1001;
        font-size: 1.5rem;
        cursor: pointer;
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        width: 45px;
        height: 45px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Adjust Header Container for Mobile/Tablet */
    .header-container {
        padding: 10px 20px;
        justify-content: space-between;
        width: 95%;
    }

    /* MOBILE MENU - THE CYBER PORTAL */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        max-width: 400px;
        /* Drawer width */
        background: rgba(5, 5, 12, 0.98);
        /* Less transparent for readability */
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        /* Below toggle (1001) but above everything else */
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
        border-left: 1px solid rgba(86, 186, 231, 0.15);
        pointer-events: auto;
        /* ENSURE CLICKABLE */
    }

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

    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: left;
        /* Align left for better hierarchy */
        width: 100%;
        padding: 80px 40px;
        /* More padding */
        align-items: flex-start;
    }

    .nav-item {
        width: 100%;
        display: block !important;
        /* Force block to drop submenu down */
        perspective: none !important;
        transform: none !important;
        height: auto !important;
        overflow: visible;
        /* Let submenu appear */
    }

    .nav-link {
        font-size: 1.8rem;
        /* Big and tappable */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        opacity: 0;
        transform: translateX(30px);
        width: 100%;
        text-align: left;
    }

    /* Show links when active */
    .main-nav.active .nav-link {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger Delays */
    .main-nav.active .nav-item:nth-child(1) .nav-link {
        transition-delay: 0.1s;
    }

    .main-nav.active .nav-item:nth-child(2) .nav-link {
        transition-delay: 0.2s;
    }

    .main-nav.active .nav-item:nth-child(3) .nav-link {
        transition-delay: 0.3s;
    }

    .main-nav.active .nav-item:nth-child(4) .nav-link {
        transition-delay: 0.4s;
    }

    .main-nav.active .nav-item:nth-child(5) .nav-link {
        transition-delay: 0.5s;
    }

    /* SUBMENU - SOLID MOBILE RESET */
    .submenu {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        transition: none !important;
        /* Stop any floating animations */
        background: rgba(255, 255, 255, 0.05);
        border: none;
        box-shadow: none;
        display: none;
        padding: 0;
        margin: 10px 0 20px 0;
        opacity: 1;
        visibility: visible;
        width: 100%;
        border-radius: 8px;
        z-index: 1;
    }

    .submenu.open {
        display: block !important;
    }

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

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

    .submenu-list {
        padding: 10px 0;
    }

    .has-submenu .nav-link::after {
        display: none;
    }

    /* Force submenu visual fix - Ensure text is visible and not overlapping */
    .submenu-link {
        font-size: 1rem;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.6);
        text-align: left;
    }

    .submenu-link:hover {
        background: rgba(86, 186, 231, 0.1);
        color: #fff;
        /* Reset shift on mobile */
    }

    /* Hero Adjustments */
    .hero-title {
        font-size: 3rem;
    }

    .logo {
        height: 50px;
        /* Smaller logo on mobile */
    }
}

@media (max-width: 480px) {
    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .header-container {
        padding: 10px 15px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}