/* Minimalist Multi-Section Styles */
:root {
    --text-primary: #5E0B15; /* Deep Burgundy/Maroon */
    --text-secondary: #4A3A3A; /* Warm dark gray/brown */
    --text-accent: #C5A059; /* Soft Gold */
    --bg-light: #FAF9F6;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-bilderberg-alt: 'Cormorant Garamond', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--bg-light);
}

/* Background Layers */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    filter: blur(8px);
    transform: scale(1.05); /* Prevent blur edge */
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.6); /* Lighter wash so text is readable but BG is visible */
    z-index: -2;
}

/* Layout */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    position: relative;
    z-index: 1;
}

/* Specific Sections */
.hero-section {
    background: transparent;
}

.details-section, .gallery-section, .rsvp-section {
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.itinerary-section {
    background: transparent; /* Lets the fixed blurred background show through */
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.narrow-card {
    max-width: 600px;
}

/* Typography */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--text-accent);
    margin-bottom: 60px;
    text-align: center;
}

.header { margin-bottom: 40px; }

.bismillah {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--text-accent);
    margin-bottom: 15px;
}

.intro {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 300;
}

.names-wrapper { margin-bottom: 40px; }

.couple-name {
    font-family: var(--font-bilderberg-alt);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.ampersand {
    font-family: var(--font-bilderberg-alt);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-accent);
    margin: 5px 0;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--text-accent);
    margin-bottom: 15px;
}

.primary-detail {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.secondary-detail {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    border: 1px solid var(--text-accent);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: var(--text-accent);
    color: #FFF;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Details Grid */
.details-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.detail-block {
    flex: 1;
}

/* Gallery Grid */
.gallery-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    width: 100%;
}

.gallery-item {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Timeline / Itinerary */
.timeline {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 20px;
    bottom: -40px;
    width: 1px;
    background: rgba(154, 138, 118, 0.3);
}

.timeline-item:last-child::before {
    display: none;
}

.time {
    font-family: var(--font-heading);
    color: var(--text-accent);
    font-size: 0.9rem;
    width: 80px;
    padding-top: 3px;
}

.event-info {
    padding-left: 30px;
}

.event-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.event-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}



/* Footer */
.footer {
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 300;
}

.hashtag {
    margin-top: 10px;
    font-family: var(--font-heading);
    font-style: normal !important;
    letter-spacing: 2px;
    color: var(--text-accent) !important;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 900px) {
    .details-grid {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }

    .glass-card {
        padding: 40px 20px;
    }

    .couple-name {
        font-size: 2.8rem;
    }

    .gallery-grid {
        flex-direction: column;
    }
    
    .gallery-item[style] {
        transform: none !important; /* Remove stagger effect on mobile */
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .time {
        width: auto;
        padding-left: 40px;
    }
    
    .event-info {
        padding-left: 40px;
    }
    
    .timeline-item::before {
        left: 10px;
        top: 25px;
    }
}

@media (max-width: 480px) {
    .couple-name {
        font-size: 2.2rem;
        word-wrap: break-word;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    .intro {
        font-size: 0.7rem;
    }
}
