/* =====================================================
   🚀 MODERN 2024 BIRTHDAY WEBSITE - LUICY 💜
   Advanced CSS with glassmorphism, 3D effects, particles
   ===================================================== */

/* CSS Custom Properties for modern theming */
:root {
    /* Kuromi Color Palette */
    --primary-purple: #a855f7;
    --secondary-purple: #c084fc;
    --light-purple: #e9d5ff;
    --dark-purple: #6b21a8;
    --neon-purple: #d946ef;
    --accent-pink: #ec4899;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --backdrop-blur: blur(20px);
    
    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-purple: linear-gradient(135deg, #a855f7 0%, #c084fc 50%, #e9d5ff 100%);
    --gradient-neon: linear-gradient(45deg, #ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff);
    
    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
    position: relative;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--neon-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid var(--neon-purple);
    border-radius: 50%;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.cursor-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.cursor.active .cursor-inner {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
}

.cursor.active .cursor-text {
    opacity: 1;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease, visibility 1s ease;
}

.loader {
    text-align: center;
}

.loader-text {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: var(--gradient-neon);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
}

.loading-char {
    display: inline-block;
    animation: bounce-loading 1.5s ease-in-out infinite;
}

.loading-char:nth-child(2) { animation-delay: 0.1s; }
.loading-char:nth-child(3) { animation-delay: 0.2s; }
.loading-char:nth-child(4) { animation-delay: 0.3s; }
.loading-char:nth-child(5) { animation-delay: 0.4s; }
.loading-char:nth-child(6) { animation-delay: 0.5s; }
.loading-char:nth-child(7) { animation-delay: 0.6s; }
.loading-char:nth-child(8) { animation-delay: 0.7s; }
.loading-char:nth-child(9) { animation-delay: 0.8s; }
.loading-char:nth-child(10) { animation-delay: 0.9s; }

.loader-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    height: 100%;
    background: var(--gradient-neon);
    background-size: 400% 400%;
    border-radius: 2px;
    animation: loading-progress 3s ease-in-out, gradient-shift 2s ease-in-out infinite;
}

/* ===== BACKGROUND EFFECTS ===== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

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

.heart {
    position: absolute;
    font-size: clamp(20px, 3vw, 40px);
    opacity: 0.7;
    animation: float-hearts 8s linear infinite;
}

.heart::before {
    content: '💜';
    filter: drop-shadow(0 0 10px var(--neon-purple));
}

/* ===== MUSIC PLAYER ===== */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-smooth);
}

.music-player:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

.music-toggle {
    background: var(--gradient-purple);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1) rotate(360deg);
}

.music-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.music-info {
    color: white;
}

.song-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.song-artist {
    font-size: 0.8rem;
    opacity: 0.7;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

/* ===== MODERN NAVIGATION ===== */
.modern-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.nav-toggle {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: var(--transition-smooth);
}

.nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition-smooth);
}

.nav-toggle:hover + .nav-menu,
.nav-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 0;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--neon-purple);
    transform: translateX(10px);
}

/* ===== MAIN CONTAINER ===== */
.container {
    position: relative;
    z-index: 4;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== MODERN SECTIONS ===== */
.modern-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.section-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 15vw, 20rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    z-index: -1;
    pointer-events: none;
    white-space: nowrap;
}

/* ===== GLASSMORPHISM CARDS ===== */
.glass-morphism {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-morphism::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-neon);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
}

.glass-morphism:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(168, 85, 247, 0.2);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(10rem, 20vw, 25rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    z-index: 2;
}

.kuromi-3d {
    position: relative;
    margin-bottom: 40px;
}

.kuromi-bow.floating-3d {
    font-size: clamp(4rem, 8vw, 8rem);
    display: inline-block;
    animation: float-3d 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--neon-purple));
    transform-style: preserve-3d;
}

.kuromi-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ===== TEXT EFFECTS ===== */
.glitch {
    position: relative;
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    background: var(--gradient-neon);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-neon);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    z-index: -2;
}

.neon-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--neon-purple);
    text-shadow: 
        0 0 5px var(--neon-purple),
        0 0 10px var(--neon-purple),
        0 0 20px var(--neon-purple),
        0 0 40px var(--neon-purple);
    animation: neon-flicker 4s infinite;
}

.typewriter {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    border-right: 2px solid var(--neon-purple);
    animation: typewriter-blink 1s infinite;
}

.pulse-text {
    animation: pulse-color 2s ease-in-out infinite;
}

.reveal-text {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-family: 'Poppins', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 2px;
}

.final-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-family: 'Dancing Script', cursive;
}

.final-message {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.signature {
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.signature-name {
    font-size: 2.5rem;
    display: inline-block;
    margin-top: 10px;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FINAL SECTION IMPROVEMENTS ===== */
.final-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    text-align: center;
}

.final-message-box {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.love-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--neon-purple);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    font-family: 'Dancing Script', cursive;
}

.celebration-button {
    margin-top: 30px;
    text-align: center;
}

.cake-button {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
    font-family: 'Poppins', sans-serif;
}

.cake-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, #ec4899, #f59e0b);
}

.cake-button:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .final-content {
        gap: 30px;
    }
    
    .final-message-box {
        max-width: 90%;
        padding: 0 20px;
    }
    
    .love-quote {
        font-size: 1.3rem;
    }
    
    .typewriter-advanced {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .birthday-cake-3d {
        margin: 0 auto 20px auto;
    }
}

/* ===== SPARKLES ADANCED ===== */
.sparkles-advanced {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.sparkle {
    font-size: 2rem;
    animation: sparkle-rotate 3s ease-in-out infinite;
    animation-delay: var(--delay);
    filter: drop-shadow(0 0 10px currentColor);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce-scroll 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce-arrow 1s infinite;
}

/* ===== JOURNEY SECTION - REDESIGNED ===== */
.journey-section {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(236, 72, 153, 0.05));
    position: relative;
}

.journey-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.journey-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
    font-family: 'Dancing Script', cursive;
}

.journey-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 60px;
    font-weight: 500;
}

.journey-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px auto 80px auto;
    max-width: 1200px;
    width: 100%;
    justify-items: center;
    align-items: stretch;
}

.stat-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
    backdrop-filter: blur(30px);
    border: 3px solid rgba(168, 85, 247, 0.4);
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    min-height: 320px;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-sizing: border-box;
    opacity: 1; /* Force visibility */
    transform: translateY(0) scale(1); /* Force normal position */
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
    border-radius: 30px;
    padding: 3px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.stat-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 
        0 40px 80px rgba(168, 85, 247, 0.5),
        0 0 0 1px rgba(168, 85, 247, 0.4);
    border-color: rgba(168, 85, 247, 0.8);
}

.stat-icon {
    font-size: clamp(5rem, 10vw, 8rem);
    filter: drop-shadow(0 0 40px currentColor);
    animation: pulse-icon 3s ease-in-out infinite;
    margin-bottom: 20px;
}

.stat-number {
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 900;
    background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 0.8;
    text-shadow: 0 0 60px rgba(168, 85, 247, 1);
    margin-bottom: 20px;
    display: block;
}

.stat-label {
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.stat-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

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

.journey-timeline {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 100px 0 80px 0;
}

.timeline-bar {
    width: 90%;
    height: 8px;
    background: linear-gradient(90deg, transparent, #a855f7, #ec4899, #f59e0b, transparent);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.timeline-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: timeline-shine 3s ease-in-out infinite;
}

.timeline-heart {
    position: absolute;
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: rgba(0, 0, 0, 0.9);
    border: 4px solid rgba(168, 85, 247, 0.6);
    border-radius: 50%;
    padding: 20px;
    filter: drop-shadow(0 0 30px #ec4899);
    animation: heartbeat 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.journey-message {
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-top: 60px;
    backdrop-filter: blur(20px);
}

.journey-message p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

.journey-message span {
    color: #f59e0b;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* ===== MESSAGE SECTION ===== */
.message-line-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.typewriter-advanced {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    text-align: center;
}

.typewriter-advanced.animate {
    opacity: 1;
    transform: translateY(0);
}

.final-line {
    font-weight: 600;
    font-size: 1.4rem;
    text-align: center;
    color: var(--neon-purple);
    text-shadow: 0 0 20px var(--neon-purple);
    margin-top: 30px;
}

/* ===== MUSIC VISUALIZER ===== */
.music-visualizer {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.visualizer-bars {
    display: flex;
    gap: 5px;
    align-items: end;
}

.bar {
    width: 6px;
    height: 20px;
    background: var(--gradient-purple);
    border-radius: 3px;
    animation: visualizer-dance 1.5s ease-in-out infinite;
    animation-delay: var(--delay);
}

.music-quotes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.interactive-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.interactive-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neon-purple);
    box-shadow: 0 30px 60px rgba(168, 85, 247, 0.2);
}

.quote-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.interactive-card:hover .card-glow {
    opacity: 0.1;
    animation: rotate-glow 3s linear infinite;
}

/* ===== 3D KUROMI TRAITS ===== */
.kuromi-traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.interactive-3d {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.interactive-3d:hover {
    transform: rotateX(10deg) rotateY(10deg) translateZ(30px);
    border-color: var(--neon-purple);
    box-shadow: 0 40px 80px rgba(168, 85, 247, 0.3);
}

.trait-icon-3d {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    animation: float-icon 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px currentColor);
}

.trait-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.interactive-3d:hover .trait-particles {
    opacity: 1;
}

/* ===== FLOATING WISHES ===== */
.wishes-grid-3d {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    perspective: 1200px;
}

@media (max-width: 1024px) {
    .wishes-grid-3d {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

.floating-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-elastic);
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: float-gentle 6s ease-in-out infinite;
}

.floating-card:nth-child(2) { animation-delay: -1s; }
.floating-card:nth-child(3) { animation-delay: -2s; }
.floating-card:nth-child(4) { animation-delay: -3s; }
.floating-card:nth-child(5) { animation-delay: -4s; }
.floating-card:nth-child(6) { animation-delay: -5s; }

.floating-card:hover {
    transform: translateY(-20px) rotateX(15deg) rotateY(15deg) scale(1.05);
    box-shadow: 0 50px 100px rgba(168, 85, 247, 0.4);
    border-color: var(--neon-purple);
}

.wish-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.wish-icon {
    font-size: 3rem;
    display: block;
    animation: pulse-icon 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px currentColor);
}

.icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid var(--neon-purple);
    border-radius: 50%;
    opacity: 0;
    animation: ring-expand 2s ease-in-out infinite;
}

.card-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.floating-card:hover .card-bg-effect {
    transform: translateX(100%);
}

/* ===== 3D BIRTHDAY CAKE ===== */
.birthday-cake-3d {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px auto;
    cursor: pointer;
    transform-style: preserve-3d;
}

.cake-layers {
    position: relative;
    width: 100%;
    height: 120px;
}

.cake-layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--gradient-purple);
}

.layer-1 {
    width: 100px;
    height: 40px;
    bottom: 0;
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.5);
}

.layer-2 {
    width: 80px;
    height: 35px;
    bottom: 30px;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.layer-3 {
    width: 60px;
    height: 30px;
    bottom: 55px;
    box-shadow: 0 5px 10px rgba(168, 85, 247, 0.3);
}

.cake-candles {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.candle {
    width: 4px;
    height: 25px;
    background: #fbbf24;
    position: relative;
}

.flame {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 8px;
    background: radial-gradient(circle, #ff6b6b, #ffa726);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 1.5s ease-in-out infinite alternate;
}

.cake-text {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: bounce-cake 2s ease-in-out infinite;
}

.cake-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 60%);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse-glow 3s ease-in-out infinite;
}

.interactive-cake:hover {
    animation: cake-dance 0.5s ease-in-out;
}

/* ===== FLOATING EMOJIS ===== */
.floating-emoji {
    position: fixed;
    font-size: 2rem;
    z-index: 5;
    pointer-events: none;
    opacity: 0.6;
    animation: float-emoji var(--duration) linear infinite;
    animation-delay: var(--delay);
}

.floating-emoji::before {
    content: var(--emoji);
    filter: drop-shadow(0 0 10px currentColor);
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

@keyframes loading-progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes float-hearts {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

@keyframes float-3d {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    25% { transform: translateY(-10px) rotateX(5deg) rotateY(5deg); }
    50% { transform: translateY(-20px) rotateX(0) rotateY(10deg); }
    75% { transform: translateY(-10px) rotateX(-5deg) rotateY(5deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    2% { opacity: 0.8; }
    4% { opacity: 1; }
    8% { opacity: 0.9; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    92% { opacity: 0.9; }
    94% { opacity: 1; }
    96% { opacity: 0.8; }
    98% { opacity: 1; }
}

@keyframes typewriter-blink {
    0%, 50% { border-color: var(--neon-purple); }
    51%, 100% { border-color: transparent; }
}

@keyframes pulse-color {
    0%, 100% { color: var(--secondary-purple); }
    50% { color: var(--neon-purple); }
}

@keyframes sparkle-rotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.2); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.2); }
}

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

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

@keyframes draw-circle {
    0% { stroke-dashoffset: 502; }
    100% { stroke-dashoffset: 0; }
}

@keyframes visualizer-dance {
    0%, 100% { height: 20px; }
    50% { height: 60px; }
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes ring-expand {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes flicker {
    0%, 100% { transform: translateX(-50%) rotate(-1deg); }
    50% { transform: translateX(-50%) rotate(1deg); }
}

@keyframes bounce-cake {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

@keyframes cake-dance {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.05); }
    75% { transform: rotate(5deg) scale(1.05); }
}

@keyframes float-emoji {
    0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px) rotate(360deg); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes timeline-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .glass-morphism { padding: 40px 25px; }
    
    /* Journey Section Mobile */
    .journey-section {
        padding: 80px 0;
    }
    
    .journey-container {
        padding: 0 15px;
    }
    
    .journey-stats {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 50px auto 60px auto;
    }
    
    .stat-card {
        min-height: 280px;
        padding: 45px 30px;
        border: 3px solid rgba(168, 85, 247, 0.6);
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
    
    .stat-icon {
        font-size: clamp(3.5rem, 12vw, 5rem);
    }
    
    .stat-number {
        font-size: clamp(3.5rem, 15vw, 6rem);
    }
    
    .stat-label {
        font-size: clamp(1rem, 4vw, 1.4rem);
        letter-spacing: 2px;
    }
    
    .journey-timeline {
        margin: 80px 0 60px 0;
    }
    
    .timeline-heart {
        padding: 15px;
        border: 3px solid rgba(168, 85, 247, 0.6);
    }
    
    .journey-message {
        padding: 25px 20px;
        margin-top: 50px;
    }
    
    .kuromi-traits-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .wishes-grid-3d { 
        grid-template-columns: 1fr;
        gap: 20px; 
    }
    .sparkles-advanced { 
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .music-player {
        position: fixed;
        top: 10px;
        right: 10px;
        left: auto;
        transform: scale(0.9);
        padding: 10px;
        flex-direction: column;
        gap: 8px;
        min-width: auto;
        width: auto;
    }
    
    .music-info {
        display: none; /* Hide on mobile to save space */
    }
    
    .volume-control {
        width: 60px;
    }
    
    .section-bg-text {
        font-size: clamp(4rem, 15vw, 8rem);
        opacity: 0.01;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        margin-bottom: 20px;
        text-align: center;
        line-height: 1.2;
    }
    
    .final-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 15px;
        text-align: center;
        line-height: 1.2;
    }
    
    .final-message {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-bottom: 20px;
        text-align: center;
    }
    
    .signature {
        font-size: clamp(1rem, 3vw, 1.4rem);
        text-align: center;
        line-height: 1.4;
    }
    
    .signature-name {
        font-size: clamp(1.5rem, 4vw, 2rem);
        display: inline-block;
        margin-top: 5px;
    }
    
    .hero {
        padding: 40px 0;
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .modern-nav {
        top: 10px;
        left: 10px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: 200px;
    }
    
    .glitch {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .neon-text {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }
    
    .typewriter {
        font-size: clamp(1rem, 4vw, 1.2rem);
        text-align: center;
    }
    

    
    .typewriter-advanced {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
        padding: 0 10px;
    }
    
    .music-visualizer {
        transform: scale(0.8);
    }
    
    .music-quotes {
        gap: 25px;
        margin-top: 30px;
    }
    
    .interactive-card {
        padding: 20px;
        margin: 15px 0;
        max-width: 90%;
    }
    
    .interactive-3d {
        padding: 25px 20px;
    }
    
    .trait-icon-3d {
        font-size: 2.5rem;
    }
    
    .floating-card {
        padding: 25px 20px;
    }
    
    .wish-icon {
        font-size: 2.5rem;
    }
    
    .birthday-cake-3d {
        transform: scale(0.7);
        margin: 20px auto;
    }
    
    .final-card {
        padding: 30px 20px;
        text-align: center;
    }
    
    .final-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    /* Fix cursor on mobile */
    .cursor {
        display: none;
    }
    
    /* Re-enable normal cursor on mobile */
    body {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .modern-section { 
        padding: 50px 0; 
    }
    
    .glass-morphism {
        padding: 35px 20px;
        margin: 15px 0;
    }
    
    /* Journey Section Small Mobile */
    .journey-section {
        padding: 60px 0;
    }
    
    .journey-container {
        padding: 0 10px;
    }
    
    .journey-title {
        margin-bottom: 15px;
    }
    
    .journey-subtitle {
        margin-bottom: 40px;
    }
    
    .journey-stats {
        gap: 25px;
        margin: 40px auto 50px auto;
    }
    
    .stat-card {
        min-height: 260px;
        padding: 40px 25px;
        max-width: 380px;
        border: 3px solid rgba(168, 85, 247, 0.7);
        width: 100%;
        margin: 0 auto;
    }
    
    .stat-icon {
        font-size: clamp(3rem, 10vw, 4.5rem);
        margin-bottom: 10px;
    }
    
    .stat-number {
        font-size: clamp(3rem, 12vw, 5rem);
        margin-bottom: 10px;
    }
    
    .stat-label {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
        letter-spacing: 1.5px;
    }
    
    .journey-timeline {
        margin: 70px 0 50px 0;
    }
    
    .timeline-bar {
        height: 6px;
    }
    
    .timeline-heart {
        padding: 12px;
        border: 2px solid rgba(168, 85, 247, 0.6);
    }
    
    .journey-message {
        padding: 20px 15px;
        margin-top: 40px;
    }
    
    .interactive-3d { 
        padding: 20px 15px; 
    }
    
    .floating-card { 
        padding: 20px 15px; 
    }
    
    .sparkles-advanced {
        gap: 10px;
    }
    
    .sparkle {
        font-size: 1.5rem;
    }
    
    .music-player {
        transform: scale(0.8);
        top: 5px;
        right: 5px;
    }
    
    .nav-toggle {
        width: 45px;
        height: 45px;
    }
    
    .typewriter-advanced {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .music-quotes {
        gap: 20px;
        margin-top: 25px;
    }
    
    .interactive-card {
        max-width: 95%;
        padding: 20px 15px;
    }
    
    .section-bg-text {
        font-size: clamp(3rem, 12vw, 6rem);
    }
    
    .hero-bg-text {
        font-size: clamp(6rem, 18vw, 12rem);
    }
    
    .section-title {
        font-size: clamp(1.2rem, 4vw, 2rem);
        margin-bottom: 15px;
        padding: 0 10px;
    }
    
    .final-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 10px;
    }
    
    .final-message {
        font-size: clamp(1rem, 3.5vw, 1.5rem);
        margin-bottom: 15px;
    }
    
    .signature {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        line-height: 1.3;
    }
    
    .signature-name {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
        margin-top: 3px;
    }
    
    .birthday-cake-3d {
        transform: scale(0.6);
        margin: 0 auto 15px auto;
    }
    
    .final-message-box {
        max-width: 95%;
        padding: 0 15px;
    }
    
    .final-card {
        padding: 25px 15px;
        margin: 15px 10px;
    }
    
    .final-section {
        padding: 30px 0;
    }
}

/* Fix touch interactions on mobile */
@media (hover: none) and (pointer: coarse) {
    .interactive-3d:hover,
    .floating-card:hover,
    .interactive-card:hover {
        transform: none;
    }
    
    .interactive-3d:active,
    .floating-card:active,
    .interactive-card:active {
        transform: scale(0.95);
    }
    
    /* Disable 3D effects on mobile for better performance */
    .interactive-3d,
    .floating-card {
        transform-style: flat;
    }
} 