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

html {
    scroll-behavior: smooth;
}

body {
    background: #F8E8EE;
    font-family: 'Poppins', sans-serif;
    padding-top: 90px;
}

header {

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ddaebf;

    padding: 15px 60px;

    z-index: 1000;

    transition: all 0.4s ease;

}


/* header menor ao rolar */

header.scrolled {

    padding: 8px 60px;

}

section {
    scroll-margin-top: 100px;
}

/* esconder logo quando rolar */

header.scrolled .logo {

    opacity: 0;
    transform: scale(0.6);

}

/* LOGO */

.logo {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    border: 3px solid #F8E8EE;
    cursor: pointer;
    transition: 0.4s;
}

.logo:hover {
    border: 3px solid #e01fff;
}

/* LINKS */
.link-nav {
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    color: #2B2B2B;
}

/* MENU CENTRALIZADO */
.box-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.link-nav:hover {
    color: #e01fff;
    transform: translateY(-2px);
}

/* SEPARADOR */
.tracing {
    font-size: 22px;
}

/* HERO SECTION */
.section-one {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 150px;
    padding: 120px 5%;
    flex-wrap: wrap;
}

/* TEXTO */
.box-main {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    color: #2B2B2B;
}

.box-main p {
    font-size: 16px;
    line-height: 1.7;
    color: #2B2B2B;
}

/* FOTO */
.foto-main img {
    height: 420px;
    border-radius: 30px;
    border: 5px solid #ddaebf;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.section-timeline {

    padding: 160px 10%;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 70px;

    position: relative;

    overflow: hidden;

}


/* corações no fundo */

.section-timeline::before {

    content: "♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡";

    position: absolute;

    font-size: 120px;

    color: #cfbcbc;

    opacity: 0.25;

    top: 80px;

    left: 5%;

    letter-spacing: 120px;

    pointer-events: none;

}

.section-timeline::after {

    content: "♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡  ♡";

    position: absolute;

    font-size: 100px;

    color: #e2d3d3;

    opacity: 0.25;

    bottom: 40px;

    right: 5%;

    letter-spacing: 100px;

    pointer-events: none;

}


/* título */

.section-timeline h2 {

    font-family: 'Playfair Display', serif;

    font-size: 50px;

    color: #2B2B2B;

}


/* container principal */

.timeline-container {

    display: flex;

    gap: 100px;

    align-items: flex-start;

    max-width: 1200px;

}



/* caixa do texto */

.timeline-text {

    max-width: 600px;

    font-size: 17px;
    line-height: 1.9;

    background: white;

    padding: 50px;

    border-radius: 20px;

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

    min-height: 220px;

    max-height: 420px;
    /* LIMITE DE ALTURA */
    overflow-y: auto;
    /* SCROLL INTERNO */

}

.timeline-text::-webkit-scrollbar {
    width: 6px;
}

.timeline-text::-webkit-scrollbar-thumb {
    background: #ddaebf;
    border-radius: 10px;
}



/* menu lateral */

.timeline-menu {

    display: flex;

    flex-direction: column;

    gap: 20px;

    position: relative;

    padding-left: 30px;

}


/* linha da timeline */

.timeline-menu::before {

    content: "";

    position: absolute;

    left: 8px;

    top: 0;

    width: 3px;

    height: 100%;

    background: #ddaebf;

}



/* botões */

.month {

    background: white;

    border: 2px solid #ddaebf;

    padding: 14px 22px;

    border-radius: 12px;

    font-size: 15px;

    font-weight: 500;

    cursor: pointer;

    transition: all 0.3s;

    text-align: left;

    width: 180px;

    position: relative;

}



/* bolinha da timeline */

.month::before {

    content: "";

    position: absolute;

    left: -28px;

    top: 50%;

    transform: translateY(-50%);

    width: 12px;

    height: 12px;

    border-radius: 50%;

    background: #ddaebf;

}



/* hover */

.month:hover {

    background: #FFD6E3;

    transform: translateX(5px);

}



/* ativo */

.month.active {

    background: #ddaebf;

    color: white;

    border-color: #ddaebf;

}

hr {
    color: #2B2B2B;
}

#timeline-content::after {

    content: "|";

    animation: blink 1s infinite;

    margin-left: 3px;

}

@keyframes blink {

    0% {
        opacity: 0
    }

    50% {
        opacity: 1
    }

    100% {
        opacity: 0
    }

}

/* corações flutuando */

.floating-heart {

    position: fixed;

    font-size: 22px;

    color: #ddaebf;

    pointer-events: none;

    animation: heartFloat 2s ease forwards;

}

@keyframes heartFloat {

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

    100% {
        transform: translateY(-120px) scale(1.6);
        opacity: 0;
    }

}

.section-gallery {

    padding: 160px 10%;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 60px;

    overflow: hidden;

}

.section-gallery h2 {

    font-family: 'Playfair Display', serif;

    font-size: 38px;

    color: #2B2B2B;

}


.carousel {
    width: 720px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.slide {
    width: 220px;
    scroll-snap-align: center;
    flex-shrink: 0;
    height: 390px;

    object-fit: cover;

    border-radius: 20px;
    border: 3px solid #ddaebf;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

    opacity: 0.6;
    transform: scale(0.85);

    transition: all .4s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    border: 4px solid #e01fff;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #ddaebf;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 5;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-btn:hover {

    transform: translateY(-50%) scale(1.1);
    background: #e01fff;

}

.footer {

    margin-top: 120px;

    background: #ddaebf;

    color: #2B2B2B;

    padding: 80px 10%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 60px;

}

/* parte romantica */

.footer-romantic {

    text-align: center;
    max-width: 700px;

}

.footer-romantic h3 {

    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 15px;

}

.footer-romantic p {

    font-size: 16px;
    line-height: 1.7;

}

/* redes sociais */

.footer-social {

    display: flex;
    gap: 120px;

}

.social-column {

    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;

}

.social-column h4 {

    font-size: 18px;
    font-weight: 600;

}

.social-column a {

    text-decoration: none;
    color: #2B2B2B;
    font-size: 15px;

    transition: .3s;

}

.social-column a:hover {

    color: #e01fff;
    transform: translateY(-2px);

}

/* créditos */

.footer-credits {

    text-align: center;
    font-size: 14px;

}

.footer-links a {

    text-decoration: none;
    font-weight: 600;
    color: #2B2B2B;

}

.footer-links a:hover {

    color: #e01fff;

}

.footer-divider {
    margin-top: 10px;
    border: none;
    height: 2px;
    background: #ddaebf;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.footer-credits a {
    color: #e01fff;
}

#timeline-content {
    white-space: pre-line;
}

/* ============================= */
/* RESPONSIVIDADE GLOBAL */
/* ============================= */

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

body {
    overflow-x: hidden;
}

/* ============================= */
/* TABLETS GRANDES */
/* ============================= */

@media (max-width:1200px) {

    .section-one {
        gap: 80px;
    }
    .carousel-btn{
        display: none;
    }

    .timeline-container {
        gap: 60px;
    }

    .carousel {
        width: 640px;
    }

}

/* ============================= */
/* TABLETS */
/* ============================= */

@media (max-width:992px) {

    header {
        padding: 15px 30px;
    }

    header.scrolled {
        padding: 12px 40px;
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    /* HERO */

    .section-one {
        flex-direction: column;
        gap: 60px;
        padding: 100px 6%;
    }

    .box-main {
        max-width: 600px;
    }

    .foto-main img {
        height: 380px;
    }

    /* TIMELINE */

    .timeline-container {
        flex-direction: column;
        align-items: center;
    }

    .timeline-text {
        max-width: 100%;
    }

    .timeline-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding-left: 0;
    }

    .timeline-menu::before {
        display: none;
    }

    .month {
        width: auto;
    }

    .month::before {
        display: none;
    }

    /* CAROUSEL */

    .carousel {
        width: 540px;
    }

    .slide {
        width: 200px;
        height: 360px;
    }

}

/* ============================= */
/* CELULARES GRANDES */
/* ============================= */

@media (max-width:768px) {

    /* HEADER */

    .box-nav {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .box-nav a {
        line-height: 1;
        padding: 4px 0;
    }

    .tracing {
        display: none;
    }

    header.scrolled .logo {
        display: none;
    }

    /* HERO */

    h1 {
        font-size: 32px;
    }

    .box-main p {
        font-size: 15px;
    }

    .foto-main img {
        height: 320px;
    }

    /* TIMELINE */

    .section-timeline h2 {
        font-size: 36px;
        text-align: center;
    }

    .timeline-text {
        padding: 35px;
        font-size: 15px;
    }

    .month {
        font-size: 14px;
        padding: 10px 16px;
    }

    /* FOOTER */

    .footer-social {
        gap: 60px;
    }

    .footer-romantic h3 {
        font-size: 26px;
    }

}



@media (max-width:768px) {

    .carousel {
        position: relative;
        width: 100%;
        max-width: 900px;
        margin: auto;
        overflow: hidden;
    }

    .carousel-track {
        display: flex;
        gap: 20px;
        transition: transform .35s ease-in-out;
        justify-content: center;
    }

    .slide {
        width: 260px;
        height: 420px;
        object-fit: cover;
        opacity: 1;
        border-radius: 14px;
        transform: scale(.9);

        transition: .3s;
    }

    .slide.active {
        transform: scale(1);
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);

        width: 40px;
        height: 40px;

        border-radius: 50%;
        border: none;

        background: rgba(0, 0, 0, .6);
        color: white;

        cursor: pointer;
        z-index: 10;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}



/* ============================= */
/* CELULARES MÉDIOS */
/* ============================= */

@media (max-width:600px) {

    header {
        padding: 12px 20px;
    }

    .box-nav {
        font-size: 14px;
    }

    /* HERO */

    .section-one {
        padding: 90px 8%;
    }

    .foto-main img {
        height: 300px;
    }

    /* TIMELINE */

    .section-timeline {
        padding: 120px 8%;
    }

    .timeline-text {
        padding: 30px;
    }

    .timeline-menu {
        gap: 10px;
    }

    /* CAROUSEL */

    .carousel {
        width: 320px;
    }

    .slide {
        width: 140px;
        height: 250px;
    }

    .carousel-btn {
        width: 34px;
        height: 34px;
    }

    /* FOOTER */

    .footer {
        padding: 60px 8%;
    }

    .footer-social {
        flex-direction: column;
        gap: 30px;
    }

}

/* ============================= */
/* CELULARES PEQUENOS */
/* ============================= */

@media (max-width:420px) {

    h1 {
        font-size: 28px;
    }

    .box-main p {
        font-size: 14px;
    }

    .section-one {
        gap: 40px;
    }

    .foto-main img {
        height: 260px;
    }

    /* TIMELINE */

    .section-timeline h2 {
        font-size: 30px;
    }

    .timeline-text {
        font-size: 14px;
    }

    /* CAROUSEL */

    .carousel {
        width: 260px;
    }

    .slide {
        width: 120px;
        height: 210px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
    }

    /* FOOTER */

    .footer-romantic h3 {
        font-size: 22px;
    }

    .footer-romantic p {
        font-size: 14px;
    }

}

/* ============================= */
/* CELULARES MUITO PEQUENOS */
/* ============================= */

@media (max-width:340px) {

    .carousel {
        width: 220px;
    }

    .slide {
        width: 100px;
        height: 180px;
    }

    .box-nav {
        font-size: 12px;
    }

}