/* Configurações Globais e Cores */
:root {
    --primary-color: #e91e63; /* Rosa vibrante */
    --secondary-color: #ff80ab; /* Rosa claro */
    --background-color: #fff0f5; /* Lavanda Rosada (fundo) */
    --text-color: #333;
    --white-color: #ffffff;
    --heading-font: 'Dancing Script', cursive;
    --body-font: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Previne scroll horizontal */
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 3rem; text-align: center; margin-bottom: 40px; }
h3 { font-size: 2rem; }

/* Animação de Fade-in ao Rolar */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animação de Corações Caindo */
#heart-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.heart {
    position: absolute;
    font-size: 24px;
    color: var(--secondary-color);
    opacity: 0.7;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Seção Hero (Topo) */
.hero {
    background-color: var(--white-color);
    text-align: center;
    padding: 60px 20px;
    border-bottom: 4px solid var(--secondary-color);
}

.hero p {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-family: var(--body-font);
    font-weight: 600;
}

.hero-image {
    max-width: 300px;
    width: 100%;
    border-radius: 50%;
    margin-top: 30px;
    border: 5px solid var(--background-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Seção de Introdução e Mensagem Final */
.intro, .final-message {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.intro p, .final-message p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 10px auto;
}

/* Linha do Tempo */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--secondary-color);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.timeline-icon {
    position: absolute;
    top: 40px;
    z-index: 10;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border: 3px solid var(--background-color);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.timeline-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 15px;
}

/* Galeria de Fotos */
.gallery {
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Rodapé */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
}

footer p {
    font-size: 1.1rem;
}

footer h3 {
    color: var(--white-color);
    font-size: 2.5rem;
}

/* Responsividade para Celulares */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }

    .timeline::before {
        left: 25px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    
    .timeline-icon {
        left: 0 !important;
    }
}