/* ===== CSS VARIABLES ===== */
:root {
    --bg: #0f0f12;
    --bg-secondary: #1a1a21;
    --card-bg: rgba(255, 255, 255, 0.04);
    --accent: #ff5b78;
    --accent-light: #ff8aa3;
    --accent-glow: rgba(255, 91, 120, 0.3);
    --purple: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.3);
    --gold: #d4af37;
    --muted: #9ca3af;
    --text-light: #e5e7eb;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #1a0a14 0%, #2d1a24 30%, #3d1a2a 60%, #1a0a14 100%);
    color: var(--text-light);
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== SCREEN SYSTEM ===== */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* ===== BACKGROUND EFFECTS ===== */
#particles-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(1);
    }
}

#floating-hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-heart {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0;
    animation: heartFloat 12s infinite ease-in;
}

@keyframes heartFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    5% {
        opacity: 0.7;
    }

    50% {
        transform: translateY(50vh) translateX(80px) rotate(180deg) scale(1);
        opacity: 0.5;
    }

    95% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-10vh) translateX(-40px) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

#stars-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) infinite ease-in-out;
    animation-delay: var(--delay, 0s);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ===== OPENING SCREEN ===== */
#opening-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: linear-gradient(135deg, #1a0a14, #2d1a24, #1a0a14);
}

#opening-screen.active {
    display: flex;
}

.opening-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 15s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 91, 120, 0.15);
    top: 10%;
    left: 10%;
    animation-duration: 20s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.12);
    bottom: 10%;
    right: 10%;
    animation-duration: 25s;
    animation-delay: -5s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(212, 175, 55, 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 18s;
    animation-delay: -10s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(40px, -30px) scale(1.2);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.8);
    }

    75% {
        transform: translate(50px, 20px) scale(1.1);
    }
}

.opening-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

/* Envelope */
.envelope {
    width: 120px;
    height: 90px;
    margin: 0 auto 2rem;
    position: relative;
    cursor: pointer;
    animation: envelopeBounce 3s ease-in-out infinite;
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff5b78, #ff8aa3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(255, 91, 120, 0.3);
    position: relative;
    z-index: 1;
}

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

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

.letter-peek {
    font-size: 2rem;
    animation: letterPeek 2s ease-in-out infinite;
}

@keyframes letterPeek {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes envelopeBounce {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.opening-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(120deg, var(--text-light), var(--accent-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.opening-sub {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

/* Magic Button */
.btn-magic {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(255, 91, 120, 0.3), 0 0 60px rgba(139, 92, 246, 0.15);
    animation: btnPulse 2.5s ease-in-out infinite;
}

.btn-magic:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 50px rgba(255, 91, 120, 0.4), 0 0 80px rgba(139, 92, 246, 0.2);
}

.btn-magic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 10px 40px rgba(255, 91, 120, 0.3), 0 0 60px rgba(139, 92, 246, 0.15);
    }

    50% {
        box-shadow: 0 10px 50px rgba(255, 91, 120, 0.5), 0 0 80px rgba(139, 92, 246, 0.25);
    }
}

.btn-sparkle {
    display: inline-block;
    animation: sparkleRotate 2s linear infinite;
}

@keyframes sparkleRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ===== GLOBAL ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(120deg, var(--text-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
}

/* ===== HERO SECTION ===== */
.ty-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.ty-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 40%, rgba(255, 91, 120, 0.15), transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(139, 92, 246, 0.1), transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(212, 175, 55, 0.08), transparent 40%);
    animation: heroBgPulse 12s ease-in-out infinite;
}

@keyframes heroBgPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

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

/* Heart Burst */
.ty-heart-burst {
    margin-bottom: 2rem;
}

.ty-heart-burst span {
    display: inline-block;
    font-size: 2rem;
    margin: 0 0.3rem;
    animation: heartBurst 2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.15s);
}

.ty-heart-burst span:nth-child(1) {
    --i: 0;
}

.ty-heart-burst span:nth-child(2) {
    --i: 1;
}

.ty-heart-burst span:nth-child(3) {
    --i: 2;
}

.ty-heart-burst span:nth-child(4) {
    --i: 3;
}

.ty-heart-burst span:nth-child(5) {
    --i: 4;
}

.ty-heart-burst span:nth-child(6) {
    --i: 5;
}

@keyframes heartBurst {

    0%,
    100% {
        transform: scale(1) translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.3) translateY(-10px);
        opacity: 1;
    }
}

/* Title Words */
.ty-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ty-word {
    display: inline-block;
    background: linear-gradient(135deg, #fff, var(--accent-light), var(--purple), var(--gold));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wordReveal 1s ease-out both, gradientFlow 6s ease infinite;
    animation-delay: calc(var(--i) * 0.12s);
    margin: 0 0.15em;
}

@keyframes wordReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(40deg);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0);
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.ty-subtitle {
    font-size: 1.3rem;
    color: var(--accent-light);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.ty-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

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

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* ===== GRATITUDE LETTER ===== */
.gratitude-intro {
    padding: 4rem 0;
    position: relative;
}

.gratitude-letter {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 91, 120, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(255, 91, 120, 0.1);
    position: relative;
    overflow: hidden;
}

.gratitude-letter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--purple), var(--gold));
}

.letter-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: letterPeek 2s ease-in-out infinite;
}

.gratitude-letter h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

.letter-body {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.letter-body strong {
    color: var(--accent);
    font-weight: 600;
}

.letter-signature {
    font-family: 'Great Vibes', cursive;
    font-size: 1.4rem;
    color: var(--accent-light);
    margin-top: 2rem;
}

/* ===== GRATEFUL SECTION ===== */
.grateful-section {
    padding: 5rem 0;
    position: relative;
}

.grateful-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grateful-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.grateful-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 91, 120, 0.3), rgba(139, 92, 246, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.grateful-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 91, 120, 0.1), 0 0 30px rgba(139, 92, 246, 0.05);
}

.grateful-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

.grateful-card:nth-child(even) .grateful-icon {
    animation-delay: -1.5s;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.grateful-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

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

/* ===== BEFORE & AFTER SECTION ===== */
.before-after-section {
    padding: 5rem 0;
    position: relative;
}

.comparison-container {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card {
    flex: 1;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.before-card {
    background: linear-gradient(135deg, rgba(100, 100, 120, 0.15), rgba(60, 60, 80, 0.1));
    border: 1px solid rgba(150, 150, 170, 0.1);
}

.after-card {
    background: linear-gradient(135deg, rgba(255, 91, 120, 0.1), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(255, 91, 120, 0.15);
    box-shadow: 0 10px 40px rgba(255, 91, 120, 0.05);
}

.comparison-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.before-card .comparison-label {
    color: var(--muted);
}

.after-card .comparison-label {
    background: linear-gradient(120deg, var(--accent-light), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 0.6rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    animation: listFadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--li-index, 0) * 0.15s);
}

.before-card .comparison-list li::before {
    content: '🌧️';
    font-size: 1rem;
}

.after-card .comparison-list li::before {
    content: '✨';
    font-size: 1rem;
}

.before-card .comparison-list li {
    color: rgba(156, 163, 175, 0.8);
}

.after-card .comparison-list li {
    color: var(--text-light);
}

@keyframes listFadeIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.comparison-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 40px;
}

.divider-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

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

/* ===== PROMISES SECTION ===== */
.promises-section {
    padding: 5rem 0;
    position: relative;
}

.promises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.promise-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.promise-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 91, 120, 0.2);
    box-shadow: 0 15px 40px rgba(255, 91, 120, 0.08);
}

.promise-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

.promise-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 91, 120, 0.3), rgba(139, 92, 246, 0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}

.promise-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
}

/* ===== FLOATING MESSAGES SECTION ===== */
.floating-messages-section {
    padding: 5rem 0;
    position: relative;
}

.messages-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.floating-msg {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: msgFloat 4s ease-in-out infinite;
    cursor: default;
    transition: var(--transition);
    white-space: nowrap;
}

.floating-msg:hover {
    transform: scale(1.1) !important;
    z-index: 5;
}

.msg-1 {
    background: linear-gradient(135deg, rgba(255, 91, 120, 0.15), rgba(255, 91, 120, 0.05));
    border: 1px solid rgba(255, 91, 120, 0.2);
    color: var(--accent-light);
    animation-delay: 0s;
}

.msg-2 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    animation-delay: 0.3s;
}

.msg-3 {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold);
    animation-delay: 0.6s;
}

.msg-4 {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.05));
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
    animation-delay: 0.9s;
}

.msg-5 {
    background: linear-gradient(135deg, rgba(255, 91, 120, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(255, 91, 120, 0.15);
    color: var(--accent-light);
    animation-delay: 1.2s;
}

.msg-6 {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(96, 165, 250, 0.05));
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #93c5fd;
    animation-delay: 0.4s;
}

.msg-7 {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.15), rgba(244, 114, 182, 0.05));
    border: 1px solid rgba(244, 114, 182, 0.2);
    color: #f9a8d4;
    animation-delay: 0.7s;
}

.msg-8 {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 91, 120, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--gold);
    animation-delay: 1s;
}

.msg-9 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(52, 211, 153, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    animation-delay: 0.5s;
}

@keyframes msgFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

/* ===== FINAL SECTION ===== */
.final-section {
    padding: 6rem 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.final-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 91, 120, 0.2), transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.1), transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.08), transparent 40%);
    animation: finalGlow 8s ease-in-out infinite;
}

@keyframes finalGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

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

.final-emoji {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: inline-block;
    animation: finalEmoji 3s ease-in-out infinite;
}

@keyframes finalEmoji {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(-5deg);
    }

    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

.final-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    background: linear-gradient(135deg, #fff, var(--accent-light), var(--purple), var(--gold));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s ease infinite;
    margin-bottom: 2rem;
}

.final-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-light);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.final-text strong {
    color: var(--accent);
    font-weight: 600;
}

.final-hearts {
    margin: 2rem 0;
}

.final-hearts span {
    display: inline-block;
    font-size: 2rem;
    margin: 0 0.3rem;
    animation: heartBurst 2s ease-in-out infinite;
}

.final-hearts span:nth-child(1) {
    animation-delay: 0s;
}

.final-hearts span:nth-child(2) {
    animation-delay: 0.2s;
}

.final-hearts span:nth-child(3) {
    animation-delay: 0.4s;
}

.final-hearts span:nth-child(4) {
    animation-delay: 0.6s;
}

.final-hearts span:nth-child(5) {
    animation-delay: 0.8s;
}

.final-name {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.final-promise {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.final-btn {
    animation: btnPulse 2.5s ease-in-out infinite;
}

/* ===== FOOTER ===== */
.ty-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.heart-pulse {
    display: inline-block;
    animation: heartPulse 1.5s ease-in-out infinite;
}

.footer-sub {
    color: var(--accent-light);
    opacity: 0.6;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(255, 91, 120, 0.05);
}

/* ===== LOVE EXPLOSION OVERLAY ===== */
.love-explosion {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explosion-heart {
    position: absolute;
    font-size: 2rem;
    animation: explode 2s ease-out forwards;
}

@keyframes explode {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0) rotate(720deg);
    }
}

.explosion-text {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    background: linear-gradient(135deg, #fff, var(--accent-light), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: explosionTextIn 0.8s ease-out 0.3s both;
    text-align: center;
    text-shadow: none;
}

@keyframes explosionTextIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* ===== SCREEN TRANSITION ===== */
.screen-exit {
    animation: screenFadeOut 0.8s ease-in forwards;
}

@keyframes screenFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(10px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .comparison-container {
        flex-direction: column;
    }

    .comparison-divider {
        flex-direction: row;
        min-width: auto;
        min-height: 40px;
    }

    .divider-line {
        width: auto;
        height: 2px;
        flex: 1;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }

    .grateful-grid,
    .promises-grid {
        grid-template-columns: 1fr;
    }

    .messages-cloud {
        padding: 1rem;
    }

    .floating-msg {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .opening-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    .envelope {
        width: 90px;
        height: 68px;
    }

    .gratitude-letter {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .ty-title {
        font-size: clamp(2.2rem, 12vw, 4rem);
    }

    .btn-magic {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }

    .grateful-card {
        padding: 1.5rem;
    }

    .promise-card {
        padding: 1.5rem;
    }
}

/* ===== SCROLL REVEAL (JS toggles .visible) ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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