/* ============================================
   1st Year Anniversary Website
   A romantic, mobile-first experience
   ============================================ */

/* ============================================
   CSS VARIABLES - Romantic Color Palette
   ============================================ */
:root {
    /* Colors */
    --bg-dark: #0d0208;
    --bg-gradient-1: #1a0a14;
    --bg-gradient-2: #2d1320;
    --accent-pink: #ff6b9d;
    --accent-rose: #e84393;
    --accent-purple: #6c5ce7;
    --accent-magenta: #c44569;
    --text-light: #fff5f8;
    --text-muted: #d4a5b9;
    --text-warm: #ffb8d0;
    --gold: #ffd700;
    --heart-red: #ff4757;

    /* Typography */
    --font-display: 'Dancing Script', cursive;
    --font-body: 'Quicksand', sans-serif;

    /* Spacing */
    --section-padding: clamp(3rem, 10vw, 6rem);

    /* Transitions */
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-pink);
    border-radius: 4px;
}

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

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: floatHeart linear infinite;
    user-select: none;
}

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

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

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

/* ============================================
   MUSIC TOGGLE BUTTON
   ============================================ */
.music-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent-pink);
    background: rgba(26, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    opacity: 0.7;
}

.music-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-pink);
}

.music-btn.playing {
    animation: pulse 1s ease-in-out infinite;
}

/* ============================================
   SECTION BASE STYLES
   ============================================ */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--section-padding) 1.5rem;
    position: relative;
    scroll-snap-align: start;
}

/* ============================================
   LANDING SECTION
   ============================================ */
.landing-section {
    background: radial-gradient(ellipse at center, var(--bg-gradient-2) 0%, var(--bg-dark) 70%);
    text-align: center;
}

.landing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 157, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(108, 92, 231, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

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

.landing-text {
    margin-bottom: 3rem;
}

.landing-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-light), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.heart-icon {
    display: block;
    font-size: clamp(3rem, 10vw, 5rem);
    margin: 1rem 0;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

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

    25% {
        transform: scale(1.1);
    }

    45% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.1);
    }
}

.landing-text p {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--text-muted);
    font-weight: 300;
}

.start-btn {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-rose));
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 25px rgba(255, 107, 157, 0.4);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 107, 157, 0.5);
}

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

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

.btn-arrow {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.start-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    animation: fadeInOut 2s ease-in-out infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-pink);
    border-radius: 2px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {

    0%,
    100% {
        opacity: 1;
        top: 8px;
    }

    50% {
        opacity: 0.5;
        top: 18px;
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* ============================================
   CHAPTER SECTIONS
   ============================================ */
.chapter-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-gradient-1) 50%, var(--bg-dark) 100%);
}

.chapter-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.chapter-number {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-pink);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.chapter-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-light), var(--text-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* ============================================
   CHAPTER 1 - THE BEGINNING
   ============================================ */
.photo-frame {
    position: relative;
    max-width: 350px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: rotate(-2deg);
    transition: var(--transition-smooth);
}

.photo-frame:hover {
    transform: rotate(0) scale(1.02);
    box-shadow: 0 25px 70px rgba(255, 107, 157, 0.3);
}

.photo-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 107, 157, 0.3);
    border-radius: 20px;
    pointer-events: none;
    z-index: 2;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--bg-gradient-2), var(--accent-magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Auto-fit: adapts to any photo ratio */
.photo-placeholder.auto-fit {
    aspect-ratio: auto;
    min-height: 250px;
    max-height: 500px;
}

.photo-placeholder.auto-fit img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder.show-placeholder::after {
    content: attr(data-placeholder);
    position: absolute;
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
    padding: 1rem;
}

.emotional-text {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
}

.emotional-text .highlight {
    display: block;
    color: var(--accent-pink);
    font-family: var(--font-display);
    font-size: 1.3em;
    margin-top: 0.5rem;
}

/* ============================================
   CHAPTER 2 - MEMORIES GALLERY
   ============================================ */
.memories-section {
    padding-bottom: calc(var(--section-padding) + 2rem);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.3);
    z-index: 10;
}

.gallery-item .photo-placeholder {
    aspect-ratio: 1;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

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

/* ============================================
   PHOTO MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-image {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-caption {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-warm);
    margin-top: 1.5rem;
    text-align: center;
}

/* ============================================
   CHAPTER 3 - THINGS I LOVE ABOUT YOU
   ============================================ */
.love-section {
    background: radial-gradient(ellipse at center, var(--bg-gradient-2) 0%, var(--bg-dark) 70%);
}

.love-list {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.love-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 107, 157, 0.08);
    border-radius: 15px;
    border-left: 3px solid var(--accent-pink);
    transition: var(--transition-smooth);
}

.love-item:hover {
    background: rgba(255, 107, 157, 0.15);
    transform: translateX(10px);
    border-left-color: var(--gold);
}

.love-icon {
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

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

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.love-text {
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ============================================
   CHAPTER 4 - VIDEO SECTION
   ============================================ */
.video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: var(--bg-gradient-2);
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-gradient-2), var(--accent-magenta));
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, var(--accent-magenta), var(--bg-gradient-2));
}

.video-placeholder.hidden {
    opacity: 0;
    visibility: hidden;
    z-index: -1;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 107, 157, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.5);
    transition: var(--transition-bounce);
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(255, 107, 157, 0.7);
}

.video-placeholder p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.video-container video {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    border-radius: 20px;
}

/* ============================================
   UP MOVIE BALLOON ANIMATION
   ============================================ */
.up-animation {
    margin: 3rem auto 0;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.up-animation.hidden {
    display: none;
}

.up-animation.active {
    display: block;
    animation: upFadeIn 1s ease-out forwards;
}

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

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

.up-sky {
    position: relative;
    width: 100%;
    height: 520px;
    background: linear-gradient(180deg,
            #070215 0%,
            #0f0625 15%,
            #1a0a2e 30%,
            #2d1b69 50%,
            #4a2c8a 68%,
            #6b3fa0 80%,
            #8b5fbf 90%,
            #b07cd8 100%);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 157, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Stars in the sky */
.up-sky::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-image:
        radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 30% 20%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 50% 8%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 70% 15%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 90% 25%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 15% 35%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 85% 5%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 45% 30%, rgba(255, 255, 255, 0.7), transparent);
    pointer-events: none;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Clouds */
.cloud {
    position: absolute;
    font-size: 3rem;
    opacity: 0.12;
    filter: blur(2px);
}

.cloud-1 {
    top: 12%;
    left: -10%;
    font-size: 4.5rem;
    animation: cloudDrift 22s linear infinite;
}

.cloud-2 {
    top: 32%;
    left: -15%;
    font-size: 3rem;
    animation: cloudDrift 30s linear infinite;
    animation-delay: -8s;
}

.cloud-3 {
    top: 52%;
    left: -10%;
    font-size: 3.5rem;
    animation: cloudDrift 26s linear infinite;
    animation-delay: -14s;
}

.cloud-4 {
    top: 22%;
    left: -12%;
    font-size: 2.5rem;
    animation: cloudDrift 35s linear infinite;
    animation-delay: -20s;
}

.cloud-5 {
    top: 42%;
    left: -8%;
    font-size: 3.8rem;
    animation: cloudDrift 28s linear infinite;
    animation-delay: -5s;
}

@keyframes cloudDrift {
    from {
        transform: translateX(-20%);
    }

    to {
        transform: translateX(calc(100vw + 20%));
    }
}

/* House + Balloon Group */
.up-house-group {
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: houseFloat 7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.5s;
}

@keyframes houseFloat {
    0% {
        bottom: -40%;
        transform: translateX(-50%) rotate(0deg);
    }

    20% {
        bottom: 10%;
        transform: translateX(-50%) rotate(-3deg);
    }

    40% {
        bottom: 25%;
        transform: translateX(-48%) rotate(2deg);
    }

    60% {
        bottom: 32%;
        transform: translateX(-52%) rotate(-1.5deg);
    }

    80% {
        bottom: 36%;
        transform: translateX(-50%) rotate(0.5deg);
    }

    100% {
        bottom: 34%;
        transform: translateX(-50%) rotate(0deg);
    }
}

/* Balloon Cluster */
.balloon-cluster {
    position: relative;
    width: 160px;
    height: 110px;
}

/* Individual CSS-drawn Balloon */
.b-ball {
    position: absolute;
    width: var(--size, 28px);
    height: calc(var(--size, 28px) * 1.2);
    background: var(--color, #ff4757);
    border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
    left: calc(50% + var(--bx, 0px));
    top: var(--by, 0px);
    transform: translateX(-50%);
    animation: bWobble 2.5s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    box-shadow:
        inset -3px -3px 8px rgba(0, 0, 0, 0.25),
        inset 4px 4px 8px rgba(255, 255, 255, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Glossy shine on each balloon */
.b-ball::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 35%;
    height: 30%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
}

/* String hanging from each balloon */
.b-ball::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.25);
}

/* Balloon knot (tie point) at bottom */

@keyframes bWobble {

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

    25% {
        transform: translateX(-50%) translateY(-5px) rotate(1.5deg);
    }

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

    75% {
        transform: translateX(-50%) translateY(-7px) rotate(2deg);
    }
}

/* Strings bundle connecting cluster to house */
.strings-bundle {
    position: relative;
    width: 40px;
    height: 35px;
    margin: 0 auto;
}

.strings-bundle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid transparent;
    /* Simulate converging strings with a gradient background */
    background: linear-gradient(to bottom,
            transparent 0%,
            transparent 100%);
}

/* Multiple string lines */
.strings-bundle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 35px;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) no-repeat 0px 0 / 1px 100%,
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) no-repeat 8px 0 / 1px 100%,
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) no-repeat 16px 0 / 1px 100%,
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) no-repeat 25px 0 / 1px 100%,
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) no-repeat 33px 0 / 1px 100%,
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) no-repeat 42px 0 / 1px 100%,
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) no-repeat 50px 0 / 1px 100%;
}

.up-house {
    font-size: 4rem;
    margin-top: -5px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
    animation: houseSway 5s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes houseSway {

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

    15% {
        transform: rotate(-1.5deg) translateY(-3px);
    }

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

    50% {
        transform: rotate(-0.5deg) translateY(-4px);
    }

    70% {
        transform: rotate(1.5deg) translateY(-2px);
    }

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

/* Message below animation */
.up-message {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0;
    animation: messageAppear 1s ease-out forwards;
    animation-delay: 5s;
}

.up-highlight {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent-pink);
    margin-top: 0.3rem;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


/* ============================================
   LOCKED SECTION
   ============================================ */
.locked-section {
    background: radial-gradient(ellipse at center, var(--bg-gradient-2) 0%, var(--bg-dark) 70%);
}

.lock-container {
    text-align: center;
    padding: 2rem;
}

.lock-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {

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

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

.lock-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.lock-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.date-input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 280px;
    margin: 0 auto 1rem;
}

@media (min-width: 500px) {
    .date-input-container {
        flex-direction: row;
        max-width: 400px;
    }
}

.date-input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.date-input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.unlock-btn {
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-rose));
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.lock-error {
    color: var(--heart-red);
    font-size: 0.95rem;
    min-height: 1.5rem;
    margin-bottom: 0.5rem;
}

.lock-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   FINAL REVEAL SECTION
   ============================================ */
.final-section {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, var(--bg-gradient-2) 0%, var(--bg-dark) 70%);
    position: relative;
    overflow: hidden;
}

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

#confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.confetti-heart {
    position: absolute;
    font-size: 1.5rem;
    animation: confettiFall linear forwards;
    opacity: 0;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20vh) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(0) rotate(45deg) scale(1);
    }

    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

.final-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    padding: 2rem;
}

.final-content {
    animation: fadeInScale 1.5s ease-out forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

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

.final-letter {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 107, 157, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.letter-greeting {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--accent-pink);
    margin-bottom: 1.5rem;
}

.letter-paragraph {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.letter-paragraph.highlight-text {
    color: var(--text-warm);
    font-style: italic;
    font-size: 1.1rem;
}

.letter-closing {
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 2rem 0;
    color: var(--text-light);
}

.forever-text {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--accent-pink);
    margin-top: 0.5rem;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
    }

    50% {
        text-shadow: 0 0 25px rgba(255, 107, 157, 0.8);
    }
}

.letter-signature {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 2rem;
    line-height: 1.6;
}

.signature-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-warm);
}

.final-fade {
    margin-top: 3rem;
    text-align: center;
    animation: fadeInUp 2s ease-out 2s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

.final-quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    opacity: 0.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 2rem;
    text-align: center;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 107, 157, 0.1);
}

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

.footer-date {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpAnim 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

.delay-4 {
    animation-delay: 1.2s;
}

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

/* Reveal on Scroll */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Pulse Animation */
@keyframes pulse {

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 480px) {
    .section {
        padding: 2.5rem 1rem;
    }

    .photo-gallery {
        gap: 0.75rem;
    }

    .love-item {
        padding: 0.8rem 1rem;
    }

    .final-letter {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .photo-frame {
        max-width: 400px;
    }

    .love-item {
        padding: 1.2rem 2rem;
    }
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    :root {
        --text-muted: #ffffff;
        --accent-pink: #ff80b0;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}