* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;

    background: #fff5f7;
    color: #4a3035;

    overflow-x: hidden;
}


/* =========================
   GENERAL SECTIONS
========================= */

section {
    min-height: 100vh;

    padding: 30px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
}


/* =========================
   OPENING
========================= */

.hero {
    background:
        radial-gradient(
            circle at top,
            #ffe1e9,
            #fff5f7 65%
        );
}

.hero-content {
    max-width: 600px;

    position: relative;
    z-index: 2;
}

.small-title {
    font-size: 16px;
    opacity: 0.7;
}

h1 {
    font-size: clamp(40px, 10vw, 64px);

    margin: 20px 0;
}

.subtitle {
    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 30px;
}


/* =========================
   BUTTON
========================= */

button {
    border: none;

    padding: 15px 28px;

    border-radius: 30px;

    background: #e75480;

    color: white;

    font-size: 16px;

    cursor: pointer;

    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
}


/* =========================
   SECRET
========================= */

.secret {
    background: #fff0f4;
}

.secret-box {
    width: 100%;
    max-width: 420px;

    padding: 40px 25px;

    border-radius: 25px;

    background: white;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}

.lock {
    font-size: 50px;

    margin-bottom: 10px;
}

h2 {
    font-size: 40px;

    margin: 15px 0;
}

.secret-box p {
    line-height: 1.6;
}

input {
    width: 100%;

    padding: 15px;

    margin: 20px 0;

    border: 2px solid #f1c4d0;

    border-radius: 12px;

    font-size: 16px;

    text-align: center;

    outline: none;
}

input:focus {
    border-color: #e75480;
}

#error {
    color: #d33;

    min-height: 20px;
}


/* =========================
   OUR STORY
========================= */

.story {
    background: white;
}

.content {
    max-width: 600px;
}

.story p {
    font-size: 18px;

    line-height: 1.7;
}


/* =========================
   FLOATING HEARTS
========================= */

.hearts {
    position: fixed;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 1;
}

.hearts span {
    position: absolute;

    bottom: -50px;

    font-size: 25px;

    opacity: 0.6;

    animation: floatHeart 10s linear infinite;
}

.hearts span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.hearts span:nth-child(2) {
    left: 25%;
    animation-delay: 2s;
}

.hearts span:nth-child(3) {
    left: 45%;
    animation-delay: 4s;
}

.hearts span:nth-child(4) {
    left: 65%;
    animation-delay: 1s;
}

.hearts span:nth-child(5) {
    left: 80%;
    animation-delay: 3s;
}

.hearts span:nth-child(6) {
    left: 90%;
    animation-delay: 5s;
}

@keyframes floatHeart {

    0% {
        transform:
            translateY(0)
            rotate(0deg);

        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    100% {
        transform:
            translateY(-110vh)
            rotate(360deg);

        opacity: 0;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    section {
        padding: 20px;
    }

    h2 {
        font-size: 34px;
    }

    .secret-box {
        padding: 35px 20px;
    }

}
/* =========================
   MEMORY GALLERY
========================= */

.memories {
    min-height: 100vh;

    background: #fff5f7;

    padding: 80px 20px;
}

.memory-container {
    width: 100%;
    max-width: 1000px;
}

.memory-intro {
    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 40px;
}


/* Gallery */

.gallery {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


/* Memory card */

.memory-card {
    background: white;

    border-radius: 20px;

    overflow: hidden;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.memory-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.12);
}


/* Photo */

.memory-card img {
    width: 100%;

    height: 260px;

    object-fit: cover;

    display: block;
}


/* Caption */

.memory-info {
    padding: 18px;

    text-align: left;
}

.memory-info h3 {
    margin: 0 0 8px;

    font-size: 20px;
}

.memory-info p {
    margin: 0;

    line-height: 1.5;

    opacity: 0.7;
}


/* =========================
   FULL SCREEN PHOTO
========================= */

.photo-viewer {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.9);

    display: none;

    justify-content: center;
    align-items: center;

    padding: 20px;

    z-index: 100;
}

.photo-viewer img {
    max-width: 95%;

    max-height: 90vh;

    object-fit: contain;

    border-radius: 10px;
}

.close-button {
    position: absolute;

    top: 20px;
    right: 25px;

    color: white;

    font-size: 45px;

    cursor: pointer;

    line-height: 1;
}


/* =========================
   MOBILE GALLERY
========================= */

@media (max-width: 600px) {

    .gallery {
        grid-template-columns: 1fr;
    }

    .memory-card img {
        height: 280px;
    }

}
/* =========================
   COUPLE QUIZ
========================= */

.quiz-section {
    min-height: 100vh;

    background: white;

    padding: 80px 20px;
}

.quiz-container {
    width: 100%;
    max-width: 700px;
}


/* Quiz box */

.quiz-box {
    margin-top: 40px;

    background: #fff5f7;

    padding: 30px;

    border-radius: 25px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.08);
}


/* Question number */

.question-number {
    font-size: 14px;

    opacity: 0.6;

    margin-bottom: 20px;
}


/* Question */

#question {
    font-size: 25px;

    line-height: 1.4;

    margin-bottom: 30px;
}


/* Answer buttons */

.answers {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.answer-button {
    width: 100%;

    padding: 16px;

    background: white;

    color: #4a3035;

    border: 2px solid #f1c4d0;

    border-radius: 15px;

    font-size: 16px;

    cursor: pointer;

    transition: 0.25s;
}

.answer-button:hover {
    background: #ffe6ed;

    transform: translateY(-2px);
}


/* Feedback */

.quiz-feedback {
    min-height: 25px;

    margin-top: 20px;

    font-weight: bold;
}


/* Result */

.quiz-result {
    display: none;

    margin-top: 40px;

    padding: 35px 20px;

    background: #fff5f7;

    border-radius: 25px;
}

.result-emoji {
    font-size: 60px;
}

.quiz-result h2 {
    margin-bottom: 10px;
}

#scoreText {
    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 25px;
}


/* Mobile */

@media (max-width: 600px) {

    .quiz-box {
        padding: 25px 18px;
    }

    #question {
        font-size: 22px;
    }

}
/* =========================
   LOVE LETTERS
========================= */

.letters-section {
    min-height: 100vh;

    background: #fff5f7;

    padding: 80px 20px;
}

.letters-container {
    width: 100%;
    max-width: 900px;
}

.letters-intro {
    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 40px;
}


/* Letter grid */

.letters-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


/* Letter card */

.letter-card {
    background: white;

    padding: 30px 20px;

    border-radius: 22px;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.letter-card:hover {
    transform:
        translateY(-7px)
        rotate(-1deg);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.12);
}


/* Envelope */

.envelope {
    font-size: 60px;

    margin-bottom: 10px;

    transition: transform 0.3s;
}

.letter-card:hover .envelope {
    transform:
        scale(1.15)
        rotate(5deg);
}

.letter-card h3 {
    margin: 10px 0;

    font-size: 20px;
}

.letter-card p {
    margin: 0;

    opacity: 0.6;
}


/* =========================
   LETTER POPUP
========================= */

.letter-popup {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    display: none;

    justify-content: center;
    align-items: center;

    padding: 20px;

    z-index: 200;
}

.letter-content {
    position: relative;

    width: 100%;
    max-width: 550px;

    max-height: 85vh;

    overflow-y: auto;

    background: #fffaf5;

    border-radius: 25px;

    padding: 45px 30px 35px;

    text-align: center;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2);

    animation: letterAppear 0.3s ease;
}


@keyframes letterAppear {

    from {
        transform:
            scale(0.8)
            translateY(20px);

        opacity: 0;
    }

    to {
        transform:
            scale(1)
            translateY(0);

        opacity: 1;
    }

}


/* Close button */

.close-letter {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 40px;
    height: 40px;

    padding: 0;

    background: transparent;

    color: #4a3035;

    font-size: 32px;
}

.close-letter:hover {
    background: transparent;

    transform: scale(1.1);
}


/* Popup envelope */

.big-envelope {
    font-size: 70px;

    margin-bottom: 10px;
}


/* Letter text */

#letterText {
    font-size: 18px;

    line-height: 1.8;

    white-space: pre-line;

    margin: 20px auto;

    max-width: 450px;
}

.letter-heart {
    font-size: 30px;

    margin-top: 20px;
}


/* Mobile */

@media (max-width: 600px) {

    .letters-grid {
        grid-template-columns: 1fr;
    }

    .letter-content {
        padding:
            40px 20px 30px;
    }

}
/* =========================
   MEMORY GAME
========================= */

.game-section {
    min-height: 100vh;

    background: #fff5f7;

    padding: 80px 20px;
}

.game-container {
    width: 100%;

    max-width: 850px;

    text-align: center;
}

.game-intro {
    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 30px;
}


/* Stats */

.game-stats {
    display: flex;

    justify-content: center;

    gap: 30px;

    margin-bottom: 30px;

    font-size: 16px;
}


/* Game board */

.game-board {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    max-width: 700px;

    margin: auto;
}


/* Card */

.memory-game-card {
    aspect-ratio: 1 / 1;

    perspective: 800px;

    cursor: pointer;
}


/* Card inner */

.card-inner {
    width: 100%;
    height: 100%;

    position: relative;

    transition:
        transform 0.5s;

    transform-style: preserve-3d;
}


/* Flipped */

.memory-game-card.flipped .card-inner {
    transform:
        rotateY(180deg);
}


/* Front and back */

.card-front,
.card-back {
    position: absolute;

    inset: 0;

    backface-visibility: hidden;

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);
}


/* Front */

.card-front {
    background: #e75480;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 35px;

    color: white;
}


/* Back */

.card-back {
    background: white;

    transform:
        rotateY(180deg);
}

.card-back img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* Matched */

.memory-game-card.matched {
    cursor: default;
}

.memory-game-card.matched .card-back {
    box-shadow:
        0 0 0 4px #e75480;
}


/* Result */

.game-result {
    display: none;

    margin-top: 40px;

    padding: 35px 20px;

    background: white;

    border-radius: 25px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.08);
}

.game-result-emoji {
    font-size: 60px;
}

#gameResultText {
    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 25px;
}


/* Mobile */

@media (max-width: 600px) {

    .game-board {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 10px;
    }

    .game-stats {
        gap: 20px;
    }

}
/* =========================
   OUR TIMELINE
========================= */

.timeline-section {
    min-height: 100vh;

    background: white;

    padding: 90px 20px;
}

.timeline-container {
    width: 100%;

    max-width: 850px;

    text-align: center;
}

.timeline-intro {
    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 70px;
}


/* Timeline line */

.timeline {
    position: relative;

    width: 100%;

    margin: auto;
}


/* Vertical line */

.timeline::before {
    content: "";

    position: absolute;

    left: 50%;

    top: 0;
    bottom: 0;

    width: 3px;

    background: #f1c4d0;

    transform:
        translateX(-50%);
}


/* Timeline item */

.timeline-item {
    position: relative;

    width: 100%;

    display: flex;

    justify-content: flex-start;

    margin-bottom: 70px;
}


/* Alternate sides */

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}


/* Timeline card */

.timeline-card {
    width: 43%;

    background: #fff5f7;

    border-radius: 22px;

    padding: 20px;

    text-align: left;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.3s;
}

.timeline-card:hover {
    transform: translateY(-5px);
}


/* Date */

.timeline-date {
    font-size: 13px;

    font-weight: bold;

    letter-spacing: 1px;

    opacity: 0.55;

    margin: 0 0 8px;
}


/* Heading */

.timeline-card h3 {
    font-size: 22px;

    margin: 0 0 15px;
}


/* Image */

.timeline-card img {
    width: 100%;

    height: 220px;

    object-fit: cover;

    border-radius: 15px;

    display: block;

    margin-bottom: 15px;
}


/* Description */

.timeline-card p:last-child {
    font-size: 16px;

    line-height: 1.6;

    margin: 0;

    white-space: pre-line;
}


/* Timeline dots */

.timeline-dot {
    position: absolute;

    left: 50%;

    top: 25px;

    width: 50px;
    height: 50px;

    transform:
        translateX(-50%);

    background: white;

    border: 3px solid #f1c4d0;

    border-radius: 50%;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 22px;

    z-index: 2;
}


/* Final card */

.final-timeline-card {
    background: #ffe8ef;

    box-shadow:
        0 15px 40px rgba(231, 84, 128, 0.15);
}

.final-dot {
    border-color: #e75480;
}


/* End */

.timeline-end {
    margin-top: 40px;

    padding: 40px 20px;
}

.timeline-end p {
    font-size: 20px;

    margin-bottom: 25px;
}


/* =========================
   MOBILE TIMELINE
========================= */

@media (max-width: 700px) {

    .timeline::before {
        left: 25px;
    }


    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-end;

        padding-left: 55px;
    }


    .timeline-card {
        width: 100%;
    }


    .timeline-dot {
        left: 25px;
    }


    .timeline-card img {
        height: 200px;
    }

}
/* =========================
   FINAL SURPRISE
========================= */

.final-section {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at center,
            #ffe1e9,
            #fff5f7 65%
        );

    padding: 80px 20px;

    position: relative;

    overflow: hidden;
}


.final-container {
    width: 100%;

    max-width: 700px;

    text-align: center;

    position: relative;

    z-index: 2;
}


/* Before reveal */

.final-intro {
    font-size: 18px;

    line-height: 1.8;

    max-width: 500px;

    margin:
        0 auto 30px;

    white-space: pre-line;
}


/* Gift */

.gift {
    font-size: 100px;

    margin: 30px 0;

    animation:
        giftBounce 1.5s ease-in-out infinite;
}


@keyframes giftBounce {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateY(-12px)
            rotate(4deg);
    }

}


/* Final reveal */

.final-reveal {
    display: none;

    animation:
        finalAppear 1s ease;
}


@keyframes finalAppear {

    from {
        opacity: 0;

        transform:
            scale(0.85)
            translateY(30px);
    }

    to {
        opacity: 1;

        transform:
            scale(1)
            translateY(0);
    }

}


/* Celebration */

.celebration {
    font-size: 28px;

    margin-bottom: 20px;

    animation:
        celebrationPulse 1.5s ease-in-out infinite;
}


@keyframes celebrationPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

}


/* Final heading */

.final-reveal h1 {
    font-size:
        clamp(38px, 9vw, 60px);

    margin:
        15px 0 30px;
}


/* Final photo */

.final-photo {
    width: 100%;

    max-width: 450px;

    height: 450px;

    object-fit: cover;

    border-radius: 25px;

    display: block;

    margin: 0 auto 35px;

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.15);
}


/* Message */

.final-message {
    max-width: 550px;

    margin: auto;

    font-size: 19px;

    line-height: 1.9;
}


.final-message p {
    margin-bottom: 25px;
}


.final-signature {
    font-size: 45px;

    margin-top: 30px;
}


/* Mobile */

@media (max-width: 600px) {

    .gift {
        font-size: 80px;
    }

    .final-photo {
        height: 350px;
    }

    .final-message {
        font-size: 17px;
    }

}
/* =========================
   MUSIC PLAYER
========================= */

.music-button {
    position: fixed;

    top: 20px;
    right: 20px;

    z-index: 300;

    padding: 11px 18px;

    border-radius: 25px;

    background: white;

    color: #4a3035;

    border: 2px solid #f1c4d0;

    font-size: 14px;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.music-button:hover {
    transform: scale(1.05);

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.12);
}


/* When music is playing */

.music-button.playing {
    animation:
        musicPulse 1.5s ease-in-out infinite;
}


@keyframes musicPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

}


/* Mobile */

@media (max-width: 600px) {

    .music-button {
        top: 12px;

        right: 12px;

        padding: 9px 14px;

        font-size: 13px;
    }

}
/* =========================
   SMART ANNIVERSARY COUNTER
========================= */

.anniversary-counter {
    width: 100%;
    max-width: 650px;

    margin: 35px auto;

    text-align: center;
}


/* Main title */

#counterTitle {
    font-size: 17px;

    margin-bottom: 20px;

    opacity: 0.75;
}


/* =========================
   TIME TOGETHER
========================= */

.time-together {
    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;
}


.time-number {
    min-width: 85px;

    padding: 15px 10px;

    background: rgba(255,255,255,0.8);

    border-radius: 18px;

    box-shadow:
        0 8px 25px
        rgba(0,0,0,0.06);
}


.time-number span {
    display: block;

    font-size: 28px;

    font-weight: bold;
}


.time-number small {
    display: block;

    margin-top: 4px;

    font-size: 11px;

    opacity: 0.6;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================
   NEXT ANNIVERSARY
========================= */

.next-anniversary {
    margin-top: 30px;

    padding: 20px;

    border-radius: 20px;

    background: rgba(255,255,255,0.55);
}


.next-anniversary p {
    margin-bottom: 15px;

    font-size: 15px;

    opacity: 0.7;
}


.next-counter {
    display: flex;

    justify-content: center;

    gap: 20px;
}


.next-counter div {
    min-width: 55px;
}


.next-counter span {
    display: block;

    font-size: 23px;

    font-weight: bold;
}


.next-counter small {
    font-size: 10px;

    opacity: 0.6;

    text-transform: uppercase;
}


/* =========================
   MILESTONE
========================= */

.milestone-message {
    margin-top: 25px;

    font-size: 20px;

    font-weight: 600;

    animation:
        milestonePulse 2s
        ease-in-out infinite;
}


@keyframes milestonePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .time-number {
        min-width: 65px;

        padding: 12px 7px;
    }

    .time-number span {
        font-size: 22px;
    }

    .next-counter {
        gap: 12px;
    }

    .next-counter span {
        font-size: 20px;
    }

}
/* =========================
   BEAUTIFUL HERO
========================= */

.hero-section {

    min-height: 100vh;

    position: relative;

    overflow: hidden;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 70px 20px;

    background:
        radial-gradient(
            circle at 20% 20%,
            #ffe3eb,
            transparent 35%
        ),

        radial-gradient(
            circle at 80% 80%,
            #f9d9e3,
            transparent 35%
        ),

        #fff8fa;
}


/* =========================
   HERO CONTENT
========================= */

.hero-content {

    width: 100%;

    max-width: 750px;

    text-align: center;

    position: relative;

    z-index: 5;

    animation:
        heroAppear 1.2s ease;
}


@keyframes heroAppear {

    from {

        opacity: 0;

        transform:
            translateY(30px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* =========================
   HERO PHOTO
========================= */

.hero-photo-wrapper {

    width: 190px;

    height: 190px;

    margin:
        0 auto 25px;

    position: relative;

}


.hero-photo {

    width: 175px;

    height: 175px;

    object-fit: cover;

    border-radius: 50%;

    position: relative;

    z-index: 2;

    border: 6px solid white;

    box-shadow:
        0 15px 40px
        rgba(0,0,0,0.12);
}


.hero-photo-ring {

    position: absolute;

    width: 190px;

    height: 190px;

    border-radius: 50%;

    border: 2px dashed #e5a8ba;

    top: -1px;

    left: -1px;

    animation:
        ringRotate 15s
        linear infinite;
}


@keyframes ringRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================
   HERO TEXT
========================= */

.hero-label {

    font-size: 12px;

    letter-spacing: 4px;

    font-weight: bold;

    opacity: 0.5;

    margin-bottom: 12px;
}


.hero-title {

    font-size:
        clamp(45px, 9vw, 75px);

    line-height: 0.95;

    margin: 0;

    letter-spacing: -2px;
}


.hero-title span {

    display: block;

    font-size:
        clamp(35px, 7vw, 60px);

    margin-top: 10px;
}


.hero-description {

    max-width: 480px;

    margin:
        25px auto 30px;

    font-size: 17px;

    line-height: 1.7;

    opacity: 0.7;
}


/* =========================
   HERO COUNTER
========================= */

.hero-counter {

    margin:
        20px auto 30px;
}


/* Make the counter slightly smaller */

.hero-counter .time-number {

    min-width: 72px;

    padding: 12px 8px;
}


.hero-counter .time-number span {

    font-size: 23px;
}


.hero-counter .next-anniversary {

    max-width: 450px;

    margin:
        20px auto 0;
}


/* =========================
   BEGIN BUTTON
========================= */

.begin-button {

    padding:
        15px 28px;

    border-radius: 40px;

    font-size: 16px;

    font-weight: 600;

    box-shadow:
        0 10px 30px
        rgba(0,0,0,0.1);

    transition:
        transform 0.3s,
        box-shadow 0.3s;
}


.begin-button span {

    display: inline-block;

    margin-left: 8px;

    transition:
        transform 0.3s;
}


.begin-button:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 15px 35px
        rgba(0,0,0,0.15);
}


.begin-button:hover span {

    transform:
        translateX(5px);
}


/* =========================
   SCROLL HINT
========================= */

.scroll-hint {

    margin-top: 35px;

    opacity: 0.45;

    font-size: 12px;

    letter-spacing: 1px;
}


.scroll-arrow {

    font-size: 20px;

    margin-top: 6px;

    animation:
        scrollBounce 1.5s
        ease-in-out infinite;
}


@keyframes scrollBounce {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(8px);
    }

}


/* =========================
   FLOATING HEARTS
========================= */

.floating-hearts {

    position: absolute;

    inset: 0;

    pointer-events: none;

    overflow: hidden;
}


.floating-hearts span {

    position: absolute;

    bottom: -50px;

    font-size:
        calc(15px + 2vw);

    opacity: 0.15;

    animation:
        floatHeart
        linear infinite;
}


.floating-hearts span:nth-child(1) {

    left: 5%;

    animation-duration: 9s;

    animation-delay: 1s;
}


.floating-hearts span:nth-child(2) {

    left: 18%;

    animation-duration: 12s;

    animation-delay: 3s;
}


.floating-hearts span:nth-child(3) {

    left: 32%;

    animation-duration: 10s;

    animation-delay: 5s;
}


.floating-hearts span:nth-child(4) {

    left: 50%;

    animation-duration: 13s;

    animation-delay: 2s;
}


.floating-hearts span:nth-child(5) {

    left: 65%;

    animation-duration: 11s;

    animation-delay: 4s;
}


.floating-hearts span:nth-child(6) {

    left: 76%;

    animation-duration: 14s;

    animation-delay: 1s;
}


.floating-hearts span:nth-child(7) {

    left: 88%;

    animation-duration: 10s;

    animation-delay: 6s;
}


.floating-hearts span:nth-child(8) {

    left: 95%;

    animation-duration: 12s;

    animation-delay: 7s;
}


@keyframes floatHeart {

    from {

        transform:
            translateY(0)
            rotate(0deg);

    }

    to {

        transform:
            translateY(-120vh)
            rotate(360deg);

    }

}


/* =========================
   GLOWING BACKGROUND
========================= */

.hero-glow {

    position: absolute;

    width: 300px;

    height: 300px;

    border-radius: 50%;

    filter: blur(70px);

    opacity: 0.25;

    animation:
        glowMove 8s
        ease-in-out infinite;
}


.glow-one {

    top: -100px;

    left: -100px;

    background: #ffc5d5;
}


.glow-two {

    bottom: -100px;

    right: -100px;

    background: #e9bfd0;

    animation-delay: -4s;
}


@keyframes glowMove {

    0%,
    100% {

        transform:
            scale(1)
            translate(0,0);

    }

    50% {

        transform:
            scale(1.2)
            translate(30px,-20px);

    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .hero-section {

        padding:
            55px 15px;
    }


    .hero-photo-wrapper {

        width: 150px;

        height: 150px;
    }


    .hero-photo {

        width: 140px;

        height: 140px;
    }


    .hero-photo-ring {

        width: 150px;

        height: 150px;
    }


    .hero-description {

        font-size: 15px;
    }


    .hero-counter .time-number {

        min-width: 60px;
    }


    .hero-counter .time-number span {

        font-size: 20px;
    }


    .scroll-hint {

        margin-top: 25px;
    }

}
/* =========================
   EASTER EGGS
========================= */

.secret-heart {

    position: fixed;

    bottom: 25px;

    left: 22px;

    font-size: 20px;

    opacity: 0.08;

    cursor: pointer;

    z-index: 250;

    transition:
        opacity 0.3s,
        transform 0.3s;
}


.secret-heart:hover {

    opacity: 0.5;

    transform:
        scale(1.3);

}


/* =========================
   SECRET MESSAGE
========================= */

.secret-message {

    position: fixed;

    inset: 0;

    display: none;

    justify-content: center;

    align-items: center;

    padding: 20px;

    background:
        rgba(0,0,0,0.65);

    z-index: 600;
}


.secret-message-box {

    width: 100%;

    max-width: 450px;

    background: #fff8fa;

    border-radius: 25px;

    padding: 40px 25px;

    text-align: center;

    position: relative;

    animation:
        secretAppear 0.4s ease;
}


@keyframes secretAppear {

    from {

        opacity: 0;

        transform:
            scale(0.8);

    }

    to {

        opacity: 1;

        transform:
            scale(1);

    }

}


.secret-icon {

    font-size: 60px;

    margin-bottom: 15px;
}


.secret-message-box h2 {

    margin-bottom: 20px;
}


.secret-message-box p {

    line-height: 1.7;

    margin-bottom: 15px;
}


.close-secret {

    position: absolute;

    top: 10px;

    right: 15px;

    background: transparent;

    font-size: 30px;

    padding: 5px 10px;
}


.close-secret:hover {

    background: transparent;
}
/* =========================
   SECRET ROOM
========================= */

.secret-room {

    display: none;

    min-height: 100vh;

    padding: 100px 20px;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            #fff0f4,
            #fce2ea 60%,
            #f8d5e0
        );

    text-align: center;
}


.secret-room.unlocked {

    display: flex;

    justify-content: center;

    align-items: center;

    animation:
        secretRoomAppear 1s ease;
}


@keyframes secretRoomAppear {

    from {

        opacity: 0;

        transform:
            translateY(50px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


.secret-room-content {

    width: 100%;

    max-width: 650px;

    margin: auto;
}


.secret-room-icon {

    font-size: 65px;

    margin-bottom: 20px;

    animation:
        unlockPulse 2s
        ease-in-out infinite;
}


@keyframes unlockPulse {

    0%,
    100% {

        transform:
            scale(1)
            rotate(0deg);

    }

    50% {

        transform:
            scale(1.1)
            rotate(5deg);

    }

}


.secret-room h2 {

    font-size:
        clamp(38px, 8vw, 60px);

    margin:
        10px 0 20px;
}


.secret-room-intro {

    max-width: 500px;

    margin:
        0 auto 40px;

    font-size: 17px;

    line-height: 1.8;

    opacity: 0.7;
}


/* =========================
   BONUS MEMORY
========================= */

.bonus-memory {

    margin-bottom: 50px;
}


.bonus-photo-frame {

    max-width: 450px;

    margin: auto;

    padding: 10px;

    background: white;

    border-radius: 25px;

    box-shadow:
        0 20px 50px
        rgba(0,0,0,0.12);

    transform:
        rotate(-1deg);

    transition:
        transform 0.4s;
}


.bonus-photo-frame:hover {

    transform:
        rotate(0deg)
        scale(1.02);
}


.bonus-photo-frame img {

    width: 100%;

    display: block;

    border-radius: 18px;
}


.bonus-caption {

    margin-top: 20px;

    font-size: 16px;

    font-style: italic;

    opacity: 0.7;
}


/* =========================
   SECRET LETTER
========================= */

.secret-letter {

    max-width: 520px;

    margin: auto;

    padding: 35px 25px;

    background:
        rgba(255,255,255,0.7);

    border-radius: 25px;

    box-shadow:
        0 10px 35px
        rgba(0,0,0,0.06);

    font-size: 17px;

    line-height: 1.8;
}


.letter-icon {

    font-size: 50px;

    margin-bottom: 20px;
}


.letter-heart {

    font-size: 40px;

    margin-top: 25px;
}


/* Mobile */

@media (max-width: 600px) {

    .secret-room {

        padding:
            80px 15px;
    }


    .secret-room h2 {

        font-size: 40px;
    }


    .secret-letter {

        font-size: 16px;
    }

}
/* =========================
   ENTRANCE LOCK
========================= */

.entrance-lock {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 9999;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 25px;

    text-align: center;

    background:
        radial-gradient(
            circle at 30% 20%,
            #ffe3eb,
            transparent 40%
        ),

        radial-gradient(
            circle at 70% 80%,
            #f8d6e1,
            transparent 40%
        ),

        #fff8fa;

    overflow: hidden;
}


.lock-content {

    width: 100%;

    max-width: 450px;

    animation:
        lockAppear 1s ease;
}


@keyframes lockAppear {

    from {

        opacity: 0;

        transform:
            translateY(25px)
            scale(0.95);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


.lock-icon {

    font-size: 70px;

    margin-bottom: 20px;

    animation:
        lockFloat 2s
        ease-in-out infinite;
}


@keyframes lockFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-8px);

    }

}


.lock-label {

    font-size: 11px;

    letter-spacing: 4px;

    opacity: 0.5;

    margin-bottom: 12px;
}


.lock-content h1 {

    font-size:
        clamp(35px, 8vw, 55px);

    margin-bottom: 15px;
}


.lock-text {

    font-size: 16px;

    line-height: 1.7;

    opacity: 0.65;

    margin-bottom: 25px;
}


#secretCode {

    width: 100%;

    padding: 15px 18px;

    border-radius: 30px;

    border: 2px solid #edc5d0;

    background: rgba(255,255,255,0.8);

    text-align: center;

    font-size: 16px;

    outline: none;

    margin-bottom: 12px;

    transition:
        border-color 0.3s,
        box-shadow 0.3s;
}


#secretCode:focus {

    border-color: #d999ad;

    box-shadow:
        0 0 0 4px
        rgba(217,153,173,0.12);
}


.lock-content button {

    width: 100%;

    padding: 15px;

    border-radius: 30px;

    font-size: 16px;

    cursor: pointer;
}


.wrong-code {

    display: none;

    margin-top: 15px;

    font-size: 14px;

    opacity: 0.7;

    animation:
        shake 0.35s ease;
}


@keyframes shake {

    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }

}


/* =========================
   WHEN UNLOCKED
========================= */

.entrance-lock.unlocked {

    animation:
        unlockDisappear 0.8s ease forwards;
}


@keyframes unlockDisappear {

    from {

        opacity: 1;

        transform:
            scale(1);

    }

    to {

        opacity: 0;

        transform:
            scale(1.05);

    }

}