/* ============ GLOBAL RESETS & VARIABLES ============ */
:root {
    --pink-50: #fce4ec;
    --pink-100: #f8bbd0;
    --pink-200: #f48fb1;
    --pink-300: #f06292;
    --pink-400: #ec407a;
    --pink-500: #e91e63;
    --pink-600: #d81b60;
    --pink-700: #c2185b;
    --pink-800: #ad1457;
    --pink-900: #880e4f;
    --rose: #ff6b9d;
    --rose-light: #ff8fb4;
    --blush: #fff0f5;
    --gold: #ffd700;
    --gold-light: #ffe566;
    --dark-bg: #080810;
    --dark-surface: #0e0e1a;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: var(--dark-bg);
    color: var(--text-primary);
    cursor: default;
}

::selection {
    background: rgba(236, 64, 122, 0.3);
    color: #fff;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--pink-400), var(--rose), var(--gold), var(--pink-300));
    background-size: 300% 100%;
    animation: progressGradient 3s ease infinite;
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(236, 64, 122, 0.5);
}

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

/* ============ MUSIC TOGGLE ============ */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--pink-200);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-smooth);
    padding: 10px;
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.1);
    border-color: var(--pink-400);
}

.music-icon {
    width: 20px;
    height: 20px;
}

.music-icon.hidden {
    display: none;
}

/* ============ CURSOR SPARKLE ============ */
#sparkleContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink-300);
    pointer-events: none;
    animation: sparkleFade 0.8s ease forwards;
    box-shadow: 0 0 6px var(--pink-300);
}

.sparkle.gold {
    background: var(--gold);
    box-shadow: 0 0 6px var(--gold);
}

@keyframes sparkleFade {
    0% { opacity: 1; transform: scale(1) translate(0, 0); }
    100% { opacity: 0; transform: scale(0) translate(var(--dx), var(--dy)); }
}

/* ============ GLASS BUTTON ============ */
.glass-btn {
    background: rgba(236, 64, 122, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(236, 64, 122, 0.25);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.glass-btn:hover::before {
    left: 100%;
}

.glass-btn:hover {
    background: rgba(236, 64, 122, 0.25);
    border-color: rgba(236, 64, 122, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(236, 64, 122, 0.3);
}

.glass-btn-solid {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
    border: none;
    color: white;
    padding: 18px 48px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(236, 64, 122, 0.4),
                inset 0 1px 0 rgba(255,255,255,0.2);
}

.glass-btn-solid:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 10px 40px rgba(236, 64, 122, 0.5),
                inset 0 1px 0 rgba(255,255,255,0.2);
}

.arrow-down {
    animation: bounceDown 1.8s ease infinite;
    opacity: 0.7;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.next-btn {
    position: relative;
    z-index: 10;
    margin-top: 40px;
}

/* ============ SECTION 1: STARRY NIGHT ============ */
#starry-landing {
    background: var(--dark-bg);
}

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

.nebula-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 64, 122, 0.06) 0%, transparent 70%);
    z-index: 0;
    animation: nebulaPulse 6s ease-in-out infinite;
}

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

.landing-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.landing-pre-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 6px;
    text-transform: uppercase;
    animation: fadeInDown 1.5s ease 0.3s both;
    margin-bottom: 10px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.name-glow {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(5rem, 14vw, 10rem);
    background: linear-gradient(135deg, var(--pink-200), var(--rose), var(--gold), var(--pink-300), var(--rose-light));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite, nameReveal 2s ease both;
    filter: drop-shadow(0 0 40px rgba(244, 143, 177, 0.4));
    line-height: 1.1;
    margin-bottom: 15px;
}

@keyframes gradientShift {
    0% { background-position: 0% 25%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 25%; }
}

@keyframes nameReveal {
    0% { opacity: 0; transform: scale(0.8); filter: blur(10px) drop-shadow(0 0 40px rgba(244, 143, 177, 0.4)); }
    60% { opacity: 1; filter: blur(0) drop-shadow(0 0 60px rgba(244, 143, 177, 0.6)); }
    100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 40px rgba(244, 143, 177, 0.4)); }
}

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

.landing-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 5px;
    animation: fadeInUp 1.5s ease 1.5s both;
    font-weight: 300;
    letter-spacing: 1px;
    min-height: 2em;
}

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

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

#beginBtn {
    animation: fadeInUp 1.5s ease 3.5s both;
    margin: 40px auto 0;
}

/* Ambient particles on landing */
.ambient-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ambient-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--pink-300);
    border-radius: 50%;
    opacity: 0;
    animation: ambientFloat linear infinite;
}

@keyframes ambientFloat {
    0% { opacity: 0; transform: translateY(0) translateX(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-100vh) translateX(50px); }
}

/* ============ SECTION 2: HEARTBEAT SORRY ============ */
#sorry-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0d0815 50%, var(--dark-bg) 100%);
}

.sorry-container {
    text-align: center;
    padding: 20px;
}

.heartbeat-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.heart-3d {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    position: relative;
    animation: heartPump 1.2s ease-in-out infinite;
}

.heart-shape {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
    clip-path: path('M50,90 C50,90 10,60 10,35 C10,15 30,5 50,25 C70,5 90,15 90,35 C90,60 50,90 50,90Z');
    filter: drop-shadow(0 0 20px rgba(236, 64, 122, 0.5));
}

.heart-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(236, 64, 122, 0.2) 0%, transparent 70%);
    animation: heartGlowPulse 1.2s ease-in-out infinite;
}

@keyframes heartPump {
    0% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.08); }
    60% { transform: scale(1); }
}

@keyframes heartGlowPulse {
    0% { opacity: 0.3; transform: scale(1); }
    15% { opacity: 0.8; transform: scale(1.2); }
    30% { opacity: 0.3; transform: scale(1); }
    45% { opacity: 0.6; transform: scale(1.1); }
    60% { opacity: 0.3; transform: scale(1); }
}

.heartbeat-line {
    width: 80%;
    max-width: 500px;
    height: 60px;
    display: block;
    margin: 0 auto;
}

.heartbeat-path {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: heartbeatDraw 2.5s ease-in-out infinite;
}

@keyframes heartbeatDraw {
    0% { stroke-dashoffset: 800; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -800; }
}

.sorry-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    background: linear-gradient(135deg, var(--pink-200), var(--rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.sorry-count {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.count-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.sorry-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    max-width: 500px;
    margin: 0 auto;
}

.sorry-word {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0;
    color: var(--text-secondary);
    animation: wordReveal 0.6s ease forwards;
    animation-delay: calc(0.3s + var(--i) * 0.15s);
}

.sorry-word:last-child {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: var(--pink-300);
    font-weight: 700;
}

@keyframes wordReveal {
    from { opacity: 0; transform: translateY(15px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ============ REVEAL ANIMATION ============ */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}

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

/* ============ SECTION 3: LOVE LETTER ============ */
#love-letter {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0f0818 50%, var(--dark-bg) 100%);
    padding: 40px 20px;
}

.letter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Enhanced Envelope */
.envelope {
    width: 300px;
    height: 200px;
    position: relative;
    cursor: pointer;
    transition: all 0.8s var(--transition-smooth);
    perspective: 800px;
    animation: envelopeFloat 3s ease-in-out infinite;
}

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

.envelope.opened {
    transform: scale(0.5) translateY(-40px);
    opacity: 0;
    pointer-events: none;
    animation: none;
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pink-600), var(--pink-700));
    border-radius: 4px;
    z-index: 1;
}

.envelope-front {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    border-radius: 0 0 4px 4px;
    z-index: 3;
    clip-path: polygon(0 30%, 50% 0%, 100% 30%, 100% 100%, 0 100%);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(180deg, var(--pink-500), var(--pink-600));
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    z-index: 4;
    transition: transform 0.6s var(--transition-smooth);
    transform-origin: top center;
}

.envelope.opened .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-letter-peek {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80%;
    height: 40%;
    background: var(--blush);
    border-radius: 3px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s var(--transition-smooth) 0.3s;
}

.envelope-letter-peek p {
    font-family: 'Dancing Script', cursive;
    color: var(--pink-700);
    font-size: 1rem;
}

.envelope.opened .envelope-letter-peek {
    transform: translateY(-60px);
}

.envelope-shadow {
    position: absolute;
    bottom: -15px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.3), transparent);
    z-index: 0;
    animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% { transform: scaleX(1); opacity: 0.3; }
    50% { transform: scaleX(0.9); opacity: 0.2; }
}

.envelope-label {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    animation: labelPulse 2s ease infinite;
    z-index: 5;
}

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

/* Letter Content */
.letter-content {
    display: none;
    width: 90%;
    max-width: 560px;
    animation: letterSlideUp 1s var(--transition-bounce);
}

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

@keyframes letterSlideUp {
    from { opacity: 0; transform: translateY(80px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.letter-paper {
    background: linear-gradient(145deg, #fffbf5, #fff5f9, #fff9f0);
    border-radius: 16px;
    padding: 45px 38px;
    color: #4a2040;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 0 50px rgba(244, 143, 177, 0.05);
    position: relative;
    overflow: hidden;
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--pink-300), var(--rose), var(--pink-400), var(--gold), var(--pink-300));
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

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

.letter-paper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(255, 245, 249, 0.8));
    pointer-events: none;
}

.letter-wax-seal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.letter-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.4rem;
    color: var(--pink-600);
    margin-bottom: 28px;
}

.letter-line {
    font-size: 1rem;
    line-height: 2;
    opacity: 0;
    color: #5a3050;
    border-left: 2px solid transparent;
    padding-left: 0;
    transition: all 0.6s var(--transition-smooth);
}

.letter-line.typed {
    opacity: 1;
    border-left-color: var(--pink-300);
    padding-left: 12px;
}

.letter-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--pink-600);
    text-align: right;
    margin-top: 25px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.letter-signature.visible {
    opacity: 1;
}

.letter-decoration {
    text-align: center;
    color: var(--pink-300);
    letter-spacing: 8px;
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.letter-decoration.visible {
    opacity: 1;
}

/* ============ SECTION 4: LOVE CARDS ============ */
#reasons-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0d0614 50%, var(--dark-bg) 100%);
    padding: 60px 20px;
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    background: linear-gradient(135deg, var(--pink-200), var(--rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 750px;
    width: 92%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.love-card {
    padding: 28px 20px;
    text-align: center;
    cursor: default;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--transition-smooth);
    transition-delay: var(--card-delay);
}

.love-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.love-card:hover {
    background: var(--glass-hover);
    border-color: rgba(236, 64, 122, 0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(236, 64, 122, 0.15);
}

.love-card .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(236, 64, 122, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.card-number {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

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

.card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 300;
}

.love-card:hover .card-text {
    color: var(--text-primary);
}

.wide-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(236, 64, 122, 0.08), rgba(255, 107, 157, 0.05));
    border-color: rgba(236, 64, 122, 0.15);
}

.wide-card .card-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: var(--pink-200);
}

/* ============ SECTION 5: FORGIVE ME ============ */
#forgive-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0f0920 50%, var(--dark-bg) 100%);
}

.forgive-bg-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--pink-400);
    top: 10%;
    left: 10%;
    animation: orbFloat 10s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--rose);
    bottom: 20%;
    right: 15%;
    animation: orbFloat 8s ease-in-out infinite 2s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--gold);
    top: 50%;
    left: 60%;
    animation: orbFloat 12s ease-in-out infinite 4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.forgive-container {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Cute Cat Face (CSS-drawn) */
.cat-animation {
    margin-bottom: 20px;
    animation: catBounce 2s ease-in-out infinite;
}

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

.cat-face {
    width: 100px;
    height: 85px;
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.3);
}

.cat-ears {
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
}

.cat-ear {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 24px solid #ffb6c1;
}

.cat-ear.left {
    left: 8px;
    transform: rotate(-8deg);
}

.cat-ear.right {
    right: 8px;
    transform: rotate(8deg);
}

.cat-ear::after {
    content: '';
    position: absolute;
    top: 8px;
    left: -8px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 16px solid #ff99aa;
}

.cat-eyes {
    display: flex;
    justify-content: center;
    gap: 22px;
    padding-top: 28px;
}

.cat-eye {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.cat-pupil {
    width: 14px;
    height: 14px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 4px;
    animation: sadEyes 3s ease-in-out infinite;
}

.cat-pupil::after {
    content: '';
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
}

@keyframes sadEyes {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(2px) translateX(-1px); }
    60% { transform: translateY(2px) translateX(1px); }
    90%, 95% { transform: scaleY(0.1); }
}

.cat-nose {
    width: 8px;
    height: 6px;
    background: #ff8a9e;
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
    margin: 6px auto 0;
}

.cat-mouth {
    width: 20px;
    height: 8px;
    margin: 0 auto;
    position: relative;
}

.cat-mouth::before,
.cat-mouth::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10px;
    height: 8px;
    border-bottom: 2px solid #ff8a9e;
    border-radius: 0 0 50% 50%;
}

.cat-mouth::before { left: 0; }
.cat-mouth::after { right: 0; }

.cat-whiskers {
    position: absolute;
    top: 50px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-whiskers.left {
    left: -25px;
}

.cat-whiskers.right {
    right: -25px;
}

.whisker {
    width: 28px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
}

.cat-whiskers.left .whisker:nth-child(1) { transform: rotate(-10deg); }
.cat-whiskers.left .whisker:nth-child(3) { transform: rotate(10deg); }
.cat-whiskers.right .whisker:nth-child(1) { transform: rotate(10deg); }
.cat-whiskers.right .whisker:nth-child(3) { transform: rotate(-10deg); }

/* Personal Plea */
.personal-plea {
    max-width: 520px;
    margin: 0 auto 35px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 182, 193, 0.15);
    border-radius: 20px;
    padding: 28px 30px;
    position: relative;
    overflow: hidden;
}

.personal-plea::before {
    content: '🐾';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.3;
}

.plea-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    text-align: center;
}

.plea-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--pink-200);
    text-align: right;
    margin-top: 15px;
    filter: drop-shadow(0 0 8px rgba(244, 143, 177, 0.4));
}

.forgive-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    background: linear-gradient(135deg, var(--pink-200), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.buttons-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 80px;
}

.btn-yes {
    position: relative;
    z-index: 10;
}

.btn-yes-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--pink-300), var(--rose), var(--gold), var(--pink-400));
    background-size: 300% 300%;
    animation: glowRotate 4s ease infinite;
    border-radius: 52px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
}

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

.btn-no {
    padding: 16px 40px;
    font-size: 1.05rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.12s ease;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.hint-text {
    margin-top: 25px;
    color: #ffffff;
    font-size: 1.05rem;
    min-height: 25px;
    font-style: italic;
    transition: all 0.3s ease;
    opacity: 1;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(236, 64, 122, 0.3);
}

.no-counter {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============ SECTION 6: FINALE ============ */
.finale-hidden {
    display: none !important;
}

#finale-section {
    background: radial-gradient(ellipse at 50% 30%, #1a0825 0%, var(--dark-bg) 70%);
}

#finale-section.finale-visible {
    display: flex !important;
}

#confettiCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.finale-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

/* Enhanced Flower */
.flower-scene {
    position: relative;
    width: 200px;
    height: 340px;
    margin: 0 auto 20px;
}

.flower-pot {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.pot-rim {
    width: 80px;
    height: 12px;
    background: linear-gradient(135deg, #b8860b, #daa520);
    border-radius: 4px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.pot-body {
    width: 70px;
    height: 55px;
    background: linear-gradient(135deg, #a0522d, #cd853f);
    clip-path: polygon(5% 0, 95% 0, 85% 100%, 15% 100%);
    margin: -2px auto 0;
    position: relative;
    z-index: 1;
    box-shadow: inset -5px 0 10px rgba(0,0,0,0.2);
}

.pot-soil {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 12px;
    background: #3e2723;
    border-radius: 0 0 50% 50%;
    z-index: 3;
}

.flower-stem {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 0;
    background: linear-gradient(to top, #388e3c, #66bb6a);
    border-radius: 3px;
    z-index: 1;
    transition: height 1.2s var(--transition-smooth);
}

.flower-stem.grown {
    height: 170px;
}

.flower-head {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 120px;
    height: 120px;
    transition: transform 0.8s var(--transition-bounce) 1s;
}

.flower-head.bloomed {
    transform: translateX(-50%) scale(1);
}

.petal {
    position: absolute;
    width: 38px;
    height: 55px;
    top: 50%;
    left: 50%;
    transform-origin: center bottom;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    transition: all 0.5s var(--transition-bounce);
}

.flower-head.bloomed .petal {
    opacity: 1;
}

.p1 { background: linear-gradient(135deg, #f48fb1, #f06292); transform: translate(-50%, -100%) rotate(0deg) translateY(-22px); transition-delay: 1.1s; }
.p2 { background: linear-gradient(135deg, #f06292, #ec407a); transform: translate(-50%, -100%) rotate(36deg) translateY(-22px); transition-delay: 1.2s; }
.p3 { background: linear-gradient(135deg, #ec407a, #e91e63); transform: translate(-50%, -100%) rotate(72deg) translateY(-22px); transition-delay: 1.3s; }
.p4 { background: linear-gradient(135deg, #f48fb1, #f06292); transform: translate(-50%, -100%) rotate(108deg) translateY(-22px); transition-delay: 1.4s; }
.p5 { background: linear-gradient(135deg, #f06292, #ec407a); transform: translate(-50%, -100%) rotate(144deg) translateY(-22px); transition-delay: 1.5s; }
.p6 { background: linear-gradient(135deg, #ec407a, #e91e63); transform: translate(-50%, -100%) rotate(180deg) translateY(-22px); transition-delay: 1.6s; }
.p7 { background: linear-gradient(135deg, #f48fb1, #f06292); transform: translate(-50%, -100%) rotate(216deg) translateY(-22px); transition-delay: 1.7s; }
.p8 { background: linear-gradient(135deg, #f06292, #ec407a); transform: translate(-50%, -100%) rotate(252deg) translateY(-22px); transition-delay: 1.8s; }
.p9 { background: linear-gradient(135deg, #ec407a, #e91e63); transform: translate(-50%, -100%) rotate(288deg) translateY(-22px); transition-delay: 1.9s; }
.p10 { background: linear-gradient(135deg, #f48fb1, #f06292); transform: translate(-50%, -100%) rotate(324deg) translateY(-22px); transition-delay: 2.0s; }

.petal {
    filter: drop-shadow(0 0 8px rgba(236, 64, 122, 0.3));
}

.flower-center-outer {
    position: absolute;
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, var(--gold-light), var(--gold));
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 2;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: transform 0.5s var(--transition-bounce) 2.1s;
}

.flower-head.bloomed .flower-center-outer {
    transform: translate(-50%, -50%) scale(1);
}

.flower-center-inner {
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #ff8f00, #f57f17);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 3;
    transition: transform 0.4s var(--transition-bounce) 2.3s;
}

.flower-head.bloomed .flower-center-inner {
    transform: translate(-50%, -50%) scale(1);
}

/* Leaves */
.leaf {
    position: absolute;
    width: 35px;
    height: 18px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border-radius: 50% 0;
    z-index: 1;
    opacity: 0;
    transition: all 0.6s var(--transition-bounce);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.leaf-left {
    bottom: 160px;
    left: 50%;
    transform: translateX(-60px) rotate(-30deg) scale(0);
    transition-delay: 0.8s;
}

.leaf-right {
    bottom: 190px;
    left: 50%;
    transform: translateX(10px) rotate(30deg) scale(0);
    border-radius: 0 50%;
    transition-delay: 0.9s;
}

.leaf.grown {
    opacity: 1;
}

.leaf-left.grown {
    transform: translateX(-60px) rotate(-30deg) scale(1);
}

.leaf-right.grown {
    transform: translateX(10px) rotate(30deg) scale(1);
}

/* Finale Text */
.finale-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 9vw, 4.5rem);
    background: linear-gradient(135deg, var(--pink-200), var(--gold), var(--rose), var(--pink-200));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s var(--transition-smooth);
    margin-bottom: 12px;
}

.finale-title.show {
    opacity: 1;
    transform: translateY(0);
}

.finale-message {
    font-size: 1.15rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s var(--transition-smooth) 0.3s;
    margin-bottom: 8px;
}

.finale-message.show {
    opacity: 1;
    transform: translateY(0);
}

.finale-promise {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--pink-200);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s var(--transition-smooth) 0.6s;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.finale-promise.show {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Hearts */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.floating-heart {
    position: absolute;
    animation: floatUp var(--duration) ease forwards;
    opacity: 0;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    50% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-100vh) rotate(var(--rotation)) scale(0.2); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .love-card {
        padding: 22px 16px;
    }

    .buttons-container {
        flex-direction: column;
        gap: 18px;
    }

    .glass-btn-solid {
        padding: 16px 40px;
        font-size: 1rem;
    }

    .btn-no {
        padding: 14px 35px;
        font-size: 1rem;
    }

    .letter-paper {
        padding: 35px 24px;
    }

    .envelope {
        width: 250px;
        height: 170px;
    }

    .music-toggle {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .flower-scene {
        transform: scale(0.85);
    }
}
