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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 40%, #f3e5f5 100%);
    background-attachment: fixed;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: #5a2d4e;
    overflow-x: hidden;
}

/* ── Parallax no fundo ─────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255,182,193,0.45) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(216,191,216,0.4) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* ── Partículas flutuantes ─────────────────────────── */
.particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -60px;
    opacity: 0;
    animation: floatUp linear infinite;
    user-select: none;
    line-height: 1;
}

@keyframes floatUp {
    0%   { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
    10%  { opacity: 0.75; }
    90%  { opacity: 0.35; }
    100% { transform: translateY(-115vh) rotate(360deg) scale(1.1); opacity: 0; }
}

/* ── Splash screen ─────────────────────────────────── */
.splash {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #f3e5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.splash.hide {
    animation: splashFade 0.9s ease forwards;
}

@keyframes splashFade {
    0%   { opacity: 1; transform: scale(1); }
    60%  { opacity: 1; transform: scale(1.04); }
    100% { opacity: 0; transform: scale(1.08); }
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: splashReveal 0.8s cubic-bezier(.34,1.56,.64,1) forwards;
}

@keyframes splashReveal {
    from { opacity: 0; transform: scale(0.7) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.splash-name {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3.5rem, 14vw, 8rem);
    font-weight: 700;
    color: #ad1457;
    line-height: 1;
    text-shadow: 0 4px 24px rgba(173,20,87,0.2);
}

.splash-heart {
    font-size: clamp(1.8rem, 5vw, 3rem);
    animation: heartBeat 0.9s ease-in-out 0.4s infinite alternate;
}

@keyframes heartBeat {
    from { transform: scale(1); }
    to   { transform: scale(1.25); }
}

/* ── Scroll reveal ─────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Layout ────────────────────────────────────────── */
.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 70px;
    padding: 60px 20px 90px;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #7b3f6e;
}

.subtitle strong {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    font-weight: 700;
    color: #c2185b;
}

/* ── Flip Clock ────────────────────────────────────── */
.counter-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    padding: 28px 36px;
    box-shadow: 0 8px 36px rgba(194, 24, 91, 0.18);
}

.flip-clock {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.flip-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.flip-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ad1457;
    opacity: 0.7;
}

.flip-digits {
    display: flex;
    gap: 3px;
}

.flip-digit {
    position: relative;
    width: clamp(32px, 6vw, 52px);
    height: clamp(46px, 8.5vw, 70px);
    background: linear-gradient(180deg, #fce4ec 0%, #f8bbd0 100%);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(194,24,91,0.2), inset 0 -2px 0 rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-digit-val {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.4rem, 3.5vw, 2.3rem);
    font-weight: 700;
    color: #ad1457;
    line-height: 1;
}

/* Animação de flip */
.flip-digit.flipping .flip-digit-val {
    animation: flipVal 0.3s ease forwards;
}

@keyframes flipVal {
    0%   { transform: rotateX(0deg); opacity: 1; }
    40%  { transform: rotateX(-90deg); opacity: 0; }
    60%  { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

.flip-sep {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #ad1457;
    opacity: 0.5;
    padding-bottom: 12px;
}

/* ── Galeria ───────────────────────────────────────── */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 940px;
}

.box {
    position: relative;
    width: clamp(155px, 21vw, 215px);
    height: clamp(155px, 21vw, 215px);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    background: #000;
    box-shadow: 0 6px 20px rgba(173, 20, 87, 0.2);
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease;
}

.box:hover,
.box:focus-visible {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 16px 36px rgba(173, 20, 87, 0.32);
    outline: none;
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.4s ease;
    display: block;
}

.box:hover img,
.box:focus-visible img {
    transform: scale(1.1);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(80, 10, 50, 0.78));
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 28px 10px 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 0 0 18px 18px;
    pointer-events: none;
}

.box:hover .caption,
.box:focus-visible .caption {
    opacity: 1;
    transform: translateY(0);
}

/* ── Marcos ────────────────────────────────────────── */
.milestones-section {
    width: 100%;
    max-width: 680px;
}

.milestones-card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    padding: 36px 40px;
    box-shadow: 0 8px 32px rgba(194,24,91,0.12);
}

.milestones-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: #ad1457;
    text-align: center;
    margin-bottom: 28px;
}

.milestones-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 28px;
}

/* Linha vertical da timeline */
.milestones-list::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, #f48fb1, #ce93d8);
    border-radius: 2px;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}

/* Bolinha da timeline */
.milestone-item::before {
    content: '';
    position: absolute;
    left: -24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #f48fb1;
    box-shadow: 0 0 0 2px rgba(244,143,177,0.4);
    flex-shrink: 0;
}

.milestone-item.reached::before {
    background: #ad1457;
    box-shadow: 0 0 0 3px rgba(173,20,87,0.25);
}

.milestone-item.current::before {
    background: #e91e63;
    box-shadow: 0 0 0 4px rgba(233,30,99,0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(233,30,99,0.3); }
    50%       { box-shadow: 0 0 0 8px rgba(233,30,99,0.1); }
}

.milestone-days {
    font-family: 'Dancing Script', cursive;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ad1457;
    min-width: 80px;
}

.milestone-label {
    font-size: 0.85rem;
    color: #7b3f6e;
    opacity: 0.8;
}

.milestone-item.reached .milestone-label { opacity: 1; }

.milestone-item.future .milestone-days  { color: #c48ca8; }
.milestone-item.future .milestone-label { opacity: 0.5; }

.milestone-days.special {
    color: #880e4f;
    font-size: 1.4rem;
}

.milestone-badge {
    font-size: 1.1rem;
    margin-left: 4px;
}

/* Próximo marco — countdown */
.next-milestone {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(173,20,87,0.12);
    text-align: center;
}

.next-milestone-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ad1457;
    opacity: 0.6;
    margin-bottom: 6px;
}

.next-milestone-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: #ad1457;
}

.next-milestone-text strong {
    font-size: 1.5rem;
}

/* Celebração de marco */
.milestone-celebration {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(20,4,14,0.85);
    animation: fadeIn 0.4s ease;
}

.celebration-content {
    text-align: center;
    animation: popIn 0.5s cubic-bezier(.34,1.56,.64,1) forwards;
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.celebration-emoji { font-size: 4rem; display: block; margin-bottom: 12px; }

.celebration-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: #fff;
    margin-bottom: 8px;
}

.celebration-sub {
    font-size: 1rem;
    color: #f8bbd0;
    margin-bottom: 28px;
}

.celebration-btn {
    background: #e91e63;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.celebration-btn:hover {
    background: #c2185b;
    transform: scale(1.05);
}

/* Confete */
.confetti-piece {
    position: fixed;
    top: -20px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    opacity: 0;
    animation: confettiFall linear forwards;
    pointer-events: none;
    z-index: 201;
}

@keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── Carta ─────────────────────────────────────────── */
.letter-section {
    width: 100%;
    max-width: 640px;
    display: flex;
    justify-content: center;
}

.letter {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 20px;
    padding: 40px 44px;
    box-shadow: 0 8px 32px rgba(194,24,91,0.12);
    position: relative;
}

.letter::before {
    content: '❤';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    filter: drop-shadow(0 2px 6px rgba(194,24,91,0.4));
}

.letter-date {
    font-family: 'Dancing Script', cursive;
    font-size: 0.95rem;
    color: #ad1457;
    opacity: 0.7;
    margin-bottom: 16px;
}

.letter p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #5a2d4e;
}

.letter-sign {
    margin-top: 20px;
    text-align: right;
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: #ad1457;
    font-weight: 700;
}

/* ── Mapa ──────────────────────────────────────────── */
.maps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 560px;
}

.maps-label {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: #ad1457;
    text-align: center;
}

.maps iframe {
    width: 100%;
    max-width: 500px;
    height: 320px;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(173, 20, 87, 0.18);
}

/* ── Lightbox ──────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: rgba(20, 4, 14, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: none;
    padding: 20px 70px;
    z-index: 100;
    animation: fadeIn 0.22s ease;
}

.lightbox::backdrop {
    background: rgba(20, 4, 14, 0.92);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox[open]     { display: flex; }
.lightbox:not([open]) { display: none; }

.lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    max-width: min(85vw, 720px);
    max-height: 70vh;
}

.lightbox-img-wrap.zoomed {
    cursor: zoom-out;
    overflow: auto;
}

#lightbox-img {
    max-width: min(85vw, 720px);
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 56px rgba(0,0,0,0.7);
    transition: transform 0.3s ease;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

#lightbox-caption {
    color: #f8bbd0;
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
}

.lightbox-counter {
    color: rgba(248,187,208,0.5);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-bottom: 3px;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

/* ── Responsivo ────────────────────────────────────── */
@media (max-width: 600px) {
    .counter-card { padding: 20px 18px; }

    .flip-clock { gap: 5px; }

    .box {
        width: clamp(130px, 43vw, 175px);
        height: clamp(130px, 43vw, 175px);
    }

    .letter { padding: 32px 24px; }

    .maps iframe { height: 260px; }

    .lightbox { padding: 20px 52px; }

    .lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 1.8rem;
    }

    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
}
