/* =============================================================
   WEDDING APP — REDESIGN: DARK BROWN & GOLD
   Bold Typography · Animated Glassmorphism · Zero Overflow
   ============================================================= */

/* 1. GOOGLE FONTS (Bold & Luxurious) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;900&family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,600&display=swap');

/* 2. DESIGN TOKENS (Dark Brown & Gold) */
:root {
    /* Colors */
    --bg-dark: #120A07;
    --bg-brown: #24150E;
    --bg-brown-light: #3A2318;
    
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #997A15;
    
    --text-main: #FFFFFF;
    --text-muted: #B3A39C;
    
    /* Glassmorphism */
    --glass-bg: rgba(36, 21, 14, 0.4);
    --glass-border: 1px solid rgba(212, 175, 55, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    --glass-blur: 16px;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing & Sizes */
    --max-width: 1200px;
    --nav-height: 80px;
}

/* 3. RESET & ANTI-SCROLL FIX */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* ABSOLUTELY PREVENTS SIDE SCROLLING */
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Background animated gradient */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.05), transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.08), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover { color: var(--gold-light); }

/* 4. TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    display: block;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1.5rem auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* 5. ANIMATED GLASSMORPHISM CARDS */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Inner gold glow animation */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transform: skewX(-20deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.2);
}

/* 6. BUTTONS (Bold & Glowing) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn--gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn--glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--gold);
    border: 1px solid var(--gold);
}
.btn--glass:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: scale(1.05);
}

/* 7. NAVIGATION (Compact) */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    background: rgba(18, 10, 7, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.navbar__inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar__logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
}
.navbar__links {
    display: flex;
    gap: 2rem;
}
.navbar__link {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-main);
}
.navbar__link:hover, .navbar__link.active {
    color: var(--gold);
}

/* Hamburger for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.hamburger__line {
    width: 30px; height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .navbar__links {
        position: fixed;
        top: var(--nav-height); right: -100%;
        width: 100%; height: calc(100vh - var(--nav-height));
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
    }
    .navbar__links.open { right: 0; }
}

/* 8. LAYOUT & SECTIONS (Compact & No Side Scroll) */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section { padding: 4rem 0; }

/* 9. HERO SECTION (Unified & Compact) */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background: url('../images/hero.jpg') center/cover; /* Placeholder */
    opacity: 0.4;
    z-index: -1;
}
/* Fallback if no image */
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 50%, var(--bg-dark) 100%);
}
.hero__content {
    text-align: center;
    width: 100%;
    max-width: 900px;
    z-index: 2;
}
.hero__names {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.hero__date {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* 10. COUNTDOWN (Inline & Compact) */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap; /* Prevents overflow */
    margin: 2rem 0;
}
.countdown__item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 100px;
    backdrop-filter: blur(10px);
}
.countdown__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.countdown__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

/* 11. GRID LAYOUTS (No overflow) */
.grid-2, .grid-4 {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.img-slot {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}
.img-slot img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.img-slot:hover img { transform: scale(1.1); }

/* 12. SCROLL ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 13. FOOTER */
.footer {
    background: var(--bg-brown);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 3rem 1.5rem;
    text-align: center;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}