/* ===== CSS VARIABLES & RESET ===== */
:root {
    --olive-dark: #556B2F;
    --olive: #6B7F3B;
    --olive-light: #7a8b5c;
    --olive-lighter: #9aab7a;
    --olive-pale: #c5d4a8;
    --olive-bg: #e8eddf;
    --cream: #f5f2eb;
    --cream-light: #faf8f4;
    --white: #ffffff;
    --gold: #b8a67e;
    --gold-light: #d4c5a0;
    --text-dark: #3a3a2e;
    --text-medium: #5a5a4a;
    --text-light: #7a7a6a;
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-serif);
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== PETALS ===== */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -40px;
    border-radius: 50% 0 50% 0;
    opacity: 0.6;
    pointer-events: none;
    animation: petalFall linear infinite;
}

@keyframes petalFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0.7;
    }
    25% {
        transform: translateY(25vh) rotate(90deg) translateX(30px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-20px);
        opacity: 0.5;
    }
    75% {
        transform: translateY(75vh) rotate(270deg) translateX(25px);
        opacity: 0.4;
    }
    100% {
        transform: translateY(105vh) rotate(360deg) translateX(-10px);
        opacity: 0;
    }
}

/* ===== FLOATING AUDIO BUTTON ===== */
.audio-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--olive-light);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.2);
}

.audio-btn:hover {
    background: var(--olive-light);
    color: white;
    transform: scale(1.1);
}

.audio-btn:hover .audio-icon {
    stroke: white;
}

.audio-icon {
    width: 22px;
    height: 22px;
    stroke: var(--olive-dark);
    transition: stroke 0.3s ease;
}

.audio-icon.hidden {
    display: none;
}

.audio-btn.playing {
    animation: pulse-audio 2s infinite;
}

@keyframes pulse-audio {
    0%, 100% { box-shadow: 0 4px 15px rgba(85, 107, 47, 0.2); }
    50% { box-shadow: 0 4px 25px rgba(85, 107, 47, 0.5); }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ===== SECTION BASE ===== */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ===== SECTION 1: HERO ===== */
.hero-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--olive-bg) 50%, var(--cream-light) 100%);
    position: relative;
    padding: 40px 20px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(85, 107, 47, 0.08) 100%);
    pointer-events: none;
}

.hero-leaves {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-leaves-top {
    top: 0;
}

.hero-leaves-bottom {
    bottom: 0;
}

.hero-leaves svg {
    width: 100%;
    height: auto;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-subtitle-top {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--olive-light);
    margin-bottom: 25px;
}

.hero-photo-frame {
    width: 260px;
    height: 360px;
    margin: 0 auto 30px;
    border-radius: 130px 130px 20px 20px;
    overflow: hidden;
    border: 3px solid var(--olive-pale);
    box-shadow: 0 15px 50px rgba(85, 107, 47, 0.15);
    position: relative;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-names {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--olive-dark);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-names .amp {
    font-size: 2.5rem;
    color: var(--gold);
    margin: 0 5px;
    display: inline-block;
}

.hero-date-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--text-medium);
}

.line-deco {
    width: 50px;
    height: 1px;
    background: var(--olive-lighter);
}

.scroll-indicator {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--olive-light);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: float-down 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--olive-light);
}

@keyframes float-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===== SECTION 2: PARENTS ===== */
.parents-section {
    background: var(--white);
    padding: 80px 20px;
    position: relative;
}

.section-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(85, 107, 47, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(85, 107, 47, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.parents-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.leaf-divider {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.leaf-svg {
    width: 60px;
    height: 25px;
    opacity: 0.7;
}

.leaf-svg.small {
    width: 40px;
    height: 18px;
}

.section-verse {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 400px;
    margin: 20px auto 5px;
    line-height: 1.6;
}

.verse-ref {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.silhouette-container {
    margin: 20px auto 30px;
    width: 120px;
}

.silhouette-img {
    width: 100%;
    height: auto;
    opacity: 0.6;
    filter: sepia(30%) hue-rotate(40deg);
}

.parents-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.parents-col {
    flex: 1;
    max-width: 200px;
}

.parents-title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--olive-light);
    margin-bottom: 12px;
}

.parent-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-weight: 400;
}

.parents-divider {
    display: flex;
    align-items: center;
    padding-top: 10px;
}

.vertical-line {
    width: 2px;
    height: 60px;
}

.blessing-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--olive-dark);
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: center;
}

.invite-personal {
    text-align: center;
    margin: 20px 0 15px;
}

.witnesses-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--olive-light);
    margin-bottom: 12px;
}

.witness-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 400;
}

.couple-names-section {
    margin-top: 10px;
}

.couple-names-large {
    font-family: var(--font-script);
    font-size: 2.8rem;
    color: var(--olive-dark);
    font-weight: 400;
}

.couple-names-large .amp {
    font-size: 2rem;
    color: var(--gold);
    margin: 0 5px;
}

/* ===== SECTION 3: DATE & RINGS ===== */
.date-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--olive-bg) 100%);
    padding: 80px 20px;
}

.date-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.rings-container {
    margin-bottom: 20px;
}

.rings-img {
    width: 100px;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.date-photo-frame {
    width: 280px;
    height: 360px;
    margin: 0 auto 30px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--olive-pale);
    box-shadow: 0 15px 50px rgba(85, 107, 47, 0.15);
}

.date-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.save-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--olive-light);
    margin-bottom: 10px;
}

.wedding-date {
    font-family: var(--font-script);
    font-size: 2.4rem;
    color: var(--olive-dark);
    font-weight: 400;
    margin-bottom: 5px;
}

.wedding-year {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-medium);
    font-weight: 300;
}

/* ===== SECTION 4: COUNTDOWN ===== */
.countdown-section {
    background: var(--white);
    padding: 80px 20px;
}

.countdown-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.section-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--olive-dark);
    font-weight: 400;
    margin-bottom: 20px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--olive-bg) 0%, var(--cream) 100%);
    border-radius: 15px;
    padding: 18px 14px;
    min-width: 72px;
    border: 1px solid var(--olive-pale);
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.08);
}

.countdown-number {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 600;
    color: var(--olive-dark);
    line-height: 1;
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 6px;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.event-card {
    background: var(--cream-light);
    border: 1px solid var(--olive-pale);
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(85, 107, 47, 0.06);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-3px);
}

.event-icon {
    margin-bottom: 12px;
}

.event-svg {
    width: 50px;
    height: 50px;
    margin: 0 auto;
}

.event-title {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--olive-dark);
    font-weight: 400;
    margin-bottom: 8px;
}

.event-time {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.event-location {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.4;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 30px;
    background: var(--olive-light);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.map-btn:hover {
    background: var(--olive-dark);
    transform: scale(1.03);
}

.map-icon {
    width: 16px;
    height: 16px;
}

/* ===== SECTION 5: ROMANTIC ===== */
.romantic-section {
    background: linear-gradient(180deg, var(--olive-bg) 0%, var(--cream) 50%, var(--olive-bg) 100%);
    padding: 80px 20px;
}

.romantic-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.romantic-photo-frame {
    width: 300px;
    height: 400px;
    margin: 0 auto 30px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--olive-pale);
    box-shadow: 0 20px 60px rgba(85, 107, 47, 0.15);
    position: relative;
}

.romantic-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.romantic-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 350px;
    margin: 0 auto;
}

/* ===== SECTION 6-7: ITINERARY ===== */
.itinerary-section {
    background: var(--white);
    padding: 80px 20px;
}

.itinerary-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.dresscode-card {
    background: var(--cream-light);
    border: 1px solid var(--olive-pale);
    border-radius: 18px;
    padding: 25px 20px;
    margin: 30px auto;
    max-width: 280px;
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.06);
}

.dresscode-icon {
    margin-bottom: 10px;
}

.dresscode-img {
    width: 60px;
    height: auto;
    margin: 0 auto;
    filter: sepia(20%) hue-rotate(40deg);
}

.dresscode-title {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--olive-dark);
    margin-bottom: 5px;
}

.dresscode-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-medium);
    font-style: italic;
}

/* Timeline */
.timeline {
    position: relative;
    margin-top: 40px;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--olive-pale), var(--olive-light), var(--olive-pale), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--olive-light);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 3px var(--olive-pale);
    z-index: 2;
}

.timeline-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--cream-light);
    border: 1px solid var(--olive-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-right: -10px;
}

.timeline-icon {
    width: 34px;
    height: 34px;
}

.timeline-info {
    text-align: left;
    flex: 1;
    max-width: 150px;
    position: relative;
    z-index: 1;
    margin-left: -10px;
}

.timeline-title {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--olive-dark);
    font-weight: 400;
    margin-bottom: 3px;
}

.timeline-time {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-medium);
    letter-spacing: 1px;
}

/* ===== SECTION 8: GIFTS ===== */
.gifts-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--olive-bg) 100%);
    padding: 80px 20px;
}

.gifts-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.gifts-photo-frame {
    width: 280px;
    height: 350px;
    margin: 0 auto 30px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--olive-pale);
    box-shadow: 0 15px 50px rgba(85, 107, 47, 0.15);
}

.gifts-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gift-icon-container {
    margin: 25px auto;
}

.gift-icon-svg {
    width: 70px;
    height: 70px;
    margin: 0 auto;
}

.gift-message {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 350px;
    margin: 0 auto;
}

/* ===== SECTION 9-10: RSVP ===== */
.rsvp-section {
    background: var(--white);
    padding: 80px 20px;
}

.rsvp-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.rsvp-photo-frame {
    width: 280px;
    height: 350px;
    margin: 0 auto 30px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--olive-pale);
    box-shadow: 0 15px 50px rgba(85, 107, 47, 0.15);
}

.rsvp-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.rsvp-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.whatsapp-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 40px;
    background: #25D366;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    min-width: 240px;
    justify-content: center;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
}

/* ===== FOOTER ===== */
.footer-section {
    background: linear-gradient(180deg, var(--olive-bg) 0%, var(--olive-pale) 100%);
    padding: 60px 20px 40px;
    text-align: center;
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
}

.monogram-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.monogram-letter {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--olive-dark);
    line-height: 1;
}

.monogram-amp {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}

.footer-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 8px;
    font-style: italic;
}

.footer-date {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== SECTION 0: ENVELOPE INTRO ===== */
.envelope-section {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--cream-light) 0%, var(--olive-bg) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    position: relative;
}

.envelope-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.envelope-closed {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: envelopePulse 2s ease-in-out infinite;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.envelope-img {
    width: 320px;
    max-width: 85vw;
    filter: drop-shadow(0 15px 40px rgba(85, 107, 47, 0.2));
}

.envelope-initials {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.env-letter {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--olive-dark);
    opacity: 0.7;
}

.env-amp {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--gold);
    opacity: 0.7;
}

.envelope-tap-text {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 20px;
    letter-spacing: 2px;
    animation: tapFade 2s ease-in-out infinite;
}

.envelope-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.envelope-open.hidden {
    display: none;
}

.envelope-img-open {
    width: 340px;
    max-width: 90vw;
    filter: drop-shadow(0 15px 40px rgba(85, 107, 47, 0.2));
    animation: envelopeFlap 0.8s ease-out;
}

.envelope-letter {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    max-width: 55%;
    animation: letterRise 1s ease-out 0.4s both;
}

.letter-content {
    background: linear-gradient(to bottom, var(--cream-light), var(--white));
    border: 1px solid var(--olive-pale);
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.leaf-svg {
    width: 60px;
    height: 20px;
    opacity: 0.5;
}

.letter-guest-name {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--olive-dark);
    margin: 8px 0;
    line-height: 1.3;
}

.letter-invite-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.75rem;
    color: var(--text-medium);
    margin-bottom: 8px;
    line-height: 1.5;
}

.letter-guest-pass {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--olive-dark);
    background: linear-gradient(135deg, var(--olive-bg) 0%, var(--cream) 100%);
    border: 1px solid var(--olive-pale);
    border-radius: 15px;
    padding: 5px 14px;
    margin-bottom: 5px;
}

.letter-ornament {
    display: flex;
    justify-content: center;
}

.envelope-scroll-hint {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-family: var(--font-serif);
    font-size: 0.8rem;
    letter-spacing: 1px;
    animation: bounceDown 1.5s ease-in-out infinite;
}

.envelope-scroll-hint.hidden {
    display: none;
}

@keyframes envelopePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes tapFade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes envelopeFlap {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes letterRise {
    0% { opacity: 0; transform: translateX(-50%) translateY(40px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== SCROLL-DRIVEN ANIMATIONS ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.from-left {
    transform: translateX(-60px);
}

.scroll-animate.from-right {
    transform: translateX(60px);
}

.scroll-animate.from-scale {
    transform: scale(0.85);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.scroll-animate.delay-1 { transition-delay: 0.1s; }
.scroll-animate.delay-2 { transition-delay: 0.2s; }
.scroll-animate.delay-3 { transition-delay: 0.3s; }
.scroll-animate.delay-4 { transition-delay: 0.4s; }

/* Photo frames parallax-like scroll effect */
.photo-frame-scroll {
    transition: transform 0.3s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .envelope-img {
        width: 280px;
    }
    .envelope-img-open {
        width: 300px;
    }
    .envelope-letter {
        width: 175px;
    }
    .letter-content {
        padding: 18px 12px;
    }
    .letter-guest-name {
        font-size: 1.2rem;
    }
    .letter-invite-text {
        font-size: 0.7rem;
    }

    .hero-names {
        font-size: 2.8rem;
    }

    .hero-photo-frame {
        width: 220px;
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .couple-names-large {
        font-size: 2.2rem;
    }

    .countdown-timer {
        gap: 10px;
    }

    .countdown-item {
        min-width: 62px;
        padding: 14px 10px;
    }

    .countdown-number {
        font-size: 1.6rem;
    }

    .parents-grid {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .parents-divider {
        transform: rotate(90deg);
    }

    .vertical-line {
        height: 40px;
    }

    .date-photo-frame,
    .romantic-photo-frame,
    .gifts-photo-frame,
    .rsvp-photo-frame {
        width: 250px;
        height: 320px;
    }

    .event-card {
        padding: 25px 20px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        justify-content: flex-start;
        padding-left: 55px;
    }

    .timeline-dot {
        left: 30px;
    }

    .wedding-date {
        font-size: 2rem;
    }
}

@media (max-width: 380px) {
    .envelope-img {
        width: 240px;
    }
    .envelope-img-open {
        width: 260px;
    }
    .envelope-letter {
        width: 150px;
    }
    .letter-content {
        padding: 14px 10px;
    }
    .letter-guest-name {
        font-size: 1rem;
    }

    .hero-names {
        font-size: 2.2rem;
    }

    .hero-photo-frame {
        width: 180px;
        height: 260px;
    }

    .countdown-item {
        min-width: 55px;
        padding: 12px 8px;
    }

    .countdown-number {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* ===== EXTRA ANIMATIONS ===== */
@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.hero-photo-frame {
    animation: fadeInScale 1.2s ease-out;
}

.monogram-logo {
    animation: fadeInScale 1s ease-out;
}
