* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #39a671;
    --secondary: #4c8c6d;
    --bg: #223b30;
    --text: #f1f5f2;

    --card-bg: rgba(20, 35, 27, 0.9);
    --border: rgba(111, 168, 133, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background:
        radial-gradient(circle at top, #458668 0%, #396652 40%, #2a443c 100%);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

section {
    padding: 80px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(
            circle at center,
            rgba(31,92,63,.25),
            rgba(0,0,0,.6)
        );
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-family: 'Marck Script', cursive;
    color: var(--primary);
    margin-bottom: 20px;
    color: #8dd5ab;
    text-shadow:
        0 0 10px rgba(141,213,171,.4),
        0 0 20px rgba(141,213,171,.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.hero-date {
    font-size: 1.1rem;
    opacity: 0.8;
}

.scroll-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 30px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 50px;
    color: var(--primary);
}

.counter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.counter-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.counter-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.memory {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 70px;
}

.memory.reverse {
    direction: rtl;
}

.memory.reverse > * {
    direction: ltr;
}

.photo-placeholder {
    height: 350px;
    border: 3px dashed #ffb6c8;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background: white;
    text-align: center;
    padding: 20px;
}

.memory-text h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 24pt;
}

.memory-text p {
    font-size: 16pt;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.gallery .photo-placeholder {
    height: 260px;
}

.letter {
    background: white;
    padding: 50px;
    border-radius: 30px;
    max-width: 900px;
    margin: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.letter p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.final {
    text-align: center;
    padding: 120px 20px;
}

.final h2 {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: 'Great Vibes', cursive;
}

footer {
    text-align: center;
    padding: 30px;
    opacity: .6;
}

.hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    bottom: -50px;
    font-size: 20px;
    animation: floatUp linear infinite;
    opacity: .4;
}

.counter-card,
.letter,
.photo-placeholder {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

@keyframes floatUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-120vh);
    }
}

@media (max-width: 768px) {
    .memory {
        grid-template-columns: 1fr;
    }

    .letter {
        padding: 30px;
    }
}

#stars {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.2;
    }
    to {
        opacity: 1;
    }
}

#fallingPhotos {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.falling-photo {
    position: absolute;

    width: 120px;
    height: 140px;

    background: white;
    border-radius: 6px;

    padding: 8px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.4);

    animation-name: photoFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.falling-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes photoFall {

    from {
        transform:
            translateY(-200px)
            rotate(-15deg);
    }

    to {
        transform:
            translateY(calc(100vh + 300px))
            rotate(15deg);
    }
}

.memory-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.estetic {
    color: #88caa3;
    text-shadow:
        0 0 5px rgba(141,213,171,.4),
        0 0 10px rgba(141,213,171,.2);
}