:root {
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --primary: #22d3ee;
    --secondary: #ec4899;
    --accent: #a855f7;
    --neon-cyan: #00fff2;
    --neon-pink: #ff00ff;
    --neon-blue: #0066ff;
    --text: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
}

/* SCROLLBAR CYBERPUNK */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* TYPOGRAPHY */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
    z-index: -1;
    animation: bg-pulse 10s ease-in-out infinite alternate;
}

@keyframes bg-pulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Animated Grid Lines */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(1000px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(1000px) rotateX(60deg) translateY(60px); }
}

/* Floating Particles */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, var(--primary) 50%, transparent 100%),
        radial-gradient(2px 2px at 40% 70%, var(--secondary) 50%, transparent 100%),
        radial-gradient(2px 2px at 60% 40%, var(--neon-cyan) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 80% 80%, var(--primary) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 10% 60%, var(--secondary) 50%, transparent 100%),
        radial-gradient(2px 2px at 90% 20%, var(--neon-cyan) 50%, transparent 100%);
    background-size: 200% 200%;
    animation: particles-float 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes particles-float {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    background: rgba(34, 211, 238, 0.15);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--primary);
    display: inline-block;
    margin-bottom: 20px;
    animation: neon-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

@keyframes neon-pulse {
    0%, 100% { 
        box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 20px transparent;
    }
    50% { 
        box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 40px var(--primary);
    }
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(34, 211, 238, 0.3); }
    50% { text-shadow: 0 0 40px rgba(34, 211, 238, 0.6), 0 0 60px rgba(236, 72, 153, 0.3); }
}

.hero-text .tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone-mockup {
    width: 100%;
    max-width: 350px;
    border-radius: 30px;
    box-shadow: 
        0 0 30px rgba(34, 211, 238, 0.4),
        0 0 60px rgba(236, 72, 153, 0.2),
        inset 0 0 30px rgba(0,0,0,0.5);
    border: 4px solid rgba(34, 211, 238, 0.5);
    margin: 0 auto;
    display: block;
    transition: all 0.5s ease;
}

.phone-mockup:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 0 50px rgba(34, 211, 238, 0.6),
        0 0 100px rgba(236, 72, 153, 0.4);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    75% { transform: translateY(-5px) rotate(-1deg); }
}

/* BUTTONS */
.cta-group {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.5s both;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary), var(--neon-blue), var(--primary));
    background-size: 200% 200%;
    color: #000;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    box-shadow: 0 5px 30px rgba(34, 211, 238, 0.4);
}

.btn-download::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.btn-download:hover::before {
    animation: btn-shine 0.6s forwards;
}

@keyframes btn-shine {
    0% { left: -50%; opacity: 1; }
    100% { left: 150%; opacity: 0; }
}

.btn-download:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(34, 211, 238, 0.6);
    background-position: 100% 0;
}

.btn-download .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-download .small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.btn-download .large {
    font-size: 1.1rem;
    font-weight: 800;
}

.btn-secondary {
    padding: 15px 30px;
    border: 2px solid rgba(236, 72, 153, 0.5);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), transparent);
    opacity: 0;
    transition: 0.3s;
}

.btn-secondary:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.4);
    transform: translateY(-3px);
}

.btn-secondary:hover::after {
    opacity: 1;
}

/* SECTION REVEAL ANIMATION */
.game-guide, .tech-specs, .cta-section, .credits-section {
    opacity: 0;
    transform: translateY(50px);
    animation: reveal-section 0.8s ease forwards;
}

.game-guide { animation-delay: 0.1s; }
.tech-specs { animation-delay: 0.2s; }
.cta-section { animation-delay: 0.3s; }
.credits-section { animation-delay: 0.4s; }

@keyframes reveal-section {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GAME GUIDE */
.game-guide {
    padding: 100px 0;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    position: relative;
}

.game-guide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 70px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 20px auto 0;
    border-radius: 2px;
    animation: line-expand 2s ease infinite;
}

@keyframes line-expand {
    0%, 100% { width: 100px; opacity: 0.7; }
    50% { width: 150px; opacity: 1; }
}

.guide-block {
    margin-bottom: 80px;
}

.guide-block h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
    border-left: 4px solid var(--secondary);
    padding-left: 20px;
    position: relative;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.guide-block h3::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { box-shadow: 0 0 5px var(--secondary); }
    50% { box-shadow: 0 0 20px var(--secondary), 0 0 30px var(--primary); }
}

/* Mode Cards */
.mode-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mode-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: 0.5s;
}

.mode-card:hover::before {
    left: 100%;
}

.mode-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        0 0 30px rgba(34, 211, 238, 0.2);
}

.mode-card.classic:hover { border-color: var(--primary); }
.mode-card.quiz:hover { border-color: var(--secondary); }

.mode-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px currentColor);
    animation: icon-bounce 3s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mode-card h4 {
    font-size: 1.5rem;
    margin: 15px 0;
    color: var(--text);
}

.mode-card ul {
    list-style: none;
    padding: 0;
}

.mode-card li {
    margin-bottom: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
    transition: 0.3s;
}

.mode-card:hover li {
    color: var(--text);
}

/* Power Ups */
.powerup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.p-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 30px 25px;
    border-radius: 20px;
    border: 1px solid rgba(34, 211, 238, 0.15);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.p-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: 0.4s;
}

.p-card:hover::after {
    transform: scaleX(1);
}

.p-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.3),
        0 0 25px rgba(34, 211, 238, 0.15);
}

.p-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    animation: icon-float 4s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.p-card h4 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.p-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.p-meta {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    margin: 5px 3px;
    background: rgba(34, 211, 238, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

/* Missions */
.mission-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(236, 72, 153, 0.05));
    padding: 40px;
    border-radius: 25px;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.mission-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    z-index: 0;
    opacity: 0.3;
}

.m-step {
    text-align: center;
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

.m-step:hover {
    transform: scale(1.05);
}

.step-num {
    display: inline-flex;
    width: 55px;
    height: 55px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 15px;
    box-shadow: 0 5px 25px rgba(236, 72, 153, 0.4);
    animation: step-pulse 2s ease-in-out infinite;
}

@keyframes step-pulse {
    0%, 100% { box-shadow: 0 5px 25px rgba(236, 72, 153, 0.4); }
    50% { box-shadow: 0 5px 35px rgba(236, 72, 153, 0.7); }
}

.m-step p {
    color: var(--text);
    line-height: 1.5;
}

.m-step small {
    color: var(--text-muted);
}

.m-arrow {
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
    animation: arrow-pulse 1.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes arrow-pulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

/* TECH SPECS */
.tech-specs {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
}

.tech-specs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 10% 90%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
    position: relative;
}

.tech-item {
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.08), rgba(34, 211, 238, 0.02));
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid var(--primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1), transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.tech-item:hover {
    transform: translateX(10px);
    border-left-color: var(--secondary);
    box-shadow: -5px 0 30px rgba(34, 211, 238, 0.2);
}

.tech-item h4 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.3rem;
}

.tech-item ul {
    list-style: none;
}

.tech-item li {
    margin-bottom: 12px;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.tech-item li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.code-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 60px;
    position: relative;
}

.stat {
    transition: 0.4s;
}

.stat:hover {
    transform: scale(1.1);
}

.stat .val {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(180deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: count-glow 3s ease-in-out infinite;
}

@keyframes count-glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.6)); }
}

.stat .label {
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 10px;
    display: block;
}

/* CTA SECTION */
.cta-section {
    padding: 120px 0;
    text-align: center;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #1e293b, #020617);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        linear-gradient(90deg, rgba(34, 211, 238, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(34, 211, 238, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-section h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
    animation: cta-pulse 3s ease-in-out infinite;
    position: relative;
}

@keyframes cta-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 1.3rem;
    position: relative;
}

.btn-download.large {
    display: inline-flex;
    padding: 22px 60px;
    font-size: 1.3rem;
    animation: btn-glow 2s ease-in-out infinite;
}

@keyframes btn-glow {
    0%, 100% { box-shadow: 0 5px 30px rgba(34, 211, 238, 0.4); }
    50% { box-shadow: 0 10px 50px rgba(34, 211, 238, 0.7), 0 0 80px rgba(34, 211, 238, 0.3); }
}

/* CREDITS */
.credits-section {
    padding: 100px 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.team-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(34, 211, 238, 0.1);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent 30%);
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: 0.5s;
}

.team-card:hover::before {
    opacity: 0.3;
}

@keyframes rotate-border {
    100% { transform: rotate(360deg); }
}

.team-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 18px;
    z-index: 0;
}

.team-card > * {
    position: relative;
    z-index: 1;
}

.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        0 0 40px rgba(236, 72, 153, 0.15);
}

.role-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(236, 72, 153, 0.15));
    color: var(--primary);
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 25px;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.team-card h3 {
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 700;
}

/* TEAM AVATAR STYLES */
.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--primary);
    box-shadow: 
        0 0 20px rgba(34, 211, 238, 0.4),
        0 0 40px rgba(34, 211, 238, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    animation: avatar-glow 3s ease-in-out infinite;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.team-card:hover .team-avatar img {
    transform: scale(1.1);
}

@keyframes avatar-glow {
    0%, 100% { 
        box-shadow: 
            0 0 15px rgba(34, 211, 238, 0.4),
            0 0 30px rgba(34, 211, 238, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 25px rgba(34, 211, 238, 0.6),
            0 0 50px rgba(236, 72, 153, 0.3);
    }
}

/* Mystery Avatar Effect */
.team-avatar.mystery {
    border-color: var(--secondary);
    box-shadow: 
        0 0 20px rgba(236, 72, 153, 0.4),
        0 0 40px rgba(168, 85, 247, 0.2);
    animation: mystery-glow 3s ease-in-out infinite;
}

.team-avatar.mystery img {
    filter: brightness(0.4) blur(1px);
}

.team-avatar.mystery::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(236, 72, 153, 0.3), 
        rgba(168, 85, 247, 0.3));
    z-index: 1;
    animation: mystery-pulse 2s ease-in-out infinite;
}

.mystery-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    text-shadow: 
        0 0 20px var(--secondary),
        0 0 40px var(--accent);
    z-index: 2;
    animation: mystery-question 2s ease-in-out infinite;
}

@keyframes mystery-glow {
    0%, 100% { 
        box-shadow: 
            0 0 15px rgba(236, 72, 153, 0.4),
            0 0 30px rgba(168, 85, 247, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 25px rgba(236, 72, 153, 0.6),
            0 0 50px rgba(168, 85, 247, 0.4);
    }
}

@keyframes mystery-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

@keyframes mystery-question {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        text-shadow: 0 0 20px var(--secondary);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        text-shadow: 0 0 40px var(--secondary), 0 0 60px var(--accent);
    }
}

.team-card:hover .team-avatar.mystery .mystery-label {
    animation: mystery-shake 0.5s ease-in-out;
}

@keyframes mystery-shake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-5deg); }
    75% { transform: translate(-50%, -50%) rotate(5deg); }
}

/* FOOTER */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.02));
}

footer p {
    animation: flicker 5s linear infinite;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 0.8; }
    20%, 24%, 55% { opacity: 0.4; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .mission-flow {
        flex-direction: column;
        padding: 30px;
    }

    .mission-flow::before {
        transform: rotate(90deg);
    }

    .m-arrow {
        transform: rotate(90deg);
    }

    .stat .val {
        font-size: 2.5rem;
    }

    /* TEAM SECTION MOBILE FIX */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        padding: 0 15px;
    }

    .team-card {
        padding: 25px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
        margin: 0 auto 15px;
    }

    .role-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin: 10px auto;
        max-width: 90%;
    }

    .team-card h3 {
        font-size: 1.1rem;
    }

    .mystery-label {
        font-size: 2.5rem;
    }

    .credits-section {
        padding: 60px 0;
    }
}

/* Smooth hover transitions globally */
a, button {
    transition: all 0.3s ease;
}

/* Selection color */
::selection {
    background: var(--secondary);
    color: white;
}
