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

body {
    background: linear-gradient(to bottom, #fff7f9, #ffeef4);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: #5b4b4b;
}

/* flores */

.flower {
    position: fixed;
    font-size: 40px;
    opacity: 0.6;
    z-index: 0;
    animation: floatFlower 5s ease-in-out infinite;
}

.flower-1 {
    top: 40px;
    left: 30px;
}

.flower-2 {
    top: 150px;
    right: 40px;
}

.flower-3 {
    bottom: 100px;
    left: 50px;
}

.flower-4 {
    bottom: 40px;
    right: 50px;
}

@keyframes floatFlower {
    0% {
        transform: rotate(-4deg) translateY(0px);
    }
    50% {
        transform: rotate(4deg) translateY(-10px);
    }
    100% {
        transform: rotate(-4deg) translateY(0px);
    }
}

/* hero */

.hero {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    font-family: 'Caveat', cursive;
    color: #ff7ba5;
    z-index: 2;
}

.hero h1 span {
    display: block;
    color: #ff4f8b;
}

.subtitle {
    margin-top: 20px;
    max-width: 700px;
    font-size: 1.2rem;
    line-height: 1.8;
    z-index: 2;
}

.heart-bg {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,182,193,0.5), transparent);
    border-radius: 50%;
    filter: blur(30px);
}

/* timer */

.timer-section {
    padding: 60px 20px;
}

.timer-card {
    max-width: 700px;
    margin: auto;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
}

.timer-card h2 {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    margin-bottom: 15px;
}

.date {
    display: block;
    margin-top: 10px;
    color: #ff5d8f;
}

.timer {
    margin-top: 30px;
    font-size: 2rem;
    font-weight: bold;
    color: #ff5d8f;
    line-height: 1.8;
}

/* whatsapp */

.first-message-section {
    padding: 60px 20px;
}

.whatsapp-card {
    max-width: 600px;
    margin: auto;
    background: #efeae2;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.whatsapp-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffb8cd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.message-bubble {
    background: #dcf8c6;
    padding: 20px;
    border-radius: 20px;
    line-height: 1.8;
}

.message-bubble p + p {
    margin-top: 15px;
}

.remember {
    margin-top: 15px;
    text-align: right;
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #ff5d8f;
}

/* galeria */

.gallery-section {
    padding: 80px 20px;
    text-align: center;
}

.gallery-section h2 {
    font-size: 3rem;
    font-family: 'Caveat', cursive;
    margin-bottom: 40px;
}

.slider {
    position: relative;
    max-width: 1000px;
    height: 600px;
    margin: auto;
    overflow: hidden;
    border-radius: 30px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

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

.photo-ribbon {
    position: absolute;
    top: 25px;
    left: -50px;
    background: #ff7ba5;
    color: white;
    padding: 10px 70px;
    transform: rotate(-35deg);
    z-index: 5;
    font-weight: bold;
    letter-spacing: 2px;
}

/* carta */

.letter-section {
    padding: 100px 20px;
}

.letter {
    max-width: 900px;
    margin: auto;
    background: #fffdf8;
    padding: 60px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.paper-ring {
    position: absolute;
    top: 0;
    left: 40px;
    width: 80px;
    height: 100%;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent,
            transparent 22px,
            #ffd1dc 22px,
            #ffd1dc 24px
        );
}

.letter h2 {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Caveat', cursive;
    font-size: 4rem;
    color: #ff6d9d;
}

.letter-content {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    line-height: 2;
    padding-left: 60px;
}

.letter-content p {
  position: relative;
  z-index: 2;
}

.letter-content p + p {
    margin-top: 25px;
}

/* historia */

.story-section {
    padding: 80px 20px;
}

.story-card {
    max-width: 850px;
    margin: auto;
    background: rgba(255,255,255,0.8);
    padding: 50px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.story-card h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Caveat', cursive;
}

.story-card p {
    line-height: 2;
    font-size: 1.1rem;
}

.story-card p + p {
    margin-top: 20px;
}

footer {
    text-align: center;
    padding: 50px 20px;
    color: #b16a83;
}

/* responsivo */

@media(max-width: 768px) {

    .hero h1 {
        font-size: 3rem;
    }

    .slider {
        height: 400px;
    }

    .letter {
        padding: 30px;
    }

    .letter-content {
        font-size: 1.5rem;
        padding-left: 30px;
    }

    .timer {
        font-size: 1.4rem;
    }

}

/* INTRO SCREEN */

#intro-screen {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(255,245,248,0.98),
            rgba(255,235,242,0.98)
        );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 1.5s ease;
}

.intro-content {
    text-align: center;
    padding: 40px;
}

.intro-content h1 {
    font-family: 'Caveat', cursive;
    font-size: 5rem;
    color: #ff6f9f;
}

.intro-content p {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #7b5b67;
}

#start-btn {
    margin-top: 35px;
    border: none;
    padding: 18px 40px;
    border-radius: 999px;
    background: #ff7ba5;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(255,123,165,0.3);
}

#start-btn:hover {
    transform: scale(1.05);
    background: #ff5d8f;
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* ELEMENTOS FLUTUANDO */

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

.floating-elements span {
    position: absolute;
    display: block;
    font-size: 28px;
    opacity: 0.7;

    animation:
        floatUp linear infinite,
        sway ease-in-out infinite;
}

/* posições aleatórias */

.floating-elements span:nth-child(1) {
    left: 5%;
    animation-duration: 18s;
    animation-delay: 0s;
    font-size: 30px;
}

.floating-elements span:nth-child(2) {
    left: 12%;
    animation-duration: 22s;
    animation-delay: 2s;
}

.floating-elements span:nth-child(3) {
    left: 20%;
    animation-duration: 16s;
    animation-delay: 1s;
}

.floating-elements span:nth-child(4) {
    left: 30%;
    animation-duration: 24s;
    animation-delay: 4s;
}

.floating-elements span:nth-child(5) {
    left: 38%;
    animation-duration: 17s;
    animation-delay: 3s;
}

.floating-elements span:nth-child(6) {
    left: 48%;
    animation-duration: 25s;
    animation-delay: 6s;
}

.floating-elements span:nth-child(7) {
    left: 58%;
    animation-duration: 20s;
    animation-delay: 2s;
}

.floating-elements span:nth-child(8) {
    left: 68%;
    animation-duration: 19s;
    animation-delay: 5s;
}

.floating-elements span:nth-child(9) {
    left: 75%;
    animation-duration: 23s;
    animation-delay: 1s;
}

.floating-elements span:nth-child(10) {
    left: 82%;
    animation-duration: 18s;
    animation-delay: 4s;
}

.floating-elements span:nth-child(11) {
    left: 90%;
    animation-duration: 26s;
    animation-delay: 2s;
}

.floating-elements span:nth-child(12) {
    left: 95%;
    animation-duration: 21s;
    animation-delay: 7s;
}

/* animações */

@keyframes floatUp {

    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }

}

@keyframes sway {

    0% {
        margin-left: 0px;
    }

    50% {
        margin-left: 25px;
    }

    100% {
        margin-left: 0px;
    }

}

.hero,
.timer-section,
.first-message-section,
.gallery-section,
.letter-section,
.story-section,
footer {
    position: relative;
    z-index: 5;
}

/* CORAÇÕES */

.hearts-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.hearts-container span {
    position: absolute;
    bottom: -100px;
    font-size: 30px;
    opacity: 0.5;

    animation: heartsFloat linear infinite;
}

.hearts-container span:nth-child(1) {
    left: 8%;
    animation-duration: 18s;
}

.hearts-container span:nth-child(2) {
    left: 18%;
    animation-duration: 24s;
}

.hearts-container span:nth-child(3) {
    left: 30%;
    animation-duration: 16s;
}

.hearts-container span:nth-child(4) {
    left: 42%;
    animation-duration: 20s;
}

.hearts-container span:nth-child(5) {
    left: 55%;
    animation-duration: 25s;
}

.hearts-container span:nth-child(6) {
    left: 68%;
    animation-duration: 17s;
}

.hearts-container span:nth-child(7) {
    left: 77%;
    animation-duration: 23s;
}

.hearts-container span:nth-child(8) {
    left: 85%;
    animation-duration: 19s;
}

.hearts-container span:nth-child(9) {
    left: 92%;
    animation-duration: 21s;
}

@keyframes heartsFloat {

    0% {
        transform: translateY(0) scale(0.8) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    100% {
        transform:
            translateY(-120vh)
            scale(1.3)
            rotate(360deg);

        opacity: 0;
    }

}

/* BRILHOS */

.sparkles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.sparkles span {
    position: absolute;
    font-size: 18px;

    animation: sparkle 4s ease-in-out infinite;
}

.sparkles span:nth-child(1) {
    top: 10%;
    left: 20%;
}

.sparkles span:nth-child(2) {
    top: 25%;
    left: 75%;
}

.sparkles span:nth-child(3) {
    top: 40%;
    left: 50%;
}

.sparkles span:nth-child(4) {
    top: 60%;
    left: 15%;
}

.sparkles span:nth-child(5) {
    top: 75%;
    left: 80%;
}

.sparkles span:nth-child(6) {
    top: 90%;
    left: 40%;
}

@keyframes sparkle {

    0% {
        opacity: 0.2;
        transform: scale(0.7);
    }

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

    100% {
        opacity: 0.2;
        transform: scale(0.7);
    }

}

/* LUZES ROSAS */

.pink-light {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;

    animation: pulseLight 8s ease-in-out infinite;
}

.pink-light-1 {
    width: 350px;
    height: 350px;
    background: #ff8fb8;

    top: 10%;
    left: -100px;
}

.pink-light-2 {
    width: 300px;
    height: 300px;
    background: #ffd6e5;

    bottom: 10%;
    right: -80px;
}

.pink-light-3 {
    width: 250px;
    height: 250px;
    background: #ffc2d8;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pulseLight {

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

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

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

}

/* STORY */

.story-section {
    padding: 120px 20px;
    position: relative;
}

.story-container {
    max-width: 1000px;
    margin: auto;
    position: relative;
}

.story-container h2 {
    text-align: center;
    font-size: 5rem;
    font-family: 'Caveat', cursive;
    color: #ff6d9d;
    margin-bottom: 80px;
}

/* linha */

.timeline-line {
    position: absolute;
    left: 50%;
    top: 120px;
    transform: translateX(-50%);

    width: 4px;
    height: calc(100% - 120px);

    background:
        linear-gradient(
            to bottom,
            #ffd1dc,
            #ff7ba5,
            #ffd1dc
        );

    border-radius: 999px;
}

/* item */

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

.timeline-content {
    width: 42%;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);

    padding: 35px;
    border-radius: 30px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.08);

    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-date {
    position: absolute;
    left: 50%;
    top: 20px;

    transform: translateX(-50%);

    background: white;
    border: 3px solid #ffd1dc;

    padding: 12px 22px;
    border-radius: 999px;

    font-weight: bold;

    z-index: 5;
}

.timeline-date.pink {
    background: #ff7ba5;
    color: white;
}

.timeline-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff6d9d;

    font-family: 'Caveat', cursive;
}

.timeline-content p {
    line-height: 2;
}

.timeline-content p + p {
    margin-top: 15px;
}

/* GALERIA NAMORO */

.namoro-gallery {
    margin-top: 30px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.namoro-photo {
    position: relative;
    border-radius: 25px;
    overflow: hidden;

    transform: rotate(-2deg);

    transition: 0.4s;
}

.namoro-photo:nth-child(even) {
    transform: rotate(2deg);
}

.namoro-photo:hover {
    transform: scale(1.05) rotate(0deg);
}

.namoro-photo img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.photo-glow {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(255,182,193,0.3),
            transparent
        );
}

/* responsivo */

@media(max-width: 900px) {

    .timeline-line {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-date {
        left: 20px;
        transform: translateX(-50%);
    }

}

/* MINI CHAT */

.chat-memory {
    margin: 30px 0;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-msg {
    max-width: 80%;

    padding: 15px 20px;

    border-radius: 20px;

    font-size: 0.95rem;
    line-height: 1.7;

    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.mini-msg.left {
    background: #ffffff;
    border-top-left-radius: 5px;
}

.mini-msg.right {
    background: #ffd8e6;

    margin-left: auto;

    border-top-right-radius: 5px;
}

/* FRASE FINAL */

.final-line {
    text-align: center;

    margin-top: 35px;

    font-size: 1.4rem;

    color: #ff6d9d;

    font-family: 'Caveat', cursive;
}

/* PÁSCOA */

.easter-card {
    position: relative;
}

/* mini msg */

.mini-easter-msg {
    margin: 25px auto;

    width: fit-content;

    background: #fff0f5;

    padding: 15px 25px;

    border-radius: 999px;

    color: #ff6d9d;

    font-style: italic;

    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* galeria */

.pascoa-gallery {
    margin-top: 35px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.pascoa-photo {
    position: relative;

    overflow: hidden;

    border-radius: 25px;

    transform: rotate(-2deg);

    transition: 0.4s;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pascoa-photo:nth-child(even) {
    transform: rotate(2deg);
}

.pascoa-photo:hover {
    transform: scale(1.05) rotate(0deg);
}

.pascoa-photo img {
    width: 100%;
    max-height: 410px;
    object-fit: cover;
    display: block;
}

.pascoa-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: end;
    justify-content: end;

    padding: 15px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.25),
            transparent
        );

    color: white;
    font-size: 1.3rem;
}