:root {
    --bg-color: #05050a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --neon-blue: #00f0ff;
    --neon-blue-glow: rgba(0, 240, 255, 0.5);
    --glass-bg: rgba(10, 10, 15, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom cursor */
}

/* Cinematic Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Custom Glowing Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--neon-blue);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    box-shadow: 0 0 20px 5px var(--neon-blue-glow);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: screen;
}
.custom-cursor.active {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 30px 10px rgba(0, 240, 255, 0.8);
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue-glow);
    z-index: 1001;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1001;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lang-toggle:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue-glow);
}

.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff;
    transition: all 0.3s ease;
}

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

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue-glow);
}

/* Parallax Hero Section */
.parallax-wrapper {
    position: relative;
    height: 100vh;
    overflow: clip; /* required for view-timeline parallax wrapper */
    view-timeline: --hero-wrapper block;
}

.hero {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%; /* slightly taller for parallax */
    background: url('assets/hero-bg.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    transform-origin: center;
}

.hero-content {
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: 8px;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    background: linear-gradient(to bottom, #fff, var(--neon-blue));
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0 0 30px var(--neon-blue-glow);
    margin-bottom: 0.5rem;
    position: relative;
    animation: atomic-pulse 3s infinite alternate;
}

@keyframes atomic-pulse {
    0% { text-shadow: 0 0 10px var(--neon-blue-glow), 0 0 20px var(--neon-blue-glow); }
    100% { text-shadow: 0 0 30px var(--neon-blue), 0 0 50px var(--neon-blue); }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite ease-in-out;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Scroll-driven animations setup */
@supports (animation-timeline: view()) and (animation-range: entry) {
    /* Parallax BG */
    @keyframes parallax-bg {
        from { transform: translateY(0); }
        to { transform: translateY(-20%); } /* move slower than scroll */
    }
    
    .hero-bg {
        animation: parallax-bg linear both;
        animation-timeline: --hero-wrapper;
    }

    /* Parallax Foreground */
    @keyframes parallax-front {
        from { transform: translateY(0); opacity: 1; }
        to { transform: translateY(200px); opacity: 0; } /* move faster, fade out */
    }

    .hero-content {
        animation: parallax-front linear both;
        animation-timeline: --hero-wrapper;
        animation-range: entry 0% exit 100%;
    }

    /* Entry Animations for Content */
    @keyframes fade-in-up {
        from { opacity: 0; transform: translateY(100px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .fade-in-on-scroll {
        animation: fade-in-up linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 30%;
    }

    @keyframes scale-up {
        from { opacity: 0; scale: 0.8; }
        to { opacity: 1; scale: 1; }
    }

    .slide-up-on-scroll {
        animation: scale-up linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 40%;
    }
}

/* Content Sections */
.content {
    position: relative;
    z-index: 10;
    background-color: var(--bg-color); /* Cover the parallax behind it */
    padding: 6rem 5% 4rem;
}

.section {
    max-width: 1000px;
    margin: 0 auto 8rem;
}

.section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    color: #fff;
}

.section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 3rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease, transform 0.1s ease; /* fast transform for JS tilt */
    transform-style: preserve-3d;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    z-index: 1;
}

.stat-card h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-blue);
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

/* Power Section specific */
.glow-box {
    margin-top: 3rem;
    padding: 2.5rem;
    border-left: 4px solid var(--neon-blue);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1) 0%, transparent 100%);
    border-radius: 0 16px 16px 0;
}

.glow-box p {
    margin: 0;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: #fff;
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 10, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav a {
        margin: 1.5rem 0;
        font-size: 1.5rem;
    }

    .menu-icon.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .menu-icon.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Make header stay above nav overlay */
    .glass-header {
        background: transparent;
        border-bottom: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .glass-header.scrolled {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--glass-border);
    }

    .section {
        margin-bottom: 5rem;
    }
    
    .glow-box {
        padding: 1.5rem;
    }
}

}
