:root {
    --primary: #00ff00;
    --netflix-red: #E50914;
    --dark-bg: #0a0a0a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.1);
    --radius-lg: 30px;
    --radius-md: 16px;
    --container: 1400px;
    --gutter: clamp(16px, 4vw, 64px);
    --title-size: clamp(2.2rem, 6vw, 5.5rem);
    --desc-size: clamp(0.95rem, 1.4vw, 1.2rem);
    --card-pad: clamp(18px, 3.5vw, 60px);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--dark-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: white;
    overflow-x: hidden;
    cursor: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* ========== CURSOR (Desktop Only) ========== */
.custom-cursor {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.6;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: all 0.4s var(--ease-soft);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(160%);
    transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}

.nav-toggle:active {
    transform: scale(0.96);
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: rgba(255,255,255,0.9);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-soft);
}

.nav-toggle-bar + .nav-toggle-bar {
    margin-top: 6px;
}

.navbar.menu-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar.menu-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.navbar.menu-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.35s var(--ease-soft);
}

.navbar.menu-open .nav-scrim {
    opacity: 1;
}

.navbar.scrolled {
    height: 70px;
    background: rgba(0,0,0,0.98);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    color: #3af249;
}

.logo-icon {
    font-size: 2rem;
    animation: rotate 8s linear infinite;
    filter: drop-shadow(0 0 10px var(--netflix-red));
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-subtitle {
    color: white;
    font-size: 1rem;
    margin-left: 8px;
    opacity: 0.9;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-link-item {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-link-item:focus-visible,
.btn-play:focus-visible,
.btn-info:focus-visible,
.nav-toggle:focus-visible {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 3px;
}

.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--primary);
}

.nav-link-item:hover {
    color: var(--primary);
}

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

.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--netflix-red), var(--primary));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px var(--primary);
}

/* ========== STARFIELD ========== */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.aliens-bg {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(0,255,0,0.06), transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(229,9,20,0.05), transparent 55%),
        linear-gradient(180deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.80) 100%),
        url('images/omni.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transform: scale(1.04);
    filter: saturate(0.95) contrast(1.05);
    transition: opacity 0.9s var(--ease-soft), transform 1.2s var(--ease-out);
}

.aliens-bg.on {
    opacity: 1;
    transform: scale(1);
}

.scroll-container {
    min-height: 100vh;
}

/* ========== HERO SECTION ========== */
.hero-section {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 var(--gutter);
    overflow: hidden;
    z-index: 10;
}

@supports (height: 100svh) {
    .hero-section { height: 100svh; }
    .scene { height: 100svh; }
}

section[id] {
    scroll-margin-top: 90px;
}

.main-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    animation: heroEntrance 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    filter: brightness(0.80) contrast(1.1);
}

@keyframes heroEntrance {
    0% {
        transform: scale(1.15);
        filter: brightness(0) blur(10px);
    }
    100% {
        transform: scale(1.05);
        filter: brightness(0.80) blur(0px);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.5) 50%,
        transparent 100%
    );
    z-index: 1;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        transparent 20%,
        rgba(0,0,0,0.8) 100%
    );
    z-index: 1;
}

 .hero-spotlight {
     position: absolute;
     inset: 0;
     z-index: 1;
     pointer-events: none;
     opacity: var(--spot-opacity, 0);
     background:
         radial-gradient(
             circle var(--spot-size, 220px) at var(--spot-x, 50%) var(--spot-y, 50%),
             rgba(0, 0, 0, 0) 0%,
             rgba(0, 0, 0, 0.25) 35%,
             rgba(0, 0, 0, 0.78) 70%,
             rgba(0, 0, 0, 0.88) 100%
         );
     transition: opacity 0.35s var(--ease-soft);
 }

.hero-info {
    max-width: 650px;
    z-index: 2;
    animation: heroContentFade 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
    will-change: transform, opacity;
}

@keyframes heroContentFade {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid #3af249;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #3af249;
    margin-bottom: 20px;
    animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(229, 9, 20, 0.3); }
    50% { box-shadow: 0 0 25px rgba(229, 9, 20, 0.6); }
}

.netflix-title {
    font-size: var(--title-size);
    font-weight: 900;
    margin: 0 0 25px 0;
    line-height: 1;
    letter-spacing: -3px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px) rotateX(-90deg);
    animation: titleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: bottom;
    background: linear-gradient(135deg, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-word:nth-child(1) { animation-delay: 0.6s; }
.title-word:nth-child(2) { animation-delay: 0.8s; }
.title-word:nth-child(3) { animation-delay: 1s; }

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(100px) rotateX(-90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.netflix-desc {
    font-size: var(--desc-size);
    line-height: 1.7;
    margin: 25px 0;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
}

.hero-meta {
    display: flex;
    gap: 25px;
    margin: 25px 0;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.meta-item {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-play,
.btn-info {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    padding: 15px 35px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn-play {
    background: white;
    color: black;
}

.btn-play::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-play:hover::before {
    transform: translateX(100%);
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.btn-info {
    background: rgba(109, 109, 110, 0.5);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-info:hover {
    background: rgba(109, 109, 110, 0.8);
    border-color: white;
    transform: scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: scrollBounce 2s ease infinite;
    z-index: 2;
}

.scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    position: relative;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: scrollDot 2s ease infinite;
}

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

@keyframes scrollDot {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.3; top: 20px; }
}

/* ========== SCENE & CARDS ========== */
.scene {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.character-card {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.985);
    filter: blur(6px) saturate(0.9);
    transition: opacity 0.9s var(--ease-soft),
                visibility 0.9s var(--ease-soft),
                transform 0.9s var(--ease-out),
                filter 0.9s var(--ease-out);
}

.character-card.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    filter: blur(0px) saturate(1);
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 90%;
    max-width: 1400px;
    height: 100%;
    align-items: center;
    gap: 60px;
}

/* Photo Column */
.photo-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1.2s var(--ease-out);
    will-change: transform, opacity;
}

/* Description Column */
.desc-col {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(100px);
    transition: all 1.2s var(--ease-out);
    will-change: transform, opacity;
}

/* Layout Left */
.layout-left .photo-col {
    order: 1;
    transform: translateX(-100px);
}

.layout-left .desc-col {
    order: 2;
    transform: translateX(100px);
}

.layout-left.active .photo-col {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.layout-left.active .desc-col {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}

/* Layout Right */
.layout-right .desc-col {
    order: 1;
    transform: translateX(-100px);
}

.layout-right .photo-col {
    order: 2;
    transform: translateX(100px);
}

.layout-right.active .desc-col {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.layout-right.active .photo-col {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}

.character-layer {
    height: 110vh;
    max-width: 100%;
    object-fit: contain;
    z-index: 5;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 30px 80px rgba(0,0,0,0.9));
    position: relative;
}

.desc-content {
    background: var(--glass-bg);
    padding: var(--card-pad);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
    .character-card.active .desc-content {
        transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
    }

    .character-card.active .desc-content:hover {
        transform: translateY(-6px);
        box-shadow: 0 30px 90px rgba(0,0,0,0.65);
    }
}

.desc-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.05) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
}

.active .desc-content::before {
    opacity: 1;
}

.alien-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.active .alien-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.alien-name {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    letter-spacing: -1px;
    color: var(--primary);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 0 30px var(--primary);
}

.active .alien-name {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.power-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.active .power-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.power-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.active .power-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* Power Stats */
.power-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.active .stat-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.1s;
}

.active .stat-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.3s;
}

.active .stat-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.5s;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light, var(--primary)));
    border-radius: 10px;
    position: relative;
    animation: statFill 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: 0 0 20px var(--primary);
}

@keyframes statFill {
    0% { width: 0 !important; }
}

.stat-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.5), 
        transparent);
    animation: statShimmer 2s infinite;
}

@keyframes statShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Background Title */
.bg-title {
    position: absolute;
    font-size: 15vw;
    font-weight: 900;
    opacity: 0.03;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
    filter: blur(2px);
    text-shadow: 0 0 100px var(--primary);
}

/* ========== AURA EFFECTS ========== */
.action-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    transition: opacity 1s;
    z-index: 1;
    pointer-events: none;
}

.active .action-aura {
    opacity: 0.6;
    animation: auraPulse 3s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

.red-aura { background: radial-gradient(circle, #D21F3C, transparent); }
.orange-aura { background: radial-gradient(circle, #FF4500, transparent); }
.blue-aura { background: radial-gradient(circle, #00E5FF, transparent); }
.yellow-aura { background: radial-gradient(circle, #FFD700, transparent); }
.cyan-aura { background: radial-gradient(circle, #0099CC, transparent); }
.emerald-aura { background: radial-gradient(circle, #00FFAA, transparent); }
.brown-aura { background: radial-gradient(circle, #8B4513, transparent); }
.speed-aura { background: radial-gradient(circle, #00CCFF, transparent); }
.cosmic-aura { background: radial-gradient(circle, #FF0066, transparent); }
.tech-aura { background: radial-gradient(circle, #00FF00, transparent); }
.monkey-aura { background: radial-gradient(circle, #4169E1, transparent); }

/* Energy Rings */
.energy-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

.active .energy-rings {
    opacity: 1;
}

.energy-rings::before,
.energy-rings::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    box-shadow: 0 0 40px var(--primary), inset 0 0 40px var(--primary);
}

.energy-rings::before {
    width: 700px;
    height: 700px;
    animation: ringExpand 3s ease-in-out infinite;
}

.energy-rings::after {
    width: 900px;
    height: 900px;
    animation: ringExpand 3s ease-in-out infinite 1.5s;
}

@keyframes ringExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }
}

/* ========== CHARACTER ANIMATIONS ========== */
.active .action-shake { animation: powerShake 0.5s ease-in-out infinite alternate; }
@keyframes powerShake {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.02) rotate(0.5deg) translateY(-5px); }
}

.active .thermal-pulse { animation: heatPulse 4s ease-in-out infinite alternate; }
@keyframes heatPulse {
    0% { filter: url(#thermal-distortion) brightness(1) drop-shadow(0 20px 60px rgba(0,0,0,0.8)); }
    100% { filter: url(#thermal-distortion) brightness(1.4) drop-shadow(0 0 80px #FF4500); }
}

.active .reality-glitch { animation: glitchEffect 2s ease-in-out infinite; }
@keyframes glitchEffect {
    0%, 100% { filter: url(#chromatic-shift) drop-shadow(0 20px 60px rgba(0,0,0,0.8)); transform: translate(0, 0); }
    25% { filter: url(#chromatic-shift) hue-rotate(45deg) drop-shadow(0 0 80px #00E5FF); transform: translate(2px, -2px); }
    50% { filter: url(#chromatic-shift) drop-shadow(0 20px 60px rgba(0,0,0,0.8)); transform: translate(-2px, 2px); }
    75% { filter: url(#chromatic-shift) hue-rotate(-45deg) drop-shadow(0 0 80px #00E5FF); transform: translate(2px, 2px); }
}

.active .spin-effect { animation: cannonIdle 3s ease-in-out infinite; }
@keyframes cannonIdle {
    0%, 100% { transform: scale(1);     filter: brightness(1)   drop-shadow(0 20px 60px rgba(0,0,0,.8)); }
    50%       { transform: scale(1.03); filter: brightness(1.2) drop-shadow(0 0 60px #FFD700); }
}

.active .ice-pulse { animation: frostPulse 3s ease-in-out infinite; }
@keyframes frostPulse {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 40px #0099CC); }
    50% { filter: brightness(1.3) drop-shadow(0 0 80px #00FFFF); }
}

.active .crystal-shine { animation: diamondShine 3s ease-in-out infinite; }
@keyframes diamondShine {
    0%, 100% { filter: brightness(1) drop-shadow(0 20px 60px rgba(0,0,0,0.8)); }
    50% { filter: brightness(1.5) drop-shadow(0 0 100px #00FFAA) contrast(1.2); }
}

.active .stomp-shake { animation: stompQuake 1s ease-in-out infinite; }
@keyframes stompQuake {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-10px); }
    75% { transform: translateY(5px); }
}

.active .speed-blur { animation: speedStreak 0.5s ease-in-out infinite alternate; }
@keyframes speedStreak {
    0% { filter: blur(0px) drop-shadow(0 20px 60px rgba(0,0,0,0.8)); transform: translateX(0); }
    100% { filter: blur(2px) drop-shadow(10px 0 30px #00CCFF); transform: translateX(5px); }
}

.active .titan-pulse { animation: cosmicPulse 4s ease-in-out infinite; }
@keyframes cosmicPulse {
    0%, 100% { filter: brightness(1) drop-shadow(0 30px 80px rgba(0,0,0,0.9)); transform: scale(1); }
    50% { filter: brightness(1.2) drop-shadow(0 0 100px #FF0066); transform: scale(1.03); }
}

.active .liquid-flow { animation: techFlow 3s ease-in-out infinite; }
@keyframes techFlow {
    0%, 100% { filter: brightness(1) drop-shadow(0 20px 60px rgba(0,0,0,0.8)); }
    25% { filter: brightness(1.3) drop-shadow(0 0 60px #00FF00) hue-rotate(10deg); }
    50% { filter: brightness(1.1) drop-shadow(0 20px 60px rgba(0,0,0,0.8)); }
    75% { filter: brightness(1.3) drop-shadow(0 0 60px #00FF00) hue-rotate(-10deg); }
}

.active .swing-motion { animation: monkeySwing 2s ease-in-out infinite; }
@keyframes monkeySwing {
    0%, 100% { transform: rotate(-5deg) translateX(-10px); }
    50% { transform: rotate(5deg) translateX(10px); }
}

/* ========== TABLET RESPONSIVE ========== */
@media (max-width: 1200px) {
    .grid-layout { gap: 40px; }
    .desc-content { padding: 40px; }
    .alien-name { font-size: 2.5rem; }
    .netflix-title { font-size: 4.5rem; }
    .energy-rings::before { width: 600px; height: 600px; }
    .energy-rings::after { width: 750px; height: 750px; }
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 968px) {
    body { cursor: auto; }
    .custom-cursor, .cursor-follower { display: none; }
    
    .navbar { height: 70px; padding: 0 4%; }
    .nav-logo { font-size: 1.3rem; }
    .logo-icon { font-size: 1.6rem; }
    .logo-subtitle { font-size: 0.85rem; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(86vw, 360px);
        padding: 90px 22px 22px;
        background: rgba(0,0,0,0.86);
        border-left: 1px solid rgba(255,255,255,0.12);
        backdrop-filter: blur(24px) saturate(180%);
        flex-direction: column;
        gap: 18px;
        transform: translateX(110%);
        transition: transform 0.55s var(--ease-out);
        z-index: 1001;
    }

    .navbar.menu-open .nav-links {
        transform: translateX(0);
    }

    .nav-link-item { font-size: 0.95rem; padding: 10px 0; }
    
    .netflix-title { font-size: 3.5rem; gap: 10px; }
    .netflix-desc { font-size: 1.05rem; }
    .hero-meta { font-size: 0.85rem; gap: 15px; }
    .btn-play, .btn-info { padding: 12px 28px; font-size: 0.9rem; }
    
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }
    
    .layout-left .photo-col,
    .layout-right .photo-col {
        order: 1;
        height: 55vh;
        transform: translateY(-50px) scale(0.9);
    }
    
    .layout-left .desc-col,
    .layout-right .desc-col {
        order: 2;
        transform: translateY(50px);
    }
    
    .layout-left.active .photo-col,
    .layout-right.active .photo-col {
        opacity: 1;
        transform: translateY(0) scale(1);
        transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: 0.1s;
    }
    
    .layout-left.active .desc-col,
    .layout-right.active .desc-col {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: 0.3s;
    }
    
    .character-layer { height: 55vh; }
    .desc-content { padding: 25px; border-radius: 20px; }
    .alien-badge { font-size: 0.65rem; padding: 5px 12px; }
    .alien-name { font-size: 2rem; margin-bottom: 10px; }
    .power-title { font-size: 1.1rem; margin-bottom: 10px; }
    .power-desc { font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
    .stat-label { font-size: 0.75rem; }
    .stat-bar { height: 5px; }
    
    .energy-rings::before { width: 400px; height: 400px; border-width: 3px; }
    .energy-rings::after { width: 550px; height: 550px; border-width: 3px; }
    .action-aura { width: 600px; height: 600px; filter: blur(80px); }
    .bg-title { font-size: 20vw; opacity: 0.02; }
    .scroll-indicator { bottom: 20px; font-size: 0.75rem; }
    .scroll-icon { width: 25px; height: 40px; }
}

@media (max-width: 768px) {
    .hero-section { padding: 0 5%; }
    .hero-info { max-width: 100%; }
    .netflix-title { font-size: 2.8rem; }
    .netflix-desc { font-size: 0.95rem; margin: 15px 0; }
    .hero-btns { flex-direction: row; gap: 10px; }
    .btn-play, .btn-info { flex: 1; justify-content: center; padding: 12px 20px; font-size: 0.85rem; }
    .grid-layout { width: 95%; }
    .layout-left .photo-col, .layout-right .photo-col { height: 50vh; }
    .character-layer { height: 50vh; }
    .desc-content { padding: 20px; }
    .alien-name { font-size: 1.8rem; }
    .power-title { font-size: 1rem; }
    .power-desc { font-size: 0.85rem; }
    .energy-rings::before { width: 350px; height: 350px; }
    .energy-rings::after { width: 480px; height: 480px; }
    .action-aura { width: 500px; height: 500px; }
    .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .navbar { height: 60px; padding: 0 3%; }
    .nav-logo { font-size: 1.1rem; }
    .logo-icon { font-size: 1.4rem; }
    .nav-links { gap: 12px; }
    .nav-link-item { font-size: 0.7rem; padding: 6px 0; }
    .netflix-title { font-size: 2.2rem; letter-spacing: -2px; }
    .title-word { display: block; }
    .hero-meta { gap: 10px; font-size: 0.75rem; }
    .btn-play, .btn-info { padding: 10px 15px; font-size: 0.8rem; gap: 6px; }
    .btn-play svg, .btn-info svg { width: 18px; height: 18px; }
    .layout-left .photo-col, .layout-right .photo-col { height: 45vh; }
    .character-layer { height: 45vh; }
    .desc-content { padding: 18px; }
    .alien-name { font-size: 1.6rem; }
    .power-title { font-size: 0.95rem; }
    .power-desc { font-size: 0.8rem; line-height: 1.5; }
    .stat-label { font-size: 0.7rem; margin-bottom: 6px; }
    .energy-rings::before { width: 300px; height: 300px; border-width: 2px; }
    .energy-rings::after { width: 400px; height: 400px; border-width: 2px; }
}

@media (max-width: 968px) and (orientation: landscape) {
    .hero-section { height: auto; min-height: 100vh; padding: 80px 5% 40px; }
    .layout-left .photo-col, .layout-right .photo-col { height: 70vh; }
    .character-layer { height: 70vh; }
    .grid-layout { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn-play:active, .btn-info:active { transform: scale(0.95); }
    .nav-link-item:active { color: var(--primary); }
}
/* New Aura Colors for Kevin, Max, and Gwen */
.purple-aura { background: radial-gradient(circle, #6A0DAD, transparent); }
.crimson-aura { background: radial-gradient(circle, #DC143C, transparent); }
.pink-aura { background: radial-gradient(circle, #FF1493, transparent); }

/* Kevin 11 - Dark Pulse Animation */
.active .dark-pulse { animation: darkEnergyPulse 3s ease-in-out infinite; }
@keyframes darkEnergyPulse {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 20px 60px rgba(0,0,0,0.8)) saturate(1);
    }
    50% { 
        filter: brightness(1.3) drop-shadow(0 0 80px #6A0DAD) saturate(1.5);
        transform: scale(1.02);
    }
}

/* Grandpa Max - Wise Stance Animation */
.active .wise-stance { animation: veteranStance 4s ease-in-out infinite; }
@keyframes veteranStance {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 30px 80px rgba(0,0,0,0.9));
        transform: translateY(0);
    }
    50% { 
        filter: brightness(1.1) drop-shadow(0 0 60px #DC143C);
        transform: translateY(-5px);
    }
}

/* Gwen - Mana Flow Animation */
.active .mana-flow { animation: manaEnergy 2.5s ease-in-out infinite; }
@keyframes manaEnergy {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 20px 60px rgba(0,0,0,0.8));
    }
    25% { 
        filter: brightness(1.4) drop-shadow(0 0 100px #FF1493) hue-rotate(15deg);
    }
    50% { 
        filter: brightness(1.1) drop-shadow(0 20px 60px rgba(0,0,0,0.8));
    }
    75% { 
        filter: brightness(1.4) drop-shadow(0 0 100px #FF1493) hue-rotate(-15deg);
    }
}

/* Decrease size for specific characters */
.swing-motion,  /* Spidermonkey */
.dark-pulse,    /* Kevin */
.wise-stance,   /* Max */
.speed-blur {   /* XLR8 */
    height: 85vh !important;
}

/* Ensure Gwen displays properly */
.mana-flow {
    height: 110vh !important;
}

/* Mobile adjustments for smaller characters */
@media (max-width: 968px) {
    .swing-motion,
    .dark-pulse,
    .wise-stance,
    .speed-blur {
        height: 48vh !important;
    }
    
    .mana-flow {
        height: 55vh !important;
    }
}

@media (max-width: 768px) {
    .swing-motion,
    .dark-pulse,
    .wise-stance,
    .speed-blur {
        height: 43vh !important;
    }
    
    .mana-flow {
        height: 50vh !important;
    }
}

@media (max-width: 480px) {
    .swing-motion,
    .dark-pulse,
    .wise-stance,
    .speed-blur {
        height: 38vh !important;
    }
    
    .mana-flow {
        height: 45vh !important;
    }
}

/* ========== CHARACTER SPACER ========== */
.character-spacer {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.character-spacer.active {
    opacity: 1;
}

.spacer-content {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 60%;
    max-width: 600px;
}

.spacer-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 20px var(--primary);
    animation: spacerPulse 2s ease-in-out infinite;
}

.spacer-icon {
    font-size: 3rem;
    color: var(--primary);
    animation: spacerRotate 4s linear infinite;
    filter: drop-shadow(0 0 20px var(--primary));
}

@keyframes spacerPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes spacerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== PROFESSIONAL FOOTER ========== */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #000 100%);
    border-top: 2px solid #00ff00;
    padding: 80px 5% 40px;
    margin-top: 100px;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-content {
    text-align: center;
    animation: footerFadeIn 1s ease-out;
}

@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.footer-icon {
    font-size: 3rem;
    color: #00ff00;
    animation: rotate 8s linear infinite;
    filter: drop-shadow(0 0 20px #00ff00);
}

.footer-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #00ff00, #00cc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typing Effect */
.footer-typing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 50px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
}

.typing-label {
    color: #00ff00;
    font-weight: 700;
}

.typing-text {
    color: #fff;
    min-width: 300px;
    text-align: left;
    font-weight: 600;
}

.typing-cursor {
    color: #00ff00;
    animation: cursorBlink 1s step-end infinite;
    font-weight: 700;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Credits */
.footer-credits {
    margin: 40px 0;
}

.credit-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.credit-icon {
    color: #00ff00;
    font-size: 1.3rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 5px #00ff00);
    }
    50% { 
        transform: scale(1.2);
        filter: drop-shadow(0 0 15px #00ff00);
    }
}

.credit-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

.credit-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff00;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #00ff00;
}

.credit-link:hover {
    color: #fff;
    text-shadow: 0 0 20px #00ff00;
}

.credit-link:hover::after {
    width: 100%;
}

.credit-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Social Links */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-glass);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #00ff00, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: #00ff00;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.social-link:hover::before {
    opacity: 0.2;
}

.social-link svg {
    position: relative;
    z-index: 1;
}

/* Copyright */
.footer-copyright {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* Footer Particles */
.footer-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.3;
}

.footer-particles::before,
.footer-particles::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    animation: particleFloat 10s ease-in-out infinite;
}

.footer-particles::before {
    background: radial-gradient(circle, #00ff00, transparent);
    top: -200px;
    left: -200px;
}

.footer-particles::after {
    background: radial-gradient(circle, #00ff00, transparent);
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 60px 5% 30px;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .footer-icon {
        font-size: 2rem;
    }
    
    .footer-typing {
        flex-direction: column;
        font-size: 1rem;
        gap: 5px;
    }
    
    .typing-text {
        min-width: auto;
        text-align: center;
    }
    
    .credit-text {
        font-size: 0.95rem;
        flex-direction: column;
    }
    
    .footer-social {
        gap: 20px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .spacer-content {
        width: 80%;
    }
    
    .spacer-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-typing {
        font-size: 0.9rem;
    }
    
    .credit-text {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}
/* =====================================================
   NEW ALIENS + FIXES — appended
   ===================================================== */

/* ---- SIZE FIXES: Way Big, Spidermonkey, Kevin ---- */
.size-sm {
    height: 78vh !important;
}
@media (max-width: 968px)  { .size-sm { height: 45vh !important; } }
@media (max-width: 768px)  { .size-sm { height: 40vh !important; } }
@media (max-width: 480px)  { .size-sm { height: 35vh !important; } }

/* ---- HEATBLAST — remove flame filter, keep clean glow ---- */
.active .heatblast-idle {
    animation: heatblastGlow 3s ease-in-out infinite alternate;
}
@keyframes heatblastGlow {
    0%   { filter: brightness(1)   drop-shadow(0 20px 60px rgba(0,0,0,.8)); }
    100% { filter: brightness(1.3) drop-shadow(0 0 60px #FF4500); }
}

/* ---- NEW AURAS ---- */
.orange2-aura  { background: radial-gradient(circle, #FF6600, transparent); }
.lime-aura     { background: radial-gradient(circle, #9ACD32, transparent); }
.sea-aura      { background: radial-gradient(circle, #2E8B57, transparent); }
.ghost-aura    { background: radial-gradient(circle, #9B9BC8, transparent); }
.slime-aura    { background: radial-gradient(circle, #7FFF00, transparent); }
.lava-aura     { background: radial-gradient(circle, #8B0000, transparent); }
.electric-aura { background: radial-gradient(circle, #FFD700, transparent); }
.silver-aura   { background: radial-gradient(circle, #A0A0A0, transparent); }
.teal-aura     { background: radial-gradient(circle, #00CED1, transparent); }
.gold-aura     { background: radial-gradient(circle, #DAA520, transparent); }

/* ---- NEW CHARACTER ANIMATIONS ---- */

/* Wildmutt — prowling beast */
.active .beast-prowl {
    animation: beastProwl 1.2s ease-in-out infinite;
}
@keyframes beastProwl {
    0%, 100% { transform: translateY(0) scale(1); filter: brightness(1) drop-shadow(0 20px 50px rgba(0,0,0,.8)); }
    50%       { transform: translateY(-8px) scale(1.02); filter: brightness(1.2) drop-shadow(0 0 50px #FF6600); }
}

/* Stinkfly — hovering flight bob */
.active .fly-hover {
    animation: flyHover 2s ease-in-out infinite;
}
@keyframes flyHover {
    0%, 100% { transform: translateY(0) rotate(-2deg); filter: brightness(1) drop-shadow(0 20px 50px rgba(0,0,0,.8)); }
    50%       { transform: translateY(-14px) rotate(2deg); filter: brightness(1.2) drop-shadow(0 0 60px #9ACD32); }
}

/* Ripjaws — jaw snap lunge */
.active .jaw-snap {
    animation: jawSnap 2.5s ease-in-out infinite;
}
@keyframes jawSnap {
    0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1) drop-shadow(0 20px 50px rgba(0,0,0,.8)); }
    40%       { transform: scale(1.04) rotate(-2deg); filter: brightness(1.3) drop-shadow(0 0 70px #2E8B57); }
    60%       { transform: scale(0.97) rotate(1deg); }
}

/* Ghostfreak — ethereal float */
.active .phantom-float {
    animation: phantomFloat 3s ease-in-out infinite;
}
@keyframes phantomFloat {
    0%, 100% { transform: translateY(0) scale(1); filter: brightness(1) opacity(1) drop-shadow(0 0 30px #9B9BC8); }
    50%       { transform: translateY(-12px) scale(1.03); filter: brightness(1.4) opacity(0.85) drop-shadow(0 0 80px #B0B0D8); }
}

/* Goop — morphing blob */
.active .goop-morph {
    animation: goopMorph 2s ease-in-out infinite;
}
@keyframes goopMorph {
    0%, 100% { transform: scaleY(1) scaleX(1); filter: brightness(1) drop-shadow(0 20px 50px rgba(0,0,0,.8)); }
    33%       { transform: scaleY(1.05) scaleX(0.96); filter: brightness(1.3) drop-shadow(0 0 60px #7FFF00); }
    66%       { transform: scaleY(0.96) scaleX(1.05); filter: brightness(1.1) drop-shadow(0 0 40px #7FFF00); }
}

/* Swampfire/Lava — ember burn */
.active .lava-burn {
    animation: lavaBurn 3s ease-in-out infinite;
}
@keyframes lavaBurn {
    0%, 100% { filter: brightness(1)   drop-shadow(0 20px 50px rgba(0,0,0,.8)); transform: scale(1); }
    50%       { filter: brightness(1.4) drop-shadow(0 0 80px #8B0000) saturate(1.5); transform: scale(1.02); }
}

/* Brainstorm — electric crackle */
.active .brain-spark {
    animation: brainSpark 2s ease-in-out infinite;
}
@keyframes brainSpark {
    0%, 100% { filter: brightness(1) drop-shadow(0 20px 50px rgba(0,0,0,.8)); }
    25%       { filter: brightness(1.5) drop-shadow(0 0 80px #FFD700) contrast(1.2); transform: scale(1.02); }
    50%       { filter: brightness(1)   drop-shadow(0 20px 50px rgba(0,0,0,.8)); }
    75%       { filter: brightness(1.4) drop-shadow(0 0 60px #FFD700); transform: scale(0.98); }
}

/* Blitzwolfer — wolf howl shake */
.active .wolf-howl {
    animation: wolfHowl 2s ease-in-out infinite;
}
@keyframes wolfHowl {
    0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1) drop-shadow(0 20px 50px rgba(0,0,0,.8)); }
    30%       { transform: scale(1.03) rotate(-1.5deg); filter: brightness(1.2) drop-shadow(0 0 60px #A0A0A0); }
    60%       { transform: scale(1.01) rotate(1deg); }
}

/* Eye Guy / Wind — spinning energy */
.active .wind-spin {
    animation: windSpin 3s ease-in-out infinite;
}
@keyframes windSpin {
    0%, 100% { transform: rotate(0deg) scale(1); filter: brightness(1) drop-shadow(0 20px 50px rgba(0,0,0,.8)); }
    50%       { transform: rotate(4deg) scale(1.03); filter: brightness(1.3) drop-shadow(0 0 70px #00CED1); }
}

/* Benvicktor / Build — mech stomp */
.active .mech-stomp {
    animation: mechStomp 1.5s ease-in-out infinite;
}
@keyframes mechStomp {
    0%, 100% { transform: translateY(0) scale(1); filter: brightness(1) drop-shadow(0 20px 50px rgba(0,0,0,.8)); }
    50%       { transform: translateY(-6px) scale(1.02); filter: brightness(1.2) drop-shadow(0 0 70px #DAA520); }
}

/* ---- EXISTING FIXES (override) ---- */
/* Keep thermal-pulse for older css but heatblast now uses heatblast-idle class */

/* Responsive for new aliens */
@media (max-width: 968px) {
    .beast-prowl, .fly-hover, .jaw-snap, .phantom-float,
    .goop-morph, .lava-burn, .brain-spark, .wolf-howl,
    .wind-spin, .mech-stomp {
        height: 52vh !important;
    }
}
@media (max-width: 768px) {
    .beast-prowl, .fly-hover, .jaw-snap, .phantom-float,
    .goop-morph, .lava-burn, .brain-spark, .wolf-howl,
    .wind-spin, .mech-stomp {
        height: 46vh !important;
    }
}
@media (max-width: 480px) {
    .beast-prowl, .fly-hover, .jaw-snap, .phantom-float,
    .goop-morph, .lava-burn, .brain-spark, .wolf-howl,
    .wind-spin, .mech-stomp {
        height: 40vh !important;
    }
}
/* ========== SMOOTH SCROLL OPTIMIZATIONS ========== */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU acceleration for smooth transforms */
.character-card,
.character-layer,
.energy-rings,
.action-aura,
.bg-title {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smoother transitions */
.character-card {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-col, .desc-col {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Optimize canvas rendering */
#starCanvas {
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

/* ========== PERFORMANCE CONTAINMENT ========== */
.character-card {
    contain: layout style paint;
}

.hero-section {
    contain: layout paint;
}

.scene {
    contain: layout;
}

/* Optimize animations to run on compositor */
@keyframes optimizedFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Force hardware acceleration for key elements */
.energy-rings::before,
.energy-rings::after {
    transform: translate(-50%, -50%) translateZ(0);
}

.action-aura {
    transform: translate(-50%, -50%) translateZ(0);
}
