/* ============================================================
   Valentine's Day Website for Kajol — Styles
   ============================================================ */

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

:root {
    --deep-red: #8B0000;
    --soft-pink: #FF6B8A;
    --rose-gold: #B76E79;
    --white: #fff;
    --dark-bg: #1a0a0a;
    --dark-card: #2a1015;
    --text-light: #f5e6e8;
    --text-muted: #c4a0a5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Section Titles ---------- */
.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--soft-pink);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* ============================================================
   SECTION 1 — Valentine Question (Landing)
   ============================================================ */
.valentine-question {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #2a0a10 0%, #0d0204 70%);
    transition: opacity .8s ease, visibility .8s ease;
}

.valentine-question.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#heart-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.question-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 600px;
}

/* Typewriter */
.typewriter-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--soft-pink);
    margin: 0 auto;
    display: inline-block;
}

.typewriter-text.greeting {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--rose-gold);
    margin-bottom: 0.5rem;
}

.typewriter-text.question {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--soft-pink);
    margin-top: 10px;
}

.typewriter-text.done {
    border-right-color: transparent;
}

/* Buttons */
.buttons-container {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    min-height: 80px;
}

.btn-yes {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 16px 50px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--soft-pink), var(--deep-red));
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 107, 138, .5), 0 0 60px rgba(255, 107, 138, .2);
    animation: pulse-glow 2s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-yes:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(255, 107, 138, .7), 0 0 80px rgba(255, 107, 138, .3);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 107, 138, .5), 0 0 60px rgba(255, 107, 138, .2); }
    50%      { box-shadow: 0 0 50px rgba(255, 107, 138, .8), 0 0 100px rgba(255, 107, 138, .4); }
}

.btn-no {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 28px;
    border: 2px solid var(--rose-gold);
    border-radius: 50px;
    background: transparent;
    color: var(--rose-gold);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.no-btn-shake {
    animation: btn-shake 0.2s ease-in-out;
}

@keyframes btn-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px) rotate(-3deg); }
    40% { transform: translateX(6px) rotate(3deg); }
    60% { transform: translateX(-4px) rotate(-2deg); }
    80% { transform: translateX(4px) rotate(2deg); }
}

/* Toast messages */
.toast-message {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 107, 138, .9);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 10001;
    pointer-events: none;
    white-space: nowrap;
}

.toast-message.show {
    opacity: 1;
}

/* Confetti canvas */
#confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 10002;
    pointer-events: none;
}

/* ============================================================
   SECTION 2 — Hero
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: var(--dark-bg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.jpg') center top/cover no-repeat;
    z-index: 0;
    animation: hero-ken-burns 25s ease-out forwards;
}

@keyframes hero-ken-burns {
    0%   { transform: scale(1.12); }
    100% { transform: scale(1.02); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26,10,10,.15) 0%, rgba(26,10,10,.3) 40%, rgba(26,10,10,.85) 70%, rgba(26,10,10,.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    padding-bottom: 100px;
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--white);
    text-shadow: 0 0 40px rgba(255, 107, 138, .4);
    margin-bottom: 1rem;
    animation: fadeInDown 1.5s ease-out .5s both;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 1.3s ease-out 1.8s both;
}

/* Heart divider */
.heart-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    animation: fadeInUp 1.2s ease-out 2.3s both;
}

.heart-divider span {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--rose-gold);
}

.heart-icon {
    width: 24px;
    height: 24px;
    fill: var(--soft-pink);
    animation: heartbeat 1.4s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out 3s both;
}

.scroll-indicator span {
    display: block;
    font-size: .8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border-right: 2px solid var(--rose-gold);
    border-bottom: 2px solid var(--rose-gold);
    transform: rotate(45deg);
    animation: bounce-down 2s infinite;
}

/* Floating hearts background */
.floating-hearts-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

/* ============================================================
   SECTION 3 — Love Letter
   ============================================================ */
.love-letter {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1f0c0f 100%);
}

.envelope-wrapper {
    max-width: 700px;
    margin: 0 auto;
    perspective: 1000px;
}

.envelope {
    position: relative;
    background: linear-gradient(135deg, #2a1418, #3a1a20);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(183, 110, 121, .3);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    overflow: hidden;
}

.envelope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--deep-red), var(--soft-pink), var(--rose-gold));
}

.envelope-flap {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 60px;
    background: linear-gradient(180deg, #3a1a20, transparent);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    opacity: 0;
    transition: opacity .6s ease;
}

.envelope-wrapper.opened .envelope-flap {
    opacity: 1;
}

.letter-heading {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--soft-pink);
    margin-bottom: 1.5rem;
}

.letter-body p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity .6s ease, transform .6s ease;
}

.envelope-wrapper.opened .letter-body p {
    opacity: 1;
    transform: translateY(0);
}

.envelope-wrapper.opened .letter-body p:nth-child(1) { transition-delay: .2s; }
.envelope-wrapper.opened .letter-body p:nth-child(2) { transition-delay: .4s; }
.envelope-wrapper.opened .letter-body p:nth-child(3) { transition-delay: .6s; }
.envelope-wrapper.opened .letter-body p:nth-child(4) { transition-delay: .8s; }
.envelope-wrapper.opened .letter-body p:nth-child(5) { transition-delay: 1s; }
.envelope-wrapper.opened .letter-body p:nth-child(6) { transition-delay: 1.2s; }
.envelope-wrapper.opened .letter-body p:nth-child(7) { transition-delay: 1.4s; }
.envelope-wrapper.opened .letter-body p:nth-child(8) { transition-delay: 1.6s; }

.letter-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: var(--rose-gold);
    margin-top: 1.5rem;
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--soft-pink);
}

/* ============================================================
   SECTION 4 — Timeline
   ============================================================ */
.timeline-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--rose-gold), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    width: 100%;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item[data-side="left"] {
    justify-content: flex-start;
    padding-right: calc(50% + 30px);
}

.timeline-item[data-side="right"] {
    justify-content: flex-end;
    padding-left: calc(50% + 30px);
}

/* Dot on the line */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 30px;
    width: 14px;
    height: 14px;
    background: var(--soft-pink);
    border: 3px solid var(--dark-bg);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 107, 138, .5);
}

.timeline-content {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(183, 110, 121, .2);
    transition: transform .3s ease, box-shadow .3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.timeline-year {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: var(--soft-pink);
    font-weight: 700;
    margin-bottom: 12px;
}

.timeline-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Mobile timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item[data-side="left"],
    .timeline-item[data-side="right"] {
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-item::after {
        left: 20px;
    }
}

/* ============================================================
   SECTION 5 — Photo Gallery
   ============================================================ */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1f0c0f 100%);
}

.gallery-grid {
    columns: 4 250px;
    column-gap: 16px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform .3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(139, 0, 0, .3), transparent);
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 2.5rem;
    padding: 10px;
    opacity: .7;
    transition: opacity .2s ease;
    z-index: 3;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-close {
    top: 20px;
    right: 25px;
    font-size: 3rem;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
}

/* Mobile gallery */
@media (max-width: 600px) {
    .gallery-grid {
        columns: 2;
        column-gap: 10px;
    }

    .gallery-item {
        margin-bottom: 10px;
    }
}

/* ============================================================
   SECTION 6 — Reasons I Love You
   ============================================================ */
.reasons-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.reason-card {
    background: var(--dark-card);
    border-radius: 14px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid rgba(183, 110, 121, .15);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 0, 0, .3);
    border-color: rgba(255, 107, 138, .3);
}

.reason-heart {
    font-size: 2rem;
    color: var(--soft-pink);
    margin-bottom: 15px;
    animation: heartbeat 2s ease-in-out infinite;
}

.reason-card p {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* ============================================================
   SECTION 7 — Footer
   ============================================================ */
.footer {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0d0204 100%);
    border-top: 1px solid rgba(183, 110, 121, .15);
}

.beating-heart svg {
    width: 50px;
    height: 50px;
    fill: var(--soft-pink);
    animation: heartbeat 1.2s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--white);
    margin-bottom: .5rem;
}

.footer-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--soft-pink);
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.footer-date {
    font-size: .8rem;
    color: rgba(183, 110, 121, .5);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes heartbeat {
    0%   { transform: scale(1); }
    15%  { transform: scale(1.15); }
    30%  { transform: scale(1); }
    45%  { transform: scale(1.1); }
    60%  { transform: scale(1); }
}

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

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

@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40%  { transform: rotate(45deg) translateY(8px); }
    60%  { transform: rotate(45deg) translateY(4px); }
}

@keyframes float-heart {
    0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg) scale(0); opacity: 0; }
}

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}

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

/* Stagger children animations */
.reasons-grid .reveal-on-scroll:nth-child(1)  { transition-delay: .05s; }
.reasons-grid .reveal-on-scroll:nth-child(2)  { transition-delay: .10s; }
.reasons-grid .reveal-on-scroll:nth-child(3)  { transition-delay: .15s; }
.reasons-grid .reveal-on-scroll:nth-child(4)  { transition-delay: .20s; }
.reasons-grid .reveal-on-scroll:nth-child(5)  { transition-delay: .25s; }
.reasons-grid .reveal-on-scroll:nth-child(6)  { transition-delay: .30s; }
.reasons-grid .reveal-on-scroll:nth-child(7)  { transition-delay: .35s; }
.reasons-grid .reveal-on-scroll:nth-child(8)  { transition-delay: .40s; }
.reasons-grid .reveal-on-scroll:nth-child(9)  { transition-delay: .45s; }
.reasons-grid .reveal-on-scroll:nth-child(10) { transition-delay: .50s; }
.reasons-grid .reveal-on-scroll:nth-child(11) { transition-delay: .55s; }
.reasons-grid .reveal-on-scroll:nth-child(12) { transition-delay: .60s; }

/* Main content fade in */
.main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

.main-content.visible {
    opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    .btn-yes {
        font-size: 1.2rem;
        padding: 14px 40px;
    }

    .btn-no {
        font-size: .85rem;
        padding: 8px 20px;
    }

    .envelope {
        padding: 25px 20px;
    }

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

/* ============================================================
   DAYS COUNTER
   ============================================================ */
.days-counter {
    margin: 1.2rem 0;
    animation: fadeInUp 1.2s ease-out 1.2s both;
}

.days-number {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
    color: var(--soft-pink);
    text-shadow: 0 0 30px rgba(255, 107, 138, .4);
    display: block;
    line-height: 1.2;
}

.days-label {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(.85rem, 2vw, 1.1rem);
    color: var(--rose-gold);
    letter-spacing: 2px;
    text-transform: lowercase;
}

/* ============================================================
   MUSIC TOGGLE BUTTON
   ============================================================ */
.music-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9998;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--rose-gold);
    background: rgba(26, 10, 10, .8);
    backdrop-filter: blur(10px);
    color: var(--soft-pink);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.music-toggle:hover {
    background: rgba(255, 107, 138, .2);
    transform: scale(1.1);
}

.music-toggle.playing .music-icon {
    animation: music-bounce .6s ease infinite alternate;
}

@keyframes music-bounce {
    from { transform: scale(1) rotate(-5deg); }
    to   { transform: scale(1.2) rotate(5deg); }
}

/* ============================================================
   CLICK HEARTS (burst on click anywhere)
   ============================================================ */
.click-heart {
    position: absolute;
    pointer-events: none;
    z-index: 9990;
    animation: click-heart-burst 1s ease-out forwards;
}

@keyframes click-heart-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.2);
    }
    40% {
        opacity: 1;
        transform: translate(var(--tx), var(--ty)) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), calc(var(--ty) - 40px)) scale(0.5);
    }
}

/* ============================================================
   ROSE PETALS (JS-created, continuously falling)
   ============================================================ */
.rose-petals-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9989;
    overflow: hidden;
}

.rose-petal {
    position: absolute;
    top: -30px;
    pointer-events: none;
    animation: rose-petal-fall linear forwards;
    filter: drop-shadow(0 0 4px rgba(255,107,138,.3));
}

@keyframes rose-petal-fall {
    0% {
        top: -5%;
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(90deg) translateX(var(--sway));
    }
    50% {
        transform: rotate(180deg) translateX(calc(var(--sway) * -0.7));
    }
    75% {
        transform: rotate(270deg) translateX(var(--sway));
    }
    100% {
        top: 105vh;
        transform: rotate(360deg) translateX(0);
        opacity: 0;
    }
}

/* ============================================================
   ROMANTIC TRANSITION OVERLAY (Landing → Main Content)
   ============================================================ */
.romantic-transition {
    position: fixed;
    inset: 0;
    z-index: 10003;
    background: radial-gradient(ellipse at center, #2a0a10 0%, #0d0204 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    pointer-events: none;
}

.romantic-transition.visible {
    opacity: 1;
    visibility: visible;
}

.romantic-transition.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.8s ease, visibility 1.8s ease;
}

.transition-text {
    text-align: center;
    opacity: 0;
    animation: transition-reveal 1s ease-out 0.3s forwards;
}

@keyframes transition-reveal {
    0%   { opacity: 0; transform: translateY(25px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.transition-heart {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: heartbeat 1.4s ease-in-out infinite;
}

.transition-message {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--soft-pink);
    text-shadow: 0 0 40px rgba(255, 107, 138, .3);
}

/* Tiny floating sparkles inside the transition */
.transition-sparkle {
    position: absolute;
    font-size: 10px;
    color: rgba(255, 107, 138, .4);
    pointer-events: none;
    animation: sparkle-float 3s ease-in-out infinite;
}

@keyframes sparkle-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50%      { transform: translateY(-30px) scale(1.5); opacity: 0.7; }
}
