/*
 * animations.css - Animations & Effects
 * 중흥동 영어학원 (eng.hzibs.com)
 *
 * Optimized for:
 * - Smooth 60fps animations
 * - GPU acceleration
 * - Reduced motion support
 */

/* ========== KEYFRAME ANIMATIONS ========== */

/* Fade Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Scale Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale3d(0.9, 0.9, 1);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
    to {
        opacity: 0;
        transform: scale3d(0.9, 0.9, 1);
    }
}

/* Spin */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Pulse */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

/* Float */
@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -12px, 0);
    }
}

/* Bounce */
@keyframes bounce {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translate3d(0, -16px, 0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Shake */
@keyframes shake {
    0%, 100% { transform: translate3d(0, 0, 0); }
    10%, 30%, 50%, 70%, 90% { transform: translate3d(-4px, 0, 0); }
    20%, 40%, 60%, 80% { transform: translate3d(4px, 0, 0); }
}

/* Gradient Shift */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 0 24px rgba(168, 85, 247, 0.5),
                    0 0 48px rgba(168, 85, 247, 0.3);
    }
}

/* Typing Cursor */
@keyframes blinkCursor {
    0%, 50% { border-color: var(--accent-purple); }
    51%, 100% { border-color: transparent; }
}

/* Skeleton Loading */
@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========== ANIMATION CLASSES ========== */

/* Fade */
.animate-fadeIn {
    animation: fadeIn 0.4s var(--ease-out) forwards;
}

.animate-fadeOut {
    animation: fadeOut 0.3s var(--ease-in) forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s var(--ease-out) forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.5s var(--ease-out) forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.5s var(--ease-out) forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.5s var(--ease-out) forwards;
}

/* Scale */
.animate-scaleIn {
    animation: scaleIn 0.4s var(--ease-out) forwards;
}

.animate-scaleOut {
    animation: scaleOut 0.3s var(--ease-in) forwards;
}

/* Continuous */
.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-pulse {
    animation: pulse 2s var(--ease-in-out) infinite;
}

.animate-float {
    animation: float 4s var(--ease-in-out) infinite;
}

.animate-bounce {
    animation: bounce 1.5s infinite;
}

.animate-glow {
    animation: glowPulse 2s var(--ease-in-out) infinite;
}

/* Animation Delays */
.delay-75 { animation-delay: 75ms; }
.delay-100 { animation-delay: 100ms; }
.delay-150 { animation-delay: 150ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }

/* Animation Durations */
.duration-75 { animation-duration: 75ms; }
.duration-100 { animation-duration: 100ms; }
.duration-150 { animation-duration: 150ms; }
.duration-200 { animation-duration: 200ms; }
.duration-300 { animation-duration: 300ms; }
.duration-500 { animation-duration: 500ms; }
.duration-700 { animation-duration: 700ms; }
.duration-1000 { animation-duration: 1000ms; }

/* ========== REVEAL ANIMATIONS (Scroll Triggered) ========== */

.reveal {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 0.6s var(--ease-out),
                transform 0.6s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-left {
    opacity: 0;
    transform: translate3d(-50px, 0, 0);
    transition: opacity 0.6s var(--ease-out),
                transform 0.6s var(--ease-out);
    will-change: opacity, transform;
}

.reveal-left.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-right {
    opacity: 0;
    transform: translate3d(50px, 0, 0);
    transition: opacity 0.6s var(--ease-out),
                transform 0.6s var(--ease-out);
    will-change: opacity, transform;
}

.reveal-right.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-scale {
    opacity: 0;
    transform: scale3d(0.9, 0.9, 1);
    transition: opacity 0.6s var(--ease-out),
                transform 0.6s var(--ease-out);
    will-change: opacity, transform;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale3d(1, 1, 1);
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.5s var(--ease-out),
                transform 0.5s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translate3d(0, 0, 0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translate3d(0, 0, 0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translate3d(0, 0, 0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translate3d(0, 0, 0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translate3d(0, 0, 0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translate3d(0, 0, 0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 480ms; opacity: 1; transform: translate3d(0, 0, 0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 560ms; opacity: 1; transform: translate3d(0, 0, 0); }
.stagger-children.visible > *:nth-child(9) { transition-delay: 640ms; opacity: 1; transform: translate3d(0, 0, 0); }
.stagger-children.visible > *:nth-child(10) { transition-delay: 720ms; opacity: 1; transform: translate3d(0, 0, 0); }

/* ========== HERO SLIDER ========== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translate3d(100%, 0, 0);
    transition: opacity 0.5s var(--ease-out),
                transform 0.5s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity, transform;
}

.slide.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    z-index: 2;
}

.slide.prev {
    opacity: 0;
    transform: translate3d(-30%, 0, 0);
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
}

.slide.active .slide-content > * {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.slide.active .slide-content > *:nth-child(1) { animation-delay: 0.1s; }
.slide.active .slide-content > *:nth-child(2) { animation-delay: 0.2s; }
.slide.active .slide-content > *:nth-child(3) { animation-delay: 0.3s; }
.slide.active .slide-content > *:nth-child(4) { animation-delay: 0.4s; }

.slide-content h2 {
    font-size: var(--text-5xl);
    font-weight: var(--weight-extrabold);
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.slide-content p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.slide-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: var(--space-3);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
    background: var(--accent-purple);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-6);
    pointer-events: none;
    z-index: 10;
}

.slider-arrow {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: scale(1.1);
}

.slider-arrow:active {
    transform: scale(1.05);
}

/* ========== HOVER EFFECTS ========== */

.hover-lift {
    transition: transform 0.25s var(--ease-out),
                box-shadow 0.25s var(--ease-out);
}

.hover-lift:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: var(--shadow-glow-md);
}

.hover-scale {
    transition: transform 0.25s var(--ease-out);
}

.hover-scale:hover {
    transform: scale(1.03);
}

.hover-glow {
    transition: box-shadow 0.25s var(--ease-out);
}

.hover-glow:hover {
    box-shadow: 0 0 32px rgba(168, 85, 247, 0.4);
}

.hover-bright {
    transition: filter 0.25s var(--ease-out);
}

.hover-bright:hover {
    filter: brightness(1.1);
}

/* ========== TEXT EFFECTS ========== */

.text-gradient {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-animated {
    background: linear-gradient(135deg,
        var(--accent-purple) 0%,
        var(--accent-pink) 33%,
        var(--accent-cyan) 66%,
        var(--accent-purple) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

.text-glow {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5),
                 0 0 40px rgba(168, 85, 247, 0.3);
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent-purple);
    white-space: nowrap;
    animation: blinkCursor 0.8s step-end infinite;
}

/* ========== LOADING STATES ========== */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
    border-radius: var(--radius-lg);
}

/* ========== RIPPLE EFFECT ========== */

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
}

.ripple:active::after {
    width: 250%;
    height: 250%;
}

/* ========== ANTIGRAVITY CANVAS ========== */

#antigravity-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.8;
}

/* ========== PLASMA CLOUD EFFECTS ========== */

.plasma-cloud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.plasma-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    mix-blend-mode: screen;
    opacity: 0.4;
    animation: plasmaFloat 25s ease-in-out infinite;
}

.plasma-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.plasma-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    top: 40%;
    right: -10%;
    animation-delay: -8s;
}

.plasma-orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, transparent 70%);
    bottom: -5%;
    left: 20%;
    animation-delay: -16s;
}

.plasma-orb-4 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
    top: 20%;
    left: 40%;
    animation-delay: -4s;
}

@keyframes plasmaFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate3d(60px, -40px, 0) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate3d(-40px, 60px, 0) scale(0.95);
        opacity: 0.45;
    }
    75% {
        transform: translate3d(-60px, -30px, 0) scale(1.05);
        opacity: 0.4;
    }
}

/* ========== LIGHT PULSE EFFECT ========== */

.light-pulse-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.light-pulse {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 50%;
    opacity: 0.3;
    box-shadow: 0 0 8px var(--accent-purple),
                0 0 16px var(--accent-purple);
    animation: lightPulse 4s ease-in-out infinite;
}

.light-pulse:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.light-pulse:nth-child(2) { top: 35%; left: 80%; animation-delay: 0.6s; }
.light-pulse:nth-child(3) { top: 55%; left: 30%; animation-delay: 1.2s; }
.light-pulse:nth-child(4) { top: 20%; left: 90%; animation-delay: 1.8s; }
.light-pulse:nth-child(5) { top: 70%; left: 65%; animation-delay: 2.4s; }
.light-pulse:nth-child(6) { top: 10%; left: 45%; animation-delay: 3s; }
.light-pulse:nth-child(7) { top: 85%; left: 15%; animation-delay: 3.6s; }
.light-pulse:nth-child(8) { top: 40%; left: 5%; animation-delay: 4.2s; }

@keyframes lightPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
        box-shadow: 0 0 4px var(--accent-purple);
    }
    50% {
        transform: scale(2);
        opacity: 0.8;
        box-shadow: 0 0 16px var(--accent-purple),
                    0 0 32px var(--accent-purple);
    }
}

/* ========== SNOWFALL EFFECT ========== */

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 4px rgba(168, 85, 247, 0.4);
    animation: snowfall linear infinite;
    opacity: 0;
    will-change: transform;
}

@keyframes snowfall {
    0% {
        transform: translate3d(0, -10px, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translate3d(0, 100vh, 0) rotate(360deg);
        opacity: 0;
    }
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 14s; animation-delay: 0s; font-size: 0.5rem; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 16s; animation-delay: 1s; font-size: 0.6rem; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 12s; animation-delay: 2s; font-size: 0.4rem; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 18s; animation-delay: 0.5s; font-size: 0.55rem; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 13s; animation-delay: 3s; font-size: 0.7rem; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 15s; animation-delay: 1.5s; font-size: 0.5rem; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 17s; animation-delay: 2.5s; font-size: 0.6rem; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 11s; animation-delay: 4s; font-size: 0.4rem; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 19s; animation-delay: 0.8s; font-size: 0.55rem; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 14s; animation-delay: 3.5s; font-size: 0.5rem; }

/* ========== COUNTER ANIMATION ========== */

.counter {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ========== PARTICLE EFFECTS ========== */

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate3d(20px, -30px, 0) scale(1.5);
        opacity: 0.8;
    }
}

/* ========== NEON GLOW ========== */

.neon-glow {
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 8px var(--accent-purple),
                    0 0 16px var(--accent-purple);
    }
    50% {
        box-shadow: 0 0 16px var(--accent-purple),
                    0 0 32px var(--accent-purple),
                    0 0 48px var(--accent-purple);
    }
}

/* ========== MORPHING SHAPE ========== */

.morph-shape {
    animation: morphShape 12s ease-in-out infinite;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 50% 60% 30% 60% / 40% 50% 70% 40%;
    }
    75% {
        border-radius: 40% 50% 60% 30% / 60% 40% 50% 70%;
    }
}

/* ========== STAR TWINKLE ========== */

.star-twinkle {
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ========== WAVE ANIMATION ========== */

.wave {
    animation: wave 2.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(0, -6px, 0); }
    50% { transform: translate3d(0, 0, 0); }
    75% { transform: translate3d(0, 6px, 0); }
}

/* ========== PAGE TRANSITIONS ========== */

.page-enter {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
}

.page-enter-active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.3s var(--ease-out),
                transform 0.3s var(--ease-out);
}

.page-exit {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.page-exit-active {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
    transition: opacity 0.2s var(--ease-in),
                transform 0.2s var(--ease-in);
}

/* ========== MOBILE OPTIMIZATIONS ========== */

@media (max-width: 767px) {
    /* Reduce animation complexity on mobile */
    .plasma-orb {
        filter: blur(60px);
        animation-duration: 30s;
    }

    .light-pulse {
        animation-duration: 5s;
    }

    .snowflake {
        font-size: 0.3rem;
    }

    /* Reduce number of particles */
    .snowflake:nth-child(n+6) {
        display: none;
    }

    .light-pulse:nth-child(n+5) {
        display: none;
    }
}

/* ========== PERFORMANCE: Will-Change Hints ========== */

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.will-change-all {
    will-change: transform, opacity;
}

/* ========== GPU ACCELERATION ========== */

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}
