/* ══════════════════════════════════════════════════════════════
   💕 PROPOSAL WEBSITE FOR BAANI — FROM GARV
   The Most Beautiful Proposal Website Ever Created
   ══════════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES & DESIGN TOKENS ─── */
:root {
    --color-primary: #e91e63;
    --color-primary-dark: #c2185b;
    --color-primary-light: #f8bbd0;
    --color-secondary: #ff6b9d;
    --color-accent: #ffd700;
    --color-accent-glow: #ffab00;
    --color-bg-dark: #0a0612;
    --color-bg-section: #120820;
    --color-bg-card: rgba(255, 255, 255, 0.05);
    --color-text: #fff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-glass: rgba(255, 255, 255, 0.08);
    --color-glass-border: rgba(255, 255, 255, 0.15);
    --color-rose: #e74c6f;
    --color-rose-dark: #a83256;
    --color-lavender: #b388ff;
    --font-cursive: 'Great Vibes', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Poppins', sans-serif;
    --glow-primary: 0 0 20px rgba(233, 30, 99, 0.5), 0 0 40px rgba(233, 30, 99, 0.3);
    --glow-accent: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-bg-dark);
}

html::-webkit-scrollbar {
    width: 6px;
}
html::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
html::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg-dark);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom cursor */
body::after {
    content: '💕';
    position: fixed;
    pointer-events: none;
    font-size: 20px;
    z-index: 99999;
    transition: transform 0.1s ease;
    animation: cursorPulse 1.5s ease-in-out infinite;
}

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

/* ─── PRELOADER ─── */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-heart {
    position: relative;
    width: 80px;
    height: 80px;
    animation: preloaderBeat 1s ease-in-out infinite;
}

.heart-piece {
    position: absolute;
    top: 0;
    width: 52px;
    height: 80px;
    border-radius: 52px 52px 0 0;
    background: var(--color-primary);
}

.piece-left {
    left: 4px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.piece-right {
    left: 28px;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

@keyframes preloaderBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
}

.preloader-text {
    margin-top: 30px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-text-muted);
    animation: fadeInOut 2s ease-in-out infinite;
}

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

/* ─── CANVASES ─── */
#cursor-trail, #rose-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

#rose-petals {
    z-index: 9997;
}

/* ─── FLOATING HEARTS BACKGROUND ─── */
#floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: floatUpHeart linear infinite;
    filter: drop-shadow(0 0 6px rgba(233, 30, 99, 0.5));
}

@keyframes floatUpHeart {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(90vh) rotate(36deg) scale(1);
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* ─── MUSIC BUTTON ─── */
.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-glass-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--glow-primary);
    border-color: var(--color-primary);
}

.music-waves {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.music-waves span {
    display: block;
    width: 3px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: musicWave 0.8s ease-in-out infinite;
}

.music-waves span:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-waves span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.music-waves span:nth-child(3) { height: 10px; animation-delay: 0.4s; }

@keyframes musicWave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.5); }
}

.music-btn.paused .music-waves span {
    animation-play-state: paused;
}

.music-icon {
    display: none;
}

.music-btn.paused .music-icon {
    display: block;
}

.music-btn.paused .music-waves {
    display: none;
}

/* ─── SCROLL PROGRESS ─── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-lavender), var(--color-primary));
    background-size: 300% 100%;
    animation: progressGradient 3s ease infinite;
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-accent);
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ─── SECTIONS COMMON ─── */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px;
}

.section-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.title-accent {
    display: block;
    font-family: var(--font-cursive);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-accent);
    text-shadow: var(--glow-accent);
    margin-bottom: 5px;
}

.title-main {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--color-primary-light) 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Card */
.glass-card {
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary), 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Scroll Reveal Base */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.scroll-reveal[data-direction="left"] {
    transform: translateX(-100px);
}

.scroll-reveal[data-direction="right"] {
    transform: translateX(100px);
}

.scroll-reveal[data-direction="left"].visible,
.scroll-reveal[data-direction="right"].visible {
    transform: translateX(0);
}

/* ══════════════════════════════════════════════════════════════
   SECTION 1: HERO
   ══════════════════════════════════════════════════════════════ */
.hero-section {
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0612 70%);
    flex-direction: column;
    perspective: 1000px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 200px 60px, #fff, transparent);
    background-repeat: repeat;
    background-size: 250px 180px;
    animation: twinkleStars 4s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes twinkleStars {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* 3D Heart */
.hero-3d-scene {
    perspective: 800px;
    margin-bottom: 40px;
    z-index: 10;
}

.heart-3d {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3DHeart 4s ease-in-out infinite;
}

@keyframes rotate3DHeart {
    0% { transform: rotateY(0deg) rotateX(10deg); }
    25% { transform: rotateY(90deg) rotateX(-5deg); }
    50% { transform: rotateY(180deg) rotateX(10deg); }
    75% { transform: rotateY(270deg) rotateX(-5deg); }
    100% { transform: rotateY(360deg) rotateX(10deg); }
}

.heart-face {
    position: absolute;
    width: 100%;
    height: 100%;
}

.heart-face::before {
    content: '❤️';
    font-size: 120px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 30px var(--color-primary));
}

.heart-face.front { transform: translateZ(30px); }
.heart-face.back { transform: translateZ(-30px) rotateY(180deg); }
.heart-face.left { transform: translateX(-30px) rotateY(-90deg); }
.heart-face.right { transform: translateX(30px) rotateY(90deg); }

.heart-glow {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.3) 0%, transparent 70%);
    animation: heartGlow 2s ease-in-out infinite;
    border-radius: 50%;
}

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

/* Hero Content */
.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-name {
    font-family: var(--font-cursive);
    font-size: clamp(4rem, 12vw, 10rem);
    color: var(--color-accent);
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        0 0 80px rgba(255, 215, 0, 0.15);
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
}

.hero-name .letter {
    display: inline-block;
    opacity: 0;
    animation: letterReveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: calc(0.8s + var(--i) * 0.15s);
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(80px) rotateX(90deg) scale(0);
    }
    50% {
        transform: translateY(-10px) rotateX(-10deg) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

.hero-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    animation: underlineGrow 1s ease forwards;
    animation-delay: 2s;
}

@keyframes underlineGrow {
    to { width: 100%; }
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--color-primary-light);
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 1.8s;
}

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

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 2.2s;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.divider-heart {
    font-size: 1.5rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 3s;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-text-muted);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 28px; }
}

.scroll-indicator p {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 10px;
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-arrows span {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    animation: scrollArrow 2s infinite;
    opacity: 0;
}

.scroll-arrows span:nth-child(1) { animation-delay: 0s; }
.scroll-arrows span:nth-child(2) { animation-delay: 0.2s; }
.scroll-arrows span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollArrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* Sparkle Ring */
.hero-sparkle-ring {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: sparkleRing 6s linear infinite;
    background: conic-gradient(from 0deg, transparent, var(--color-primary), transparent, var(--color-accent), transparent) border-box;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 2px;
    opacity: 0.3;
}

@keyframes sparkleRing {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════════
   SECTION 2: THE MOMENT I KNEW
   ══════════════════════════════════════════════════════════════ */
.moment-section {
    background: linear-gradient(180deg, #0a0612 0%, #1a0a2e 50%, #0a0612 100%);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(233, 30, 99, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(179, 136, 255, 0.08) 0%, transparent 50%);
}

/* Timeline */
.moment-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--color-primary), var(--color-accent), var(--color-primary), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--color-bg-dark);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 5;
    box-shadow: var(--glow-primary);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: var(--glow-primary); }
    50% { box-shadow: 0 0 30px rgba(233, 30, 99, 0.8), 0 0 60px rgba(233, 30, 99, 0.4); }
}

.timeline-card {
    width: calc(50% - 50px);
    margin: 0 25px;
}

.timeline-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.timeline-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 3: REASONS I LOVE YOU
   ══════════════════════════════════════════════════════════════ */
.reasons-section {
    background: linear-gradient(180deg, #0a0612 0%, #150a25 50%, #0a0612 100%);
}

.stars-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 50% 10%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 15% 90%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.9), transparent);
    animation: twinkleStars 3s ease-in-out infinite alternate;
}

.reasons-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
}

.reason-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    transition-delay: calc(var(--card-delay) * 0.15s);
}

.reason-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--color-primary), transparent 30%);
    animation: cardRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.reason-card:hover::before {
    opacity: 0.3;
}

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

.reason-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--card-delay) * 0.3s);
}

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

.reason-number {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 215, 0, 0.08);
    position: absolute;
    top: 10px;
    right: 20px;
}

.reason-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.reason-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 4: THE LOVE LETTER
   ══════════════════════════════════════════════════════════════ */
.letter-section {
    background: linear-gradient(180deg, #0a0612 0%, #1a0520 50%, #0a0612 100%);
}

.letter-bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(233, 30, 99, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Envelope */
.love-letter {
    max-width: 700px;
    margin: 0 auto;
    perspective: 1000px;
}

.letter-envelope {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.letter-envelope.opened {
    transform: rotateX(-180deg) scale(0);
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.envelope-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 50%, #f06292 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.3);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, #ad1457, #c2185b);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transform-origin: top center;
    transition: transform 0.6s ease;
    z-index: 2;
    border-radius: 10px 10px 0 0;
}

.letter-envelope:hover .envelope-flap {
    transform: rotateX(20deg);
}

.envelope-text {
    font-family: var(--font-cursive);
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
    50% { text-shadow: 0 2px 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3); }
}

/* Letter Paper */
.letter-paper {
    display: none;
    background: linear-gradient(180deg, #fdf6f0 0%, #fef9f4 100%);
    border-radius: 15px;
    padding: 50px 40px;
    color: #2c1810;
    box-shadow: 
        0 20px 80px rgba(233, 30, 99, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 80px rgba(233, 30, 99, 0.03);
    position: relative;
    overflow: hidden;
    animation: letterAppear 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.letter-paper.visible {
    display: block;
}

@keyframes letterAppear {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8) rotateX(20deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-lavender));
}

.letter-paper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.06), transparent 70%);
}

.letter-header {
    text-align: center;
    margin-bottom: 30px;
}

.letter-rose {
    font-size: 3rem;
    animation: iconFloat 3s ease-in-out infinite;
}

.letter-date {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    color: #9e7e6e;
    margin-top: 10px;
}

.letter-body p {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 18px;
    color: #3c2a20;
}

.letter-greeting {
    font-family: var(--font-cursive) !important;
    font-size: 2rem !important;
    color: var(--color-primary-dark) !important;
    margin-bottom: 25px !important;
}

.letter-highlight {
    font-weight: 600;
    color: var(--color-primary-dark) !important;
    font-size: 1.1rem !important;
}

.letter-declaration {
    font-style: italic;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.08), rgba(255, 215, 0, 0.08));
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--color-primary);
    font-size: 1.1rem !important;
    color: var(--color-primary-dark) !important;
}

.letter-signature {
    text-align: right;
    margin-top: 30px !important;
    font-style: italic;
    color: #6e4e3e !important;
}

.signature-name {
    font-family: var(--font-cursive);
    font-size: 2.5rem;
    color: var(--color-primary) !important;
    display: inline-block;
    margin-top: 5px;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 5: THE PROPOSAL
   ══════════════════════════════════════════════════════════════ */
.proposal-section {
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0612 70%);
    flex-direction: column;
    text-align: center;
}

.proposal-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.proposal-lights::before,
.proposal-lights::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
}

.proposal-lights::before {
    background: rgba(233, 30, 99, 0.15);
    top: 20%;
    left: 20%;
    animation: floatLight 8s ease-in-out infinite;
}

.proposal-lights::after {
    background: rgba(255, 215, 0, 0.1);
    bottom: 20%;
    right: 20%;
    animation: floatLight 8s ease-in-out infinite reverse;
}

@keyframes floatLight {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(50px, -30px); }
    66% { transform: translate(-30px, 50px); }
}

/* Ring Box */
.proposal-ring-box {
    margin: 0 auto 50px;
    width: 120px;
    height: 120px;
    position: relative;
    perspective: 600px;
}

.ring-box-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, #2d1b4e, #1a0a2e);
    border-radius: 15px 15px 0 0;
    border: 2px solid var(--color-accent);
    border-bottom: none;
    transform-origin: top center;
    animation: openLid 3s ease-in-out infinite;
    z-index: 2;
    box-shadow: 0 -5px 20px rgba(255, 215, 0, 0.2);
}

@keyframes openLid {
    0%, 100% { transform: rotateX(0deg); }
    40%, 60% { transform: rotateX(-120deg); }
}

.ring-box-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, #1a0a2e, #0f0620);
    border-radius: 0 0 15px 15px;
    border: 2px solid var(--color-accent);
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

.ring {
    position: relative;
    animation: ringBounce 3s ease-in-out infinite;
}

@keyframes ringBounce {
    0%, 100% { transform: translateY(0); }
    40%, 60% { transform: translateY(-20px); }
}

.ring-band {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-accent);
    border-radius: 50%;
    box-shadow: var(--glow-accent);
}

.ring-diamond {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    animation: diamondSparkle 1.5s ease-in-out infinite;
}

@keyframes diamondSparkle {
    0%, 100% { transform: translateX(-50%) scale(1) rotate(0deg); }
    50% { transform: translateX(-50%) scale(1.2) rotate(15deg); }
}

/* Proposal Question */
.proposal-question {
    font-family: var(--font-cursive);
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    line-height: 1.3;
}

.question-word {
    display: inline-block;
    opacity: 0;
    animation: wordReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: calc(var(--wi) * 0.2s);
    animation-play-state: paused;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light), var(--color-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wordReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               shimmerText 3s ease-in-out infinite;
}

@keyframes wordReveal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0) rotateZ(-15deg);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateZ(0deg);
        filter: blur(0);
    }
}

@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.proposal-subtitle {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 50px;
}

/* Buttons */
.proposal-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.proposal-btn {
    padding: 18px 50px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 1px;
}

.yes-btn {
    background: linear-gradient(135deg, var(--color-primary), #ff6b9d, var(--color-primary));
    background-size: 200% auto;
    color: white;
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.4);
    animation: yesGlow 2s ease-in-out infinite, shimmerBtn 3s ease infinite;
}

@keyframes yesGlow {
    0%, 100% { box-shadow: 0 10px 40px rgba(233, 30, 99, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(233, 30, 99, 0.7), 0 0 80px rgba(233, 30, 99, 0.3); }
}

@keyframes shimmerBtn {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.yes-btn:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 50px rgba(233, 30, 99, 0.6);
}

.yes-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% { transform: rotate(45deg) translateY(100%); }
    50% { transform: rotate(45deg) translateY(-100%); }
    100% { transform: rotate(45deg) translateY(100%); }
}

.no-btn {
    background: transparent;
    color: var(--color-text-muted);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.no-btn:hover {
    transform: scale(0.9);
    opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 6: CELEBRATION
   ══════════════════════════════════════════════════════════════ */
.celebration-section {
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0612 70%);
    flex-direction: column;
    text-align: center;
}

.celebration-section.hidden {
    display: none;
}

.celebration-section.visible {
    display: flex;
    animation: celebrationAppear 1s ease forwards;
}

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

#fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.celebration-content {
    position: relative;
    z-index: 10;
}

.celebration-title {
    font-family: var(--font-cursive);
    font-size: clamp(3rem, 10vw, 7rem);
    margin-bottom: 30px;
    line-height: 1.2;
}

.celebrate-letter {
    display: inline-block;
    opacity: 0;
    animation: celebrateLetter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: calc(var(--ci) * 0.1s);
    color: white;
}

.celebrate-letter.highlight {
    color: var(--color-accent);
    text-shadow: var(--glow-accent);
    font-size: 1.3em;
}

@keyframes celebrateLetter {
    0% {
        opacity: 0;
        transform: translateY(-100px) rotateZ(360deg) scale(0);
    }
    60% {
        transform: translateY(10px) rotateZ(-10deg) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateZ(0) scale(1);
    }
}

.celebration-subtitle {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-style: italic;
}

.celebration-promise {
    max-width: 600px;
    margin: 0 auto 50px;
    text-align: center;
}

.celebration-promise p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.promise-sign {
    font-family: var(--font-cursive) !important;
    font-size: 1.8rem !important;
    color: var(--color-accent) !important;
    margin-top: 20px !important;
}

/* Infinity Symbol */
.infinity-symbol {
    margin-top: 30px;
}

.infinity-svg {
    width: 200px;
    height: 100px;
}

.infinity-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawInfinity 3s ease forwards, infinityGlow 2s ease-in-out infinite 3s;
}

@keyframes drawInfinity {
    to { stroke-dashoffset: 0; }
}

@keyframes infinityGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 107, 157, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.infinity-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 15px;
}

/* ═══════════════ FOOTER ═══════════════ */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--color-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer p {
    font-family: var(--font-serif);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-small {
    font-size: 0.8rem !important;
    margin-top: 8px;
    opacity: 0.5;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }

    .timeline-card {
        width: 100%;
        margin: 15px 0 0;
    }

    .reasons-carousel {
        grid-template-columns: 1fr;
    }

    .letter-paper {
        padding: 30px 20px;
    }

    .proposal-buttons {
        flex-direction: column;
        align-items: center;
    }

    .proposal-btn {
        width: 80%;
    }

    .hero-sparkle-ring {
        width: 300px;
        height: 300px;
    }
    
    .section {
        padding: 60px 15px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .proposal-question {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .celebration-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }
}

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