/* ============================
   CSS Custom Properties
   ============================ */
:root {
    --primary: #e91e8c;
    --primary-light: #ff6eb4;
    --primary-dark: #b8156e;
    --secondary: #8b5cf6;
    --secondary-light: #a78bfa;
    --accent-gold: #fbbf24;
    --accent-rose: #fb7185;
    --accent-teal: #2dd4bf;
    --accent-pink: #f472b6;
    --bg-dark: #0a0612;
    --bg-darker: #060410;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #e91e8c, #8b5cf6);
    --gradient-2: linear-gradient(135deg, #fbbf24, #fb7185);
    --gradient-3: linear-gradient(135deg, #8b5cf6, #2dd4bf);
    --gradient-4: linear-gradient(135deg, #f472b6, #fbbf24);
    --gradient-rainbow: linear-gradient(90deg, #e91e8c, #8b5cf6, #2dd4bf, #fbbf24, #fb7185, #e91e8c);
    --font-display: 'Great Vibes', cursive;
    --font-body: 'Poppins', sans-serif;
    --font-script: 'Dancing Script', cursive;
    --font-serif: 'Playfair Display', serif;
}

/* ============================
   Reset & Base Styles
   ============================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: rgba(233, 30, 140, 0.4);
    color: white;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* ============================
   Entrance Overlay
   ============================ */
.entrance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 30%, #1a0a2e 0%, #0a0612 60%, #060410 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.2s ease, visibility 1.2s ease;
    overflow: hidden;
}

.entrance-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entrance-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.entrance-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--dur) ease-in-out infinite;
}

.entrance-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Entrance Photo */
.entrance-photo-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 36px;
    animation: entranceFloat 3s ease-in-out infinite;
}

.entrance-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 40px rgba(233, 30, 140, 0.3), 0 0 80px rgba(139, 92, 246, 0.2);
}

.entrance-photo-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    animation: spinRing 3s linear infinite;
    z-index: 1;
}

.entrance-photo-ring.ring-2 {
    inset: -16px;
    border-top-color: var(--accent-gold);
    border-left-color: var(--accent-teal);
    animation-direction: reverse;
    animation-duration: 4s;
}

.entrance-text {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 36px;
    letter-spacing: 0.5px;
    min-height: 2.2em;
}

.typewriter {
    color: var(--text-primary);
}

.cursor {
    animation: blink 0.7s infinite;
    color: var(--primary);
    font-weight: 100;
}

.open-btn {
    background: var(--gradient-1);
    border: none;
    padding: 20px 52px;
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: white;
    border-radius: 60px;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 40px rgba(233, 30, 140, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeInUp 1s ease 2.5s both, btnPulse 2.5s ease-in-out infinite 3.5s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.open-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

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

.open-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 56px rgba(233, 30, 140, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-sparkle {
    font-size: 1.2rem;
    animation: sparkleAnim 2s ease-in-out infinite;
}

/* ============================
   Canvases
   ============================ */
#confetti-canvas, #fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

#fireworks-canvas {
    z-index: 9998;
}

/* ============================
   Floating Particles
   ============================ */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0.3;
}

/* ============================
   Shooting Stars
   ============================ */
#shooting-stars {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    animation: shootingStar var(--shoot-dur, 3s) linear infinite;
    opacity: 0;
    top: var(--shoot-top, 20%);
    left: var(--shoot-left, -100px);
    transform: rotate(-35deg);
}

.shooting-star:nth-child(1) { --shoot-dur: 4s; --shoot-top: 10%; animation-delay: 0s; }
.shooting-star:nth-child(2) { --shoot-dur: 5s; --shoot-top: 25%; animation-delay: 2s; }
.shooting-star:nth-child(3) { --shoot-dur: 3.5s; --shoot-top: 45%; animation-delay: 4s; }
.shooting-star:nth-child(4) { --shoot-dur: 6s; --shoot-top: 60%; animation-delay: 1s; }
.shooting-star:nth-child(5) { --shoot-dur: 4.5s; --shoot-top: 35%; animation-delay: 6s; }

/* ============================
   Music Toggle
   ============================ */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.music-toggle:hover {
    background: var(--bg-card-hover);
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(233, 30, 140, 0.2);
}

.music-toggle.playing {
    animation: musicPulse 1s ease-in-out infinite;
    border-color: rgba(233, 30, 140, 0.3);
}

/* ============================
   Hero Section
   ============================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 40px 20px;
}

.hero-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -150px;
    right: -150px;
    animation: morphShape 15s ease-in-out infinite;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -100px;
    left: -150px;
    animation: morphShape 12s ease-in-out infinite reverse;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-gold);
    top: 40%;
    left: 65%;
    animation: morphShape 18s ease-in-out infinite 3s;
}

.shape-4 {
    width: 300px;
    height: 300px;
    background: var(--accent-teal);
    top: 15%;
    left: 8%;
    animation: morphShape 14s ease-in-out infinite 5s;
}

.shape-5 {
    width: 200px;
    height: 200px;
    background: var(--accent-pink);
    top: 70%;
    right: 15%;
    animation: morphShape 16s ease-in-out infinite 2s;
}

/* Floating Decorations */
.floating-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.float-deco {
    position: absolute;
    font-size: 1.8rem;
    left: var(--x);
    top: var(--y);
    animation: floatDeco var(--dur) ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.5;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

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

/* Hero Photo with Rings */
.hero-photo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    animation: fadeInUp 0.8s ease both;
}

.hero-photo-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.hero-photo-ring.ring-outer {
    inset: -12px;
    border-image: var(--gradient-rainbow) 1;
    border-radius: 50%;
    border: 2px solid;
    border-color: var(--primary);
    animation: spinRing 8s linear infinite;
    opacity: 0.5;
}

.hero-photo-ring.ring-inner {
    inset: -6px;
    border: 2px solid;
    border-color: var(--secondary);
    animation: spinRing 6s linear infinite reverse;
    opacity: 0.4;
}

.hero-photo-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: var(--gradient-1);
    animation: photoGlowPulse 3s ease-in-out infinite;
    z-index: 0;
    filter: blur(2px);
}

.hero-photo {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 4px solid var(--bg-dark);
    z-index: 2;
    box-shadow: 0 16px 48px rgba(233, 30, 140, 0.3);
    animation: photoFloat 5s ease-in-out infinite;
}

/* Photo Sparkles */
.photo-sparkles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.photo-sparkles span {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 0.8rem;
    color: var(--accent-gold);
    transform: rotate(var(--angle)) translateX(110px) rotate(calc(-1 * var(--angle)));
    animation: photoSparkle 3s ease-in-out infinite;
    animation-delay: calc(var(--angle) / 360deg * 3s);
    opacity: 0;
}

.sparkle-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.sparkle {
    font-size: 1.8rem;
    animation: sparkleAnim 2s ease-in-out infinite;
}

.sparkle:nth-child(2) { animation-delay: 0.3s; }
.sparkle:nth-child(3) { animation-delay: 0.6s; }

.birthday-title {
    font-family: var(--font-display);
    margin-bottom: 8px;
    position: relative;
}

.title-line-1 {
    display: block;
    font-size: clamp(3rem, 10vw, 7rem);
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease both;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.3));
}

.title-line-2 {
    display: block;
    font-size: clamp(4rem, 14vw, 10rem);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.3s both;
    filter: drop-shadow(0 0 40px rgba(233, 30, 140, 0.3));
}

.birthday-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    animation: fadeInUp 1s ease 0.5s both, nameGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(233, 30, 140, 0.3));
}

.birthday-subtitle {
    font-family: var(--font-script);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 36px;
    animation: fadeInUp 1s ease 0.6s both;
    letter-spacing: 1px;
}

.hero-emoji-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease 0.9s both;
}

.bounce-emoji {
    font-size: 2.5rem;
    animation: bounceEmoji 2s ease-in-out infinite;
    display: inline-block;
}

.bounce-emoji:nth-child(2) { animation-delay: 0.2s; }
.bounce-emoji:nth-child(3) { animation-delay: 0.4s; }
.bounce-emoji:nth-child(4) { animation-delay: 0.6s; }
.bounce-emoji:nth-child(5) { animation-delay: 0.8s; }

/* Scroll Indicator - Mouse */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 1s ease 1.5s both;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
}

/* ============================
   Sections General
   ============================ */
.section {
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-inner.reverse {
    direction: rtl;
}

.section-inner.reverse > * {
    direction: ltr;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-badge.center {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.center-title {
    text-align: center;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
}

.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
}

.decorative-line {
    width: 80px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    margin-top: 28px;
}

/* ============================
   Reveal on Scroll
   ============================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

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

/* ============================
   Image Frame (shared)
   ============================ */
.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-frame:hover img {
    transform: scale(1.06);
}

.image-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.8s;
    pointer-events: none;
}

.image-frame:hover .image-shine {
    transform: translateX(100%);
}

/* ============================
   Cake Section
   ============================ */
.cake-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #110820 50%, #1a0a2e 100%);
}

/* ============================
   Message Cards
   ============================ */
.messages-section {
    background: linear-gradient(180deg, #1a0a2e 0%, #130720 50%, var(--bg-dark) 100%);
}

.cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.message-card {
    position: relative;
    border-radius: 20px;
    padding: 2px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.card-gradient-border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.message-card:hover .card-gradient-border {
    opacity: 1;
}

.card-inner {
    background: var(--bg-dark);
    border-radius: 18px;
    padding: 36px 28px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    height: 100%;
}

.message-card:hover .card-inner {
    background: #0e0920;
    border-color: transparent;
}

.message-card:hover {
    transform: translateY(-10px);
    filter: drop-shadow(0 20px 40px rgba(233, 30, 140, 0.15));
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: inline-block;
    animation: none;
    transition: transform 0.3s ease;
}

.message-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
}

.card-inner h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-inner p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ============================
   Flowers Section
   ============================ */
.flowers-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #110820 50%, #1a0a2e 100%);
}

.flower-emojis {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    font-size: 2.2rem;
}

.flower-emojis span {
    animation: bounceEmoji 2s ease-in-out infinite;
    display: inline-block;
    transition: transform 0.3s ease;
}

.flower-emojis span:hover {
    transform: scale(1.4) rotate(10deg);
}

.flower-emojis span:nth-child(2) { animation-delay: 0.15s; }
.flower-emojis span:nth-child(3) { animation-delay: 0.3s; }
.flower-emojis span:nth-child(4) { animation-delay: 0.45s; }
.flower-emojis span:nth-child(5) { animation-delay: 0.6s; }

/* ============================
   Fun Stats Section
   ============================ */
.fun-section {
    background: linear-gradient(180deg, #1a0a2e 0%, var(--bg-dark) 100%);
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(233, 30, 140, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(233, 30, 140, 0.2);
    box-shadow: 0 20px 60px rgba(233, 30, 140, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    font-family: var(--font-serif);
}

.stat-plus, .stat-percent {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
    font-weight: 300;
    line-height: 1.5;
}

/* ============================
   Timeline Section
   ============================ */
.timeline-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0618 100%);
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent-teal), var(--accent-gold));
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient-1);
    box-shadow: 0 0 24px rgba(233, 30, 140, 0.5);
}

.timeline-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(233, 30, 140, 0.3);
    animation: dotPulse 2s ease-in-out infinite;
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content:hover {
    background: var(--bg-card-hover);
    transform: translateX(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.timeline-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ============================
   Final Section
   ============================ */
.final-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    position: relative;
    padding: 80px 20px;
}

.final-bg-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(233, 30, 140, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: breathe 6s ease-in-out infinite;
}

.final-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.final-sparkles {
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.final-sparkles span {
    animation: sparkleAnim 1.5s ease-in-out infinite;
}

.final-sparkles span:nth-child(2) { animation-delay: 0.2s; }
.final-sparkles span:nth-child(3) { animation-delay: 0.4s; }
.final-sparkles span:nth-child(4) { animation-delay: 0.6s; }
.final-sparkles span:nth-child(5) { animation-delay: 0.8s; }

.final-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
}

.final-letter {
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 52px 44px;
    text-align: left;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.final-letter::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 28px 28px 0 0;
}

.letter-seal {
    position: absolute;
    top: -20px;
    right: 40px;
    font-size: 2.8rem;
    animation: bounceEmoji 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.letter-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.letter-text.greeting {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 24px;
}

.letter-text.signature {
    margin-bottom: 0;
    text-align: right;
    font-style: italic;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.signature-name {
    font-family: var(--font-script);
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Final Photo */
.final-photo-section {
    margin-bottom: 40px;
}

.final-photo-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-1);
    animation: photoFloat 4s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(233, 30, 140, 0.2);
}

.final-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--bg-darker);
}

.final-cake-emoji {
    font-size: 5rem;
    margin-bottom: 16px;
    animation: bounceEmoji 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}

.final-wish {
    margin-bottom: 40px;
}

.wish-line {
    display: block;
    font-family: var(--font-script);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.wish-line.big {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.wish-emojis {
    display: block;
    font-size: 2.5rem;
    letter-spacing: 8px;
}

.celebrate-btn {
    background: transparent;
    border: 2px solid var(--glass-border);
    padding: 16px 40px;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.celebrate-btn:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(233, 30, 140, 0.3);
}

/* ============================
   Footer
   ============================ */
.footer {
    text-align: center;
    padding: 48px 20px;
    background: var(--bg-darker);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-hearts {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-hearts span {
    animation: bounceEmoji 2s ease-in-out infinite;
}

.footer-hearts span:nth-child(2) { animation-delay: 0.15s; }
.footer-hearts span:nth-child(3) { animation-delay: 0.3s; }
.footer-hearts span:nth-child(4) { animation-delay: 0.45s; }
.footer-hearts span:nth-child(5) { animation-delay: 0.6s; }

.footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-year {
    font-size: 0.75rem !important;
    opacity: 0.5;
}

/* ============================
   Animations
   ============================ */
@keyframes entranceFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

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

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

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

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

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 8px 40px rgba(233, 30, 140, 0.4), inset 0 1px 0 rgba(255,255,255,0.2); }
    50% { box-shadow: 0 8px 60px rgba(233, 30, 140, 0.6), inset 0 1px 0 rgba(255,255,255,0.2); }
}

@keyframes sparkleAnim {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.3) rotate(15deg); opacity: 1; }
}

@keyframes bounceEmoji {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes morphShape {
    0%, 100% { border-radius: 50%; transform: scale(1) translate(0, 0); }
    33% { border-radius: 40% 60% 60% 40%; transform: scale(1.1) translate(30px, -30px); }
    66% { border-radius: 60% 40% 40% 60%; transform: scale(0.9) translate(-20px, 20px); }
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

@keyframes floatDeco {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    75% { transform: translateY(10px) rotate(-5deg); }
}

@keyframes shootingStar {
    0% { transform: translateX(0) rotate(-35deg); opacity: 0; }
    5% { opacity: 1; }
    15% { opacity: 1; }
    20% { transform: translateX(calc(100vw + 200px)) rotate(-35deg); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(233, 30, 140, 0.4); }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.8); opacity: 0; }
}

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

@keyframes photoGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes photoSparkle {
    0%, 100% { opacity: 0; transform: rotate(var(--angle)) translateX(110px) rotate(calc(-1 * var(--angle))) scale(0.5); }
    50% { opacity: 1; transform: rotate(var(--angle)) translateX(115px) rotate(calc(-1 * var(--angle))) scale(1.2); }
}

@keyframes nameGlow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(233, 30, 140, 0.3)); }
    50% { filter: drop-shadow(0 0 50px rgba(233, 30, 140, 0.5)); }
}

@keyframes mouseScroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

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

@keyframes lidOpen {
    from { transform: translateY(0) rotate(0); }
    to { transform: translateY(-60px) rotate(-30deg); opacity: 0; }
}

/* ============================
   Responsive Design
   ============================ */
@media (max-width: 900px) {
    .section-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .section-inner.reverse {
        direction: ltr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 80px 20px;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 60px 16px;
    }
    
    .entrance-text {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .open-btn {
        padding: 16px 36px;
        font-size: 1rem;
    }
    
    .hero-photo-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .hero-emoji-row {
        gap: 12px;
    }
    
    .bounce-emoji {
        font-size: 1.8rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        padding: 0 4px;
    }
    
    .card-inner {
        padding: 28px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 28px 16px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .final-letter {
        padding: 36px 24px;
    }
    
    .timeline {
        padding-left: 36px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-dot {
        left: -32px;
    }
    
    .flower-emojis {
        font-size: 1.5rem;
        gap: 10px;
    }

    .float-deco {
        font-size: 1.2rem;
    }

    .entrance-photo-wrapper {
        width: 120px;
        height: 120px;
    }
}
