:root {
    --primary-color: #1a1a1a; /* Midnight Charcoal */
    --accent-color: #c5a059;  /* Champagne Gold */
    --bg-color: #faf7f2;      /* Cream Silk */
    --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);
}

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

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

.premium-initials {
    font-size: 6rem; /* Significantly Larger */
    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;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh; 
    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 top; 
    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; /* Premium Flat Look */
    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; }

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .premium-initials { font-size: 4rem; }
    .hero { background-size: 150% auto; background-position: center 15%; }
    .person h1 { font-size: 3.5rem; }
    .verse-content blockquote { font-size: 1.8rem; }
}

.hidden { opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
