* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #E2CFE9;
    background-image: 
        radial-gradient(ellipse at 50% 15%, rgba(255, 255, 255, 0.6) 0%, transparent 65%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(243, 230, 250, 0.4) 0%, transparent 40%);
    font-family: 'Montserrat', sans-serif;
    color: #4D396E;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow-x: hidden;
    padding: 80px 20px 110px 20px;
}

/* =========================================
   EFEITO DE BRILHO (SPARKLES / TWINKLE)
   ========================================= */
.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #FFFFFF 20%, rgba(255, 255, 255, 0.7) 60%, transparent 100%);
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.85);
    opacity: 0;
    animation: twinkleFade var(--duration, 4s) ease-in-out infinite var(--delay, 0s);
}

@keyframes twinkleFade {
    0%, 100% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: var(--max-opacity, 0.85);
        transform: scale(1.15);
    }
}

/* =========================================
   FLORES (Acompanham o scroll naturalmente)
   ========================================= */
.floral {
    position: absolute;
    width: 280px;
    max-width: 44vw;
    z-index: 2;
    pointer-events: none;
    opacity: 0.92;
}

.floral-top {
    top: 0;
    left: 0;
}

.floral-bottom {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

/* =========================================
   CONTAINER DO CONVITE
   ========================================= */
.invitation-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================
   CABEÇALHO
   ========================================= */
.header-section {
    margin-bottom: 35px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bride-name {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(4.8rem, 17vw, 6.8rem);
    font-weight: 400;
    color: #553E76;
    line-height: 1.05;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: #553E76;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.35;
    color: #634C85;
    max-width: 290px;
    margin: 0 auto;
}

/* =========================================
   DIAGRAMAÇÃO GRÁFICA / CONVITE IMPRESSO
   ========================================= */
.event-details-graphic {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 8px 30px rgba(85, 62, 118, 0.06);
    margin-bottom: 36px;
}

.calendar-stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.month-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: #553E76;
    margin-bottom: 12px;
}

.calendar-cross {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.side-col {
    flex: 1;
    border-top: 1px solid rgba(85, 62, 118, 0.35);
    border-bottom: 1px solid rgba(85, 62, 118, 0.35);
    padding: 6px 0;
}

.cross-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #6B558C;
    font-weight: 500;
}

.center-col {
    padding: 0 5px;
}

.big-day {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 600;
    color: #553E76;
    line-height: 0.95;
    display: block;
}

.year-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    letter-spacing: 4px;
    color: #6B558C;
    margin-top: 10px;
}

.ornament-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 22px 0;
    position: relative;
}

.ornament-line::before,
.ornament-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(85, 62, 118, 0.35), transparent);
}

.ornament-line .diamond {
    color: #7B6899;
    font-size: 0.65rem;
    padding: 0 10px;
}

.venue-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.venue-prefix {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #8C7AAB;
    font-weight: 600;
    margin-bottom: 5px;
}

.venue-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: #553E76;
    margin-bottom: 3px;
}

.venue-location {
    font-size: 0.95rem;
    color: #6B558C;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* =========================================
   CONTAGEM REGRESSIVA (Com troca suave)
   ========================================= */
.countdown-section {
    width: 100%;
    margin-bottom: 40px;
}

.countdown-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #6B558C;
    margin-bottom: 12px;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    padding: 10px 12px;
    min-width: 64px;
    box-shadow: 0 4px 15px rgba(85, 62, 118, 0.04);
}

.countdown-num-wrapper {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 600;
    color: #553E76;
    line-height: 1;
    display: block;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efeito ao mudar de número */
.countdown-number.flip-out {
    opacity: 0;
    transform: translateY(-8px);
}

.countdown-number.flip-in {
    opacity: 1;
    transform: translateY(0);
}

.countdown-tag {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: #7B6899;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.countdown-dots {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #6B558C;
    margin-top: -10px;
}

/* =========================================
   LOCALIZAÇÃO E MAPA
   ========================================= */
.location-section {
    width: 100%;
    margin-bottom: 40px;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 500;
    color: #553E76;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.map-card-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(85, 62, 118, 0.08);
    display: flex;
    flex-direction: column;
}

.map-frame {
    width: 100%;
    height: 185px;
    border: none;
    filter: contrast(95%) saturate(85%);
}

.map-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #553E76;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 13px 18px;
    transition: background 0.3s ease, color 0.3s ease;
}

.map-open-btn:hover {
    background: #553E76;
    color: #FFFFFF;
}

/* =========================================
   SUGESTÕES DE PRESENTES
   ========================================= */
.gifts-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(8px);
    border-radius: 22px;
    padding: 30px 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 24px rgba(85, 62, 118, 0.05);
    margin-bottom: 40px;
}

.gifts-intro {
    font-size: 0.88rem;
    color: #6B558C;
    margin-bottom: 22px;
    font-weight: 400;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.gift-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 18px 12px;
    box-shadow: 0 4px 12px rgba(85, 62, 118, 0.03);
    transition: transform 0.4s ease, background 0.4s ease;
}

.gift-box:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.82);
}

.gift-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(108, 81, 147, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #553E76;
    margin-bottom: 10px;
}

.gift-name {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #553E76;
    margin-bottom: 4px;
}

.gift-info {
    font-size: 0.85rem;
    color: #6B558C;
    font-weight: 500;
}

/* =========================================
   CONFIRMAÇÃO DE PRESENÇA (RSVP)
   ========================================= */
.rsvp-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-confirm {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    background: linear-gradient(135deg, #6C5193 0%, #4D396E 100%);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 18px 24px;
    border-radius: 35px;
    box-shadow: 0 8px 25px rgba(77, 57, 110, 0.35);
    transition: all 0.4s ease;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #7A5DA6 0%, #5B4482 100%);
    box-shadow: 0 12px 30px rgba(77, 57, 110, 0.45);
    transform: translateY(-3px) scale(1.02);
}

.rsvp-note {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #6B558C;
    max-width: 280px;
}

/* =========================================
   ANIMAÇÃO NO SCROLL (INTERSECTION OBSERVER)
   ========================================= */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVIDADE MOBILE
   ========================================= */
@media (max-width: 390px) {
    body {
        padding: 65px 14px 80px 14px;
    }
    
    .floral {
        width: 220px;
    }

    .countdown-unit {
        min-width: 54px;
        padding: 8px 6px;
    }

    .countdown-number {
        font-size: 1.4rem;
    }

    .gifts-grid {
        grid-template-columns: 1fr;
    }
}