/* --- Root Variables & Styling --- */
   :root {
            --bg-dark: #0B0C10;
            --bg-card: #14161D;
            --gold-primary: #D4AF37;
            --gold-light: #F3E5AB;
            --gold-gradient: linear-gradient(135deg, #B38728 0%, #FBF5B7 25%, #DAA520 50%, #FBF5B7 75%, #AA771C 100%);
            --text-light: #F5F5F7;
            --text-muted: #A0A5B5;
            --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

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

        body {
            background-color: var(--bg-dark);
            color: var(--text-light);
            font-family: 'Montserrat', sans-serif;
            overflow: hidden; /* Locked until scratch is cleared */
            -webkit-font-smoothing: antialiased;
        }

        h1, h2, h3, .font-cinzel {
            font-family: 'Cinzel', serif;
            letter-spacing: 2px;
        }

        /* -----------------------------------------
           HEART SCRATCH TO REVEAL OVERLAY
        ----------------------------------------- */
        #scratch-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9999;
            background-color: var(--bg-dark);
            display: flex;
            justify-content: center;
            align-items: center;
            transition: opacity 0.8s ease, visibility 0.8s;
        }

        #scratch-overlay.revealed {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .scratch-container {
            position: relative;
            width: 90%;
            max-width: 400px;
            aspect-ratio: 1/1;
            background: var(--bg-card);
            border: 2px solid rgba(212, 175, 55, 0.3);
            border-radius: 50%;
            box-shadow: 0 20px 50px rgba(0,0,0,0.8);
            overflow: hidden;
        }

        /* Underlying Card Content inside the Heart Container */
        .scratch-under-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 30px;
            background: radial-gradient(circle at center, #1b1e26 0%, #0d0f13 100%);
        }

        .scratch-under-content .monogram {
            font-size: 2.2rem;
            background: var(--gold-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 6px;
        }

        .scratch-under-content h3 {
            color: var(--gold-light);
            margin-bottom: 4px;
            font-size: 1.1rem;
        }

        .scratch-under-content .scratch-guest-tag {
            font-family: 'Cinzel', serif;
            font-size: 0.95rem;
            color: var(--gold-primary);
            letter-spacing: 1.5px;
            margin-bottom: 10px;
        }

        .scratch-under-content p {
            font-size: 0.8rem;
            line-height: 1.5;
            color: var(--text-muted);
            max-width: 260px;
        }

        .scroll-hint-btn {
            margin-top: 15px;
            background: transparent;
            border: 1px solid var(--gold-primary);
            color: var(--gold-light);
            padding: 8px 20px;
            font-family: 'Cinzel', serif;
            font-size: 0.75rem;
            letter-spacing: 2px;
            cursor: pointer;
            transition: var(--transition-smooth);
            border-radius: 4px;
        }

        .scroll-hint-btn:hover {
            background: var(--gold-gradient);
            color: var(--bg-dark);
        }

        /* Canvas Overlay */
        #scratch-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="12" fill="gold" opacity="0.5"/></svg>') 16 16, pointer;
            z-index: 2;
        }

        /* -----------------------------------------
           MAIN SITE CONTENT
        ----------------------------------------- */
        .main-wrapper {
            opacity: 0;
            transform: translateY(20px);
            transition: var(--transition-smooth);
        }

        .main-wrapper.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Hero / Cover Section */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 40px 20px;
            position: relative;
            background: linear-gradient(rgba(11, 12, 16, 0.85), rgba(11, 12, 16, 0.95)), 
                        url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 150px;
            background: linear-gradient(transparent, var(--bg-dark));
        }

        .monogram-large {
            font-size: 4rem;
            background: var(--gold-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 20px;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 10px;
            color: var(--text-light);
            font-weight: 400;
        }

        .hero .guest-invitation-badge {
            margin: 20px 0;
            padding: 10px 24px;
            border-top: 1px solid rgba(212, 175, 55, 0.3);
            border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        }

        .hero .guest-invitation-badge p {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: var(--gold-light);
            margin-bottom: 5px;
        }

        .hero .guest-invitation-badge h2 {
            font-family: 'Playfair Display', serif;
            font-style: italic;
            font-size: 2.2rem;
            color: #ffffff;
            letter-spacing: 1px;
            font-weight: 400;
        }

        .hero .date {
            color: var(--gold-primary);
            font-size: 1.2rem;
            letter-spacing: 4px;
            margin-bottom: 20px;
        }

        .hero .tagline {
            font-family: 'Playfair Display', serif;
            font-style: italic;
            color: var(--text-muted);
            max-width: 600px;
            font-size: 1.1rem;
            line-height: 1.8;
        }

        /* Section Settings */
        section {
            padding: 100px 20px;
            max-width: 1100px;
            margin: 0 auto;
        }

        .section-title {
            text-align: center;
            font-size: 2.2rem;
            color: var(--gold-primary);
            margin-bottom: 60px;
            position: relative;
        }

        .section-title::after {
            content: '◆';
            display: block;
            font-size: 0.8rem;
            color: var(--gold-light);
            margin-top: 15px;
        }

        /* -----------------------------------------
           TIMELINE
        ----------------------------------------- */
        .timeline {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            width: 1px;
            height: 100%;
            background: var(--gold-primary);
            opacity: 0.3;
            transform: translateX(-50%);
        }

        .timeline-item {
            margin-bottom: 40px;
            position: relative;
            width: 50%;
            padding: 20px 40px;
        }

        .timeline-item:nth-child(odd) { left: 0; text-align: right; }
        .timeline-item:nth-child(even) { left: 50%; text-align: left; }

        .timeline-item::after {
            content: '';
            position: absolute;
            top: 30px;
            width: 12px;
            height: 12px;
            background: var(--gold-gradient);
            border-radius: 50%;
            z-index: 5;
        }

        .timeline-item:nth-child(odd)::after { right: -6px; }
        .timeline-item:nth-child(even)::after { left: -6px; }

        .timeline-card {
            background: var(--bg-card);
            padding: 25px;
            border-radius: 8px;
            border-left: 3px solid var(--gold-primary);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .timeline-item:nth-child(odd) .timeline-card {
            border-left: none;
            border-right: 3px solid var(--gold-primary);
        }

        .timeline-number {
            font-family: 'Cinzel', serif;
            color: var(--gold-primary);
            font-size: 1.2rem;
            margin-bottom: 8px;
        }

        .timeline-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-light); }
        .timeline-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

        /* -----------------------------------------
           GALLERY
        ----------------------------------------- */
        .gallery-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 40px;
        }

        .gallery-item {
            position: relative;
            aspect-ratio: 4/5;
            overflow: hidden;
            border-radius: 8px;
            border: 1px solid rgba(212, 175, 55, 0.15);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(30%) brightness(90%);
            transition: var(--transition-smooth);
        }

        .gallery-item:hover img {
            filter: grayscale(0%) brightness(100%);
            transform: scale(1.05);
        }

        /* -----------------------------------------
           COUNTDOWN TIMER
        ----------------------------------------- */
        .countdown-section {
            background: linear-gradient(rgba(20, 22, 29, 0.9), rgba(20, 22, 29, 0.9)),
                        url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&q=80&w=1200') center/cover fixed;
            text-align: center;
            border-top: 1px solid rgba(212, 175, 55, 0.2);
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
            padding: 80px 20px;
        }

        .countdown-container {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .countdown-box {
            background: rgba(11, 12, 16, 0.8);
            border: 1px solid var(--gold-primary);
            min-width: 100px;
            padding: 20px;
            border-radius: 6px;
            backdrop-filter: blur(5px);
        }

        .countdown-val {
            font-family: 'Cinzel', serif;
            font-size: 2.5rem;
            color: var(--gold-light);
            display: block;
        }

        .countdown-lbl {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--text-muted);
            margin-top: 5px;
        }

        /* -----------------------------------------
           DETAILS GRID
        ----------------------------------------- */
        .details-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
        }

        .details-card {
            background: var(--bg-card);
            border: 1px solid rgba(212, 175, 55, 0.1);
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.4);
        }

        .details-card h3 {
            color: var(--gold-primary);
            font-size: 1.5rem;
            margin-bottom: 25px;
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
            padding-bottom: 10px;
        }

        .schedule-timeline {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .schedule-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 15px;
            border-bottom: 1px dashed rgba(160, 165, 181, 0.2);
        }

        .schedule-time {
            font-family: 'Cinzel', serif;
            color: var(--gold-light);
            font-size: 0.95rem;
            font-weight: 600;
        }

        .info-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 15px;
            font-size: 0.95rem;
        }

        .info-list li strong {
            color: var(--gold-light);
            display: block;
            margin-bottom: 3px;
            font-family: 'Cinzel', serif;
            font-size: 0.85rem;
            letter-spacing: 1px;
        }

        /* -----------------------------------------
           RSVP FORM
        ----------------------------------------- */
        .rsvp-section {
            max-width: 650px;
            background: var(--bg-card);
            border: 1px solid var(--gold-primary);
            border-radius: 16px;
            padding: 50px 40px;
            margin: 60px auto 100px auto;
            box-shadow: 0 25px 60px rgba(0,0,0,0.5);
        }

        .rsvp-toggle-group {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 35px;
        }

        .rsvp-radio-label {
            border: 1px solid rgba(212, 175, 55, 0.4);
            padding: 14px 30px;
            border-radius: 30px;
            cursor: pointer;
            font-family: 'Cinzel', serif;
            font-size: 0.9rem;
            letter-spacing: 1px;
            transition: var(--transition-smooth);
        }

        .rsvp-toggle-group input[type="radio"] { display: none; }

        .rsvp-toggle-group input[type="radio"]:checked + .rsvp-radio-label {
            background: var(--gold-gradient);
            color: var(--bg-dark);
            border-color: transparent;
            box-shadow: 0 4px 15px rgba(212,175,55,0.3);
        }

        .form-group { margin-bottom: 25px; }

        .form-group label {
            display: block;
            font-size: 0.85rem;
            color: var(--gold-light);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 8px;
        }

        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            background: rgba(11, 12, 16, 0.7);
            border: 1px solid rgba(160, 165, 181, 0.3);
            border-radius: 6px;
            padding: 14px;
            color: var(--text-light);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.95rem;
            transition: var(--transition-smooth);
        }

        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            outline: none;
            border-color: var(--gold-primary);
        }

        .submit-btn {
            width: 100%;
            background: var(--gold-gradient);
            color: var(--bg-dark);
            border: none;
            padding: 16px;
            font-family: 'Cinzel', serif;
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 2px;
            border-radius: 6px;
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(212,175,55,0.4);
        }

        footer {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted);
            font-size: 0.85rem;
            border-top: 1px solid rgba(160, 165, 181, 0.1);
            font-family: 'Cinzel', serif;
        }

        @media (max-width: 768px) {
            .timeline::before { left: 20px; }
            .timeline-item { width: 100%; padding: 20px 20px 20px 40px; text-align: left !important; }
            .timeline-item::after { left: 14px !important; }
            .timeline-item:nth-child(odd) .timeline-card { border-right: none; border-left: 3px solid var(--gold-primary); }
            .timeline-item:nth-child(even) { left: 0; }
            .details-grid { grid-template-columns: 1fr; }
            .hero h1 { font-size: 2.2rem; }
        }