/* ================= Base & Variables (MOBILE FIRST) ================= */
:root {
    --text-light: #fdfdfd;
    --gold-accent: #c4a977;
    --nav-height: 70px;
    --font-heading: 'Marcellus', serif; 
    --font-body: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } 

body {
    font-family: var(--font-body);
    color: var(--text-light); 
    line-height: 1.6;
    background-color: #0f1112; 
    overflow-x: hidden;
}

/* --- Global Background Setup --- */
.global-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url('images08.webp'); 
    background-size: cover; background-position: center; z-index: -2;
}
.global-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 17, 18, 0.75); backdrop-filter: blur(10px); z-index: -1;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; letter-spacing: 2px;
}
a { text-decoration: none; color: inherit; }
.text-center { text-align: center; }

/* Reusable Containers */
.container { width: 90%; max-width: 1000px; margin: 0 auto; padding: 60px 0; }
.content-section { position: relative; z-index: 1; background: transparent; }

/* ================= Navigation (Transparent, Hamburger Only) ================= */
nav {
    position: fixed; top: 0; width: 100%; height: var(--nav-height);
    background: transparent; 
    display: flex; justify-content: flex-end; align-items: center; 
    padding: 0 5%; z-index: 1000; border-bottom: none; 
}
.nav-brand { flex-grow: 1; } 
.nav-links { display: none; } 

/* Hamburger and its 'X' Close Animation */
.hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger span { width: 25px; height: 2px; background-color: var(--text-light); transition: 0.4s ease-in-out; transform-origin: center; }

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Dropdown Menu */
.nav-links.active {
    display: flex; position: absolute; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(10, 11, 12, 0.7); backdrop-filter: blur(15px);
    flex-direction: column; text-align: center; justify-content: center; gap: 35px;
    list-style: none; margin: 0; padding: 0; z-index: 1000;
}
.nav-links a { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; }
.nav-links a:hover { color: var(--gold-accent); }

/* Music Toggle Button styling */
.music-btn {
    background: transparent; border: 1px solid var(--gold-accent); color: var(--text-light);
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
    padding: 8px 18px; border-radius: 30px; cursor: pointer;
    font-family: var(--font-body); transition: 0.3s; margin: 0 auto;
}
.music-btn:hover { background: var(--gold-accent); color: #000; }

/* ================= 1. Hero Section ================= */
#hero {
    height: 100dvh; position: relative; 
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding-top: calc(var(--nav-height) + 8vh);
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images08.webp'); background-size: cover; background-position: center; z-index: -1;
}
.hero-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4);
}

.hero-content { position: relative; z-index: 2; text-shadow: 2px 2px 10px rgba(0,0,0,0.6); padding: 0 20px; text-align: center;}
.hero-content .subtitle { font-size: 0.75rem; letter-spacing: 4px; margin-bottom: 8px; line-height: 1.2; }
.hero-content .title { font-size: 1.8rem; margin-bottom: 8px; letter-spacing: 2px; line-height: 1.1; } 
.hero-content .date { font-size: 0.85rem; letter-spacing: 3px; font-weight: 300; line-height: 1.2; }

/* Clean White "Let's Open" Button */
.open-invitation-btn {
    position: absolute; bottom: 10%; z-index: 10;
    padding: 14px 30px; font-size: 0.85rem; letter-spacing: 2px;
    background-color: #ffffff; color: #000;
    border: none; border-radius: 4px; cursor: pointer;
    text-transform: uppercase; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: 0.3s; 
    font-family: var(--font-body);
}
.open-invitation-btn:hover { background-color: #e0e0e0; }

/* Base Scroll Indicator Styles */
.scroll-indicator {
    position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; z-index: 2; cursor: pointer;
    animation: bounce 2s infinite ease-in-out; text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}
.scroll-indicator .line { width: 1px; height: 40px; background: var(--text-light); margin-top: 10px; }
.scroll-indicator .arrow {
    width: 8px; height: 8px; border-bottom: 1px solid var(--text-light);
    border-right: 1px solid var(--text-light); transform: rotate(45deg); margin-top: -3px;
}

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

/* ================= 2. Intro Animated Sticky Scroll ================= */
.sticky-container { height: 220vh; position: relative; background-color: #000; }
.sticky-content { position: sticky; top: 0; height: 100dvh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.intro-canvas { width: 100%; height: 100%; position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.intro-main-img { width: 100%; height: 100dvh; object-fit: cover; transform-origin: center center; will-change: transform; }
.intro-dark-fade {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%); pointer-events: none;
}

.intro-greeting {
    position: absolute; z-index: 20; width: 90%; max-width: 600px;
    text-align: center; background: transparent; 
    padding: 0 20px; pointer-events: none; 
    top: calc(var(--nav-height) + 8vh); 
    will-change: opacity;
}
.intro-greeting p { 
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 300; 
    text-transform: uppercase; letter-spacing: 3px; line-height: 2; 
    text-shadow: 1px 1px 8px rgba(0,0,0,0.8);
}
.intro-separator {
    width: 40px; height: 1px; background-color: var(--text-light);
    margin: 20px auto 0 auto; opacity: 0.5;
}

.intro-text {
    position: absolute; bottom: 12%; width: 85%; max-width: 320px; 
    opacity: 0; text-shadow: 1px 1px 10px rgba(0,0,0,0.8); z-index: 10;
}
.text-left { left: 5%; text-align: left; right: auto; }
.text-right { right: 5%; text-align: right; left: auto; }

.intro-text h2 { font-size: 0.9rem; color: var(--gold-accent); margin-bottom: 5px; }
.intro-text h3 { font-size: 1.6rem; margin-bottom: 8px; line-height: 1.2; }
.intro-text p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 20px; line-height: 1.4; }
.ig-btn {
    display: inline-block; font-size: 0.75rem; border: 1px solid var(--text-light);
    padding: 8px 18px; border-radius: 30px; transition: 0.3s;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); pointer-events: auto;
}
.ig-btn:hover { background: var(--text-light); color: #000; }

/* ================= 3. Journey ================= */
.journey-wrapper { display: flex; flex-direction: column; gap: 30px; align-items: center; }
.journey-text h2 { font-size: 1.6rem; margin-bottom: 25px; text-align: center; color: var(--gold-accent);}
.journey-text p { margin-bottom: 15px; text-align: center; font-size: 0.95rem; font-weight: 300;}
.journey-image img { width: 100%; height: auto; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* ================= 4. The Event ================= */
.event-header { text-align: center; margin-bottom: 40px; }
.event-header h3 { font-size: 1.8rem; margin-bottom: 10px; color: var(--gold-accent); }
.event-date, .event-place { font-size: 0.95rem; margin-bottom: 5px; font-weight: 300; }
.event-subtitle { margin-top: 25px; font-style: italic; font-weight: 300; opacity: 0.8; font-size: 0.9rem; max-width: 500px; margin-inline: auto; padding: 0 10px;}

.event-actions, .footer-actions { margin-top: 25px; display: flex; flex-direction: column; gap: 15px; align-items: center;}
.footer-actions { margin-bottom: 30px; }
.btn { width: 100%; max-width: 280px; text-align: center; padding: 14px 20px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; transition: 0.3s; cursor: pointer;}
.btn-outline { border: 1px solid var(--text-light); }
.btn-outline:hover { background: var(--text-light); color: #000; }
.btn-filled { background: var(--gold-accent); color: #fff; border: 1px solid var(--gold-accent); }
.btn-filled:hover { background: #b09565; }

.whatsapp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }

.timeline { display: flex; flex-direction: column; gap: 30px; padding: 0 10px; max-width: 500px; margin: 0 auto;}
.timeline-item { display: flex; gap: 15px; align-items: flex-start; }
.timeline-icon { width: 35px; height: 35px; flex-shrink: 0; color: var(--gold-accent); }
.timeline-content h4 { font-size: 1.1rem; margin-bottom: 5px; letter-spacing: 1px;}
.timeline-content p { font-size: 0.9rem; font-weight: 300; }
.timeline-content span { font-size: 0.8rem; opacity: 0.6; }

/* ================= 5. FAQ ================= */
#faq h2 { font-size: 1.6rem; margin-bottom: 30px; color: var(--gold-accent);}
.faq-list { max-width: 700px; margin: 0 auto;}
details { border-bottom: 1px solid rgba(255,255,255,0.2); padding: 15px 0; }
summary { font-family: var(--font-heading); font-size: 1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; color: var(--gold-accent); transition: 0.3s;}
details[open] summary::after { content: '−'; }
.faq-content { padding-top: 15px; font-weight: 300; color: #ddd; line-height: 1.6; font-size: 0.9rem;}

/* ================= 6. RSVP ================= */
#rsvp h2 { margin-bottom: 15px; color: var(--gold-accent); line-height: 1.4;}
.rsvp-desc { margin: 0 auto 30px auto; font-weight: 300; font-size: 0.9rem; max-width: 600px;}
.form-container { 
    width: 100%; max-width: 640px; margin: 0 auto; height: 950px; 
    border-radius: 12px; background: rgba(255,255,255,0.9); 
    position: relative; z-index: 10;
}
.form-container iframe { width: 100%; height: 100%; pointer-events: auto; }

/* ================= 7. Gallery Carousel ================= */
#gallery { padding-bottom: 0; } 
#gallery h2 { margin-bottom: 40px; }
.carousel-container { position: relative; width: 100%; display: flex; align-items: center; overflow: hidden;}
.carousel-track { 
    display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; scrollbar-width: none; width: 100%;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img {
    flex: 0 0 100%; width: 100%; max-width: 450px; height: auto; aspect-ratio: 3/4; object-fit: cover;
    scroll-snap-align: center; border-radius: 0; display: block; margin: 0 auto;
}

.carousel-nav {
    background: rgba(0,0,0,0.15); color: rgba(255,255,255,0.6); border: none;
    cursor: pointer; padding: 10px; position: absolute; z-index: 10; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; transition: 0.3s;
}
.carousel-nav:hover { background: rgba(0,0,0,0.4); color: #fff;}
.carousel-nav svg { width: 22px; height: 22px; }
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

/* ================= 8. Wedding Gift ================= */
#gift h2 { font-size: 1.6rem; margin-bottom: 15px; color: var(--gold-accent); }
.gift-desc { margin: 0 auto 30px auto; font-weight: 300; font-size: 0.9rem; max-width: 500px;}
.gift-cards { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.gift-card { 
    display: flex; flex-direction: column; align-items: center; text-align: center;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; 
    padding: 25px 15px; width: 100%; max-width: 350px; 
    background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
}
.bank-name { font-size: 0.75rem; opacity: 0.6; margin-bottom: 5px; text-transform: uppercase;}
.acc-name { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 15px; letter-spacing: 1px;}
.acc-num-wrapper { display: flex; align-items: center; justify-content: center; gap: 15px; background: rgba(255,255,255,0.05); padding: 10px 20px; border-radius: 30px; max-width: 100%; box-sizing: border-box;}
.acc-num { font-size: 1.1rem; font-weight: bold; letter-spacing: 2px; color: var(--gold-accent);}
.copy-btn { background: none; border: none; color: var(--text-light); cursor: pointer; width: 20px; min-width: 20px; height: 20px; flex-shrink: 0; opacity: 0.8; transition: 0.3s; display: flex; align-items: center; justify-content: center;}
.copy-btn:hover { opacity: 1; transform: scale(1.1); color: var(--gold-accent); }

/* ================= 9. Footer ================= */
.closing-footer {
    background: rgba(10, 11, 12, 0.85); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.05); position: relative; z-index: 1;
}
.closing-footer .container { padding: 60px 0 20px 0; }
.closing-footer h2 { font-size: 1.5rem; margin-bottom: 15px; line-height: 1.5; letter-spacing: 2px; color: var(--gold-accent); }
.closing-footer p { margin-bottom: 20px; font-weight: 300; opacity: 0.9; font-size: 0.9rem; padding: 0 10px;}

.footer-credit {
    text-align: center; padding: 15px; font-size: 0.5rem; 
    text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.4;
}

/* ================= DESKTOP SCALING (@media min-width: 768px) ================= */
@media (min-width: 768px) {
    .container { padding: 100px 0; }
    
    #hero { padding-top: calc(var(--nav-height) + 12vh); }
    .hero-content .subtitle { font-size: 0.9rem; margin-bottom: 15px; }
    .hero-content .title { font-size: 2.8rem; margin-bottom: 15px; letter-spacing: 4px; }
    .hero-content .date { font-size: 1rem; }
    
    .intro-greeting p { font-size: 1rem; letter-spacing: 4px; }
    
    .intro-text { width: 90%; max-width: 450px; bottom: 15%; }
    .intro-text h3 { font-size: 2.2rem; }
    .intro-text p { font-size: 1rem; }
    
    .journey-wrapper { flex-direction: row; text-align: left; gap: 60px; }
    .journey-text { flex: 1; text-align: left; }
    .journey-text p { text-align: left; margin: 0 0 15px 0; font-size: 1.1rem;}
    .journey-image { flex: 1; }
    
    .event-actions, .footer-actions { flex-direction: row; gap: 20px; justify-content: center; }
    .btn { max-width: max-content; padding: 12px 30px; font-size: 0.9rem; }
    .timeline { align-items: flex-start; margin: 0 auto; max-width: 500px; }
    .timeline-item { width: 100%; justify-content: flex-start; }
    
    .carousel-container { max-width: 100%; padding: 0; margin: 0 auto; }
    .carousel-track { gap: 0; justify-content: center; }
    .carousel-track img { flex: 0 0 33.333%; width: 33.333%; max-width: none; border-radius: 0; }
}