:root {
    --primary-color: #1a1a1a; 
    --accent-color: #c5a059;  
    --bg-color: #faf7f2;      
    --card-bg: #ffffff;
    --text-color: #333333;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: normal;
    letter-spacing: 1px;
}

/* --- Premium Large Preloader --- */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 1s;
}

#preloader.fade-out { opacity: 0; visibility: hidden; }

.loader-content { text-align: center; }

.premium-initials {
    font-size: 6rem; 
    color: #fff;
    margin: 0;
    letter-spacing: 12px;
    font-weight: normal;
    animation: textTracking 2s ease-out forwards;
}

@keyframes textTracking {
    from { letter-spacing: 25px; opacity: 0; }
    to { letter-spacing: 12px; opacity: 1; }
}

.champagne-and { color: var(--accent-color); font-style: italic; }

.loading-bar-container {
    width: 250px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.loading-line {
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    position: absolute;
    animation: loadingLine 1.8s ease-in-out forwards;
}

@keyframes loadingLine { to { width: 100%; } }

.loading-text {
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 4px;
    margin-top: 10px;
}

/* --- Landing Section (Screen 1) --- */
.landing-section {
    height: 100vh;
    height: 100dvh; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    position: relative;
    z-index: 10;
}

.landing-content { text-align: center; }
.static-logo { animation: none; letter-spacing: 12px; } 

.landing-date {
    color: var(--accent-color);
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 1.1rem;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 2.2s forwards; 
}

/* --- Premium Scroll Indicators --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards;
    z-index: 5;
}

.hero-scroll {
    bottom: 85px; 
    animation: none; 
}

.click-discover-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    animation: fadeIn 1s ease 1.5s forwards, gentlePulse 2s ease-in-out 3.5s infinite;
}

.click-discover-btn:hover p,
.click-discover-btn:focus-visible p {
    color: #ffffff;
}

.click-discover-btn:hover .scroll-line,
.click-discover-btn:focus-visible .scroll-line {
    background: rgba(255, 255, 255, 0.4);
}

.click-discover-btn:focus-visible {
    outline: 1px solid var(--accent-color);
    outline-offset: 6px;
}

@keyframes gentlePulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.scroll-indicator p {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    animation: dropLine 2s infinite ease-in-out;
}

@keyframes dropLine {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

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

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

/* --- Hero Section (Screen 2) --- */
.hero {
    min-height: 100vh; 
    min-height: 100dvh; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; 
    background-color: var(--primary-color); 
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('couple.jpg');
    background-size: cover;
    background-position: center 30%; 
    background-repeat: no-repeat;
    padding: 60px 20px 100px 20px; 
    box-sizing: border-box;
}

.custom-shape-divider-bottom {
    position: absolute;
    bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: rotate(180deg);
}
.custom-shape-divider-bottom svg { width: calc(100% + 1.3px); height: 80px; }
.custom-shape-divider-bottom .shape-fill { fill: var(--bg-color); }

.hero h1, .hero h3, .person .full-name, .person .parents, .person .address {
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.and-symbol h2, .hero .date { color: var(--accent-color); }
.hero h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px; opacity: 0.9; }

.couple-section { display: flex; flex-direction: column; gap: 30px; margin: 40px 0; }
@media (min-width: 768px) { .couple-section { flex-direction: row; align-items: center; justify-content: center; gap: 60px; } }

.person h1 { font-size: 5rem; margin: 0; }
.person .full-name { font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; margin: 10px 0; }
.person .parents, .person .address { font-size: 0.85rem; opacity: 0.8; margin: 2px 0; }
.and-symbol h2 { font-size: 4rem; margin: 0; }
.hero .date { font-size: 1.5rem; letter-spacing: 5px; text-transform: uppercase; font-weight: bold; margin-top: 40px; }

/* --- Countdown --- */
.countdown-section { padding: 100px 20px; background-color: var(--bg-color); }
.section-title { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 40px; }

.countdown-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.time-box {
    background: var(--primary-color);
    color: #fff;
    padding: 30px;
    border-radius: 4px;
    min-width: 100px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.time-box span { font-size: 3.5rem; font-family: 'Playfair Display', serif; display: block; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 10px; padding-bottom: 10px; }
.time-box p { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; margin: 0; color: var(--accent-color); }

/* --- Verse --- */
.verse-section { padding: 80px 20px; background-color: #fff; }
.verse-content {
    max-width: 800px; margin: 0 auto; padding: 50px 20px; border-top: 1px solid var(--accent-color); border-bottom: 1px solid var(--accent-color);
}
.verse-content blockquote { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-style: italic; color: var(--primary-color); margin: 0 0 20px 0; line-height: 1.3; }
.verse-reference { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 4px; color: var(--accent-color); font-weight: 700; }

/* --- Event Cards --- */
.details-section { padding: 100px 20px; background-color: #fff; }
.details-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.detail-card {
    background: var(--card-bg);
    width: 360px;
    padding: 50px 40px;
    border: 1px solid #f0f0f0;
    transition: all 0.5s ease;
    text-align: center;
}
.detail-card:hover { border-color: var(--accent-color); transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.detail-card h3 { font-size: 2rem; color: var(--primary-color); margin-bottom: 30px; position: relative; padding-bottom: 15px; }
.detail-card h3::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 2px; background: var(--accent-color); }

.icon-line { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 15px 0; color: #666; font-size: 0.95rem; }
.icon-line svg { width: 20px; height: 20px; stroke: var(--accent-color); flex-shrink: 0; }
.icon-line.align-start { align-items: flex-start; }

.button-group { display: flex; gap: 15px; margin-top: 40px; justify-content: center; }
.action-button {
    padding: 12px 25px;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0; 
    transition: all 0.3s ease;
}

.map-btn { border: 1px solid var(--primary-color); color: var(--primary-color); }
.map-btn:hover { background: var(--primary-color); color: #fff; }

.cal-btn { border: 1px solid var(--accent-color); color: var(--accent-color); }
.cal-btn:hover { background: var(--accent-color); color: #fff; }

/* --- Parents Tribute Section --- */
.parents-tribute-section {
    padding: 80px 20px 120px;
    background-color: var(--bg-color);
}

.tribute-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 60px 40px;
    border: 1px solid var(--accent-color);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.tribute-container::before, .tribute-container::after {
    content: '✧';
    position: absolute;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.tribute-container::before { top: 15px; left: 20px; }
.tribute-container::after { bottom: 15px; right: 20px; }

.tribute-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--primary-color);
    margin-bottom: 50px;
    padding: 0 20px;
}

.parents-names {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .parents-names {
        flex-direction: row;
        gap: 60px;
    }
}

.parents-group { text-align: center; }

.parents-title {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.parents-names-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text-color);
    font-weight: 600;
}

.parents-divider {
    width: 50px;
    height: 1px;
    background: var(--accent-color);
    opacity: 0.5;
}

.best-regards-section {
    text-align: center;
    margin-top: 0px;
}

.best-regards-names {
    margin-top: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 500;
}

@media (min-width: 768px) {
    .parents-divider {
        width: 1px;
        height: 50px;
    }
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .premium-initials { font-size: 4rem; }
    .hero { background-size: cover; background-position: center center; }
    
    /* NEW FIX: Creates a safe zone so the text never touches the absolute scroll indicator */
    .hero-content { padding-bottom: 100px; }
    
    /* Tightens vertical gaps to fit phone screens better */
    .couple-section { gap: 15px; margin: 20px 0; }
    .hero .date { margin-top: 15px; }
    
    .person h1 { font-size: 3.2rem; }
    .and-symbol h2 { font-size: 2.5rem; margin: 0; }
    
    .verse-content blockquote { font-size: 1.8rem; }
    .tribute-text { font-size: 1.2rem; padding: 0; }
    .tribute-container { padding: 40px 20px; }
    .scroll-indicator { bottom: 25px; } 
    .hero-scroll { bottom: 65px; }
}

/* --- Premium Animations --- */
.hidden { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1); 
}
.show { 
    opacity: 1; 
    transform: translateY(0); 
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* --- Background Music Toggle --- */
.music-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 9999;
    background: transparent;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 26px rgba(0,0,0,0.32);
}

.music-toggle:active {
    transform: scale(0.96);
}

.music-disc {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    animation: spin-disc 6s linear infinite;
    animation-play-state: paused;
}

.music-toggle.playing .music-disc {
    animation-play-state: running;
}

@keyframes spin-disc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-icon {
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.music-toggle.playing .icon-pause { opacity: 1; }
.music-toggle:not(.playing) .icon-play { opacity: 1; }

@media (max-width: 768px) {
    .music-toggle {
        width: 48px;
        height: 48px;
        bottom: 18px;
        right: 18px;
    }
    .music-icon { width: 15px; height: 15px; }
}
