:root {
    --primary-color: #5c4033;
    --bg-color: #f0e8db;
    --text-color: #4e342e;
    --text-color-light: #f0e8db;
    --accent-color: #d4af37;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--bg-color); overflow-x: hidden; margin: 0; font-size: 18px; /* Increased base font size */ }

/* --- SPLASH SCREEN --- */
.splash-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    display: flex; justify-content: center; align-items: center;
    z-index: 100;
    transition: opacity 1s ease-out, visibility 1s;
}
.splash-frame {
    width: 90%; height: 90%;
    max-width: 450px; max-height: 800px;
    border: 1px solid var(--accent-color);
    border-radius: 250px 250px 0 0;
    display: flex; justify-content: center; align-items: center;
    background: url('img/background.webp') no-repeat top center;
    background-size: cover;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.splash-frame::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(240, 232, 219, 0.8); border-radius: 250px 250px 0 0; }
.splash-content { position: relative; z-index: 2; text-align: center; opacity: 0; animation: fadeIn 1s ease-in-out 0.5s forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.splash-title { font-family: var(--font-heading); font-size: clamp(2.8rem, 10vw, 3.8rem); color: var(--text-color); font-weight: 700; }
.cta-text-wrapper { margin-top: 2rem; }
.cta-text { font-family: var(--font-heading); font-style: italic; font-size: 1.4rem; }
.cta-button { font-family: var(--font-body); font-size: 1.1rem; letter-spacing: 3px; background: none; border: none; border-bottom: 1px solid var(--text-color); cursor: pointer; padding: 5px 0; color: var(--text-color); }

/* --- MAIN CONTENT & SHARED STYLES --- */
.main-content { display: none; opacity: 0; transition: opacity 1s ease-in; }
.background-photo { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: url('img/background.webp') no-repeat top center; background-size: cover; background-attachment: fixed; z-index: -1; }
.content-section { position: relative; padding: 6rem 0; }
.section-title { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 3rem; }

/* --- BACKGROUNDS & TEXT COLORS --- */
.bg-dark-transparent { background-color: rgba(92, 64, 51, 0.9); color: var(--text-color-light); }
.bg-light-transparent { background-color: rgba(240, 232, 219, 0.9); color: var(--text-color); }
.bg-dark-transparent .section-title, .bg-dark-transparent .location-name, .bg-dark-transparent .event-time, .bg-dark-transparent .timeline-time, .bg-dark-transparent .footer-title { color: var(--accent-color); }
.bg-light-transparent .section-title, .bg-light-transparent .location-name, .bg-light-transparent .event-time, .bg-light-transparent .timeline-time, .bg-light-transparent .footer-title { color: var(--primary-color); }
.bg-dark-transparent .address-text, .bg-dark-transparent .timeline-event { color: var(--text-color-light); }
.bg-light-transparent .address-text, .bg-light-transparent .timeline-event, .bg-light-transparent .personal-message, .bg-light-transparent .rsvp-text { color: var(--text-color); }

/* --- HERO SCROLL SECTION --- */
.hero-scroll-section { height: 100vh; display: flex; flex-direction: column; justify-content: center; color: var(--text-color-light); padding: 0; background: none; }
.hero-content-wrapper {
    width: 100%;
    height: 100%; /* Make the wrapper fill the full height */
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, rgba(92, 64, 51, 0.2) 0%, rgba(92, 64, 51, 0.9) 50%, rgba(92, 64, 51, 0.2) 100%);
    
    /* --- THESE ARE THE KEY LINES TO CENTER THE TEXT --- */
    display: flex;             /* Turns on flexbox layout */
    flex-direction: column;    /* Stacks the text elements vertically */
    justify-content: center;   /* Centers the content block vertically */
    align-items: center;       /* Centers the content block horizontally */
}
.hero-intro-text { font-family: var(--font-heading); font-style: italic; font-size: 1.7rem; }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.8rem, 8vw, 4.5rem); color: var(--accent-color); line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-subtitle { font-family: var(--font-body); font-size: 1.2rem; max-width: 600px; margin: 1rem auto 0; font-style: italic; }
.hero-date { font-family: var(--font-heading); font-size: 2.8rem; color: var(--accent-color); text-shadow: 0 2px 10px rgba(0,0,0,0.5); letter-spacing: 2px; margin-top: 2rem; }

/* --- MESSAGE & INFO SECTIONS --- */
.personal-message { font-family: var(--font-heading); font-style: italic; font-size: 2rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.btn-custom-map { background-color: var(--accent-color); color: var(--text-color); border: 1px solid var(--accent-color); border-radius: 30px; padding: 8px 20px; font-family: var(--font-body); font-weight: bold; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s ease; text-decoration: none; }
.btn-custom-map:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-custom-map.btn-outline { background-color: transparent; color: var(--accent-color); border-color: var(--accent-color); }
.btn-custom-map.btn-outline:hover { background-color: var(--accent-color); color: var(--text-color); }
.rsvp-text { font-size: 1.2rem; max-width: 500px; margin: 0 auto 1.5rem; }
.btn-whatsapp { background-color: #25D366; border-color: #25D366; color: #fff; }
.btn-whatsapp:hover { background-color: #128C7E; border-color: #128C7E; color: #fff; }

/* --- TIMELINE, COUNTDOWN, GALLERY --- */
.timeline { position: relative; max-width: 600px; margin: 2rem auto; }
.timeline-item { padding-left: 70px; position: relative; margin-bottom: 2.5rem; text-align: left; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: 21px; top: 5px; bottom: -2.5rem; width: 1px; background: var(--accent-color); }
.timeline-item:last-child::before { display: none; }
.timeline-icon { position: absolute; left: 0; top: -5px; width: 44px; height: 44px; font-size: 2rem; color: var(--accent-color); }
.timeline-time { font-family: var(--font-heading); font-size: 1.4rem; font-weight: bold; }
.timeline-event { font-size: 1.2rem; }
.timer-box span { display: block; font-size: 3.8rem; font-weight: 500; font-family: var(--font-heading); line-height: 1; }
.timer-box div { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 0.5rem; }
.splide { padding: 0; }
.splide__slide { cursor: pointer; padding: 0 0.75rem; }
.splide__slide img { width: 100%; height: auto; object-fit: contain; border-radius: 8px; aspect-ratio: 4 / 5; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.splide__slide:hover img { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.splide__arrow { background: var(--accent-color); }
.splide__arrow svg { fill: var(--text-color); }

/* --- FOOTER & UI BUTTONS --- */
.heart-icon { font-size: 2.8rem; color: var(--accent-color); margin-bottom: 1rem; }
.ui-button {
    position: fixed; bottom: 20px; right: 20px; z-index: 99;
    background-color: var(--primary-color); color: var(--text-color-light);
    border: 1px solid var(--text-color-light); border-radius: 50%;
    width: 45px; height: 45px; font-size: 1rem; cursor: pointer;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    display: flex; justify-content: center; align-items: center; text-decoration: none;
}
.ui-button.visible { opacity: 0.8; visibility: visible; transform: translateY(0); }
.ui-button:hover { opacity: 1; transform: scale(1.1); }
#musicToggleBtn { bottom: 75px; }

/* --- SWOOP DIVIDERS --- */
.swoop-divider { overflow: hidden; position: relative; line-height: 0; }
.swoop-divider svg { display: block; width: 100%; height: 100px; }
.swoop-divider.top { transform: rotate(180deg); }
.swoop-divider.bg-dark-transparent svg path { fill: var(--primary-color); }
.swoop-divider.bg-light-transparent svg path { fill: var(--bg-color); }

/* --- MODAL --- */
.modal-header { border-bottom-color: #ddd; }
.modal-content { border: none; border-radius: 8px; }
.modal-title { font-family: var(--font-heading); color: var(--primary-color); }