
        /* CSS Variables for Color Palette */
        :root {
            --emerald: #2D5A27; /* Deep forest green */
            --emerald-dark: #1E3F1A; /* Deepest forest green */
            --emerald-light: #6FAF85; /* Sage green */
            --gold: #C5A059; /* True luxury champagne gold */
            --gold-light: #E5C483; /* Soft warm gold */
            --cream: #FAF6F0; /* Warm premium ivory cream */
            --text-dark: #2B2B2B; /* Dark charcoal */
            
            --font-serif: 'Cormorant Garamond', serif;
            --font-script: 'Great Vibes', cursive;
            --font-sans: 'Poppins', sans-serif;
            --font-arabic: 'Amiri', serif;
        }

        /* Reset & Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: var(--cream);
            color: var(--text-dark);
            font-family: var(--font-sans);
            overflow-x: hidden;
            overscroll-behavior-y: none;
        }

        h1, h2, h3 { font-family: var(--font-serif); }
        
        /* 1. Pre-loader / Splash Screen */
        #preloader {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100vh;
            background-color: var(--emerald-dark);
            color: var(--gold);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 1.5s ease, transform 1.5s ease;
        }

        #preloader.hidden {
            opacity: 0;
            pointer-events: none;
            transform: translateY(-5%);
        }

        .bismillah-arabic {
            font-family: var(--font-arabic);
            font-size: 3rem;
            margin-bottom: 10px;
            direction: rtl;
            border-left: 2px solid var(--gold);
            white-space: nowrap;
            overflow: hidden;
            width: 0;
        }

        .typewriter-text {
            font-family: var(--font-serif);
            font-size: 1.2rem;
            letter-spacing: 2px;
            border-right: 2px solid var(--gold);
            white-space: nowrap;
            overflow: hidden;
            width: 0;
        }

        /* 2. Hero Section */
        .hero {
            position: relative;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background-image: linear-gradient(rgba(250, 246, 240, 0.1), rgba(250, 246, 240, 0.4)), url('../images/background.png');
            background-attachment: scroll;
            background-position: center center;
            background-size: cover;
            color: var(--text-dark);
        }

        .hero-content {
            z-index: 2;
        }

        .hero-names {
            font-family: var(--font-script);
            font-size: 5.5rem;
            color: var(--emerald-dark);
            text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.6);
            margin-bottom: 5px;
            line-height: 1.1;
        }

        .hero-subtitle {
            font-family: var(--font-serif);
            font-size: 1.6rem;
            letter-spacing: 4px;
            color: var(--gold);
            text-transform: uppercase;
            font-weight: 600;
        }

        .scroll-indicator {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s infinite;
            color: var(--gold);
            font-size: 2rem;
            z-index: 2;
        }

        /* 3. Global Dynamic Effects & Canvas */
        #petal-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 10;
        }

        .reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 1.2s cubic-bezier(0.5, 0, 0, 1);
        }

        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Sections Layout */
        section {
            padding: 100px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* 4. The Quote */
        .quote-section {
            text-align: center;
            padding: 40px 20px 100px 20px;
        }

        .quote-text {
            font-family: var(--font-serif);
            font-size: 2.5rem;
            color: var(--emerald);
            line-height: 1.4;
            font-style: italic;
        }

        .quote-ref {
            display: block;
            margin-top: 20px;
            font-family: var(--font-sans);
            /* color: var(--gold); */
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        /* The Couple */
        .couple-section {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 50px;
        }

        .couple-text {
            flex: 1;
            min-width: 300px;
        }

        .couple-text h2 {
            font-size: 3rem;
            color: var(--emerald);
            margin-bottom: 20px;
        }

        .couple-text p {
            line-height: 1.8;
            font-size: 1.1rem;
            color: #555;
        }

        .couple-images {
            flex: 1;
            min-width: 300px;
            position: relative;
            height: 500px;
        }

        .couple-img {
            position: absolute;
            width: 70%;
            border-radius: 10px;
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }

        .img-1 { top: 0; left: 0; z-index: 2; }
        .img-2 { bottom: 0; right: 0; z-index: 1; }

        /* The Events (Strictly Center-Aligned) */
        .events-section {
            text-align: center;
            background-color: var(--emerald);
            color: var(--cream);
            padding: 100px 20px;
            max-width: 100%;
        }

        .events-container {
            max-width: 1000px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 60px;
        }

        .events-section h2 {
            font-size: 3.5rem;
            color: var(--gold);
            margin-bottom: 50px;
            font-family: var(--font-script);
        }

        .event-details {
            border-bottom: 1px solid rgba(212, 175, 55, 0.3);
            padding-bottom: 40px;
        }
        
        .event-details:last-child {
            border-bottom: none;
        }

        .event-details h3 {
            font-size: 2rem;
            margin-bottom: 15px;
            letter-spacing: 1px;
        }

        .event-details p {
            font-size: 1.2rem;
            line-height: 1.6;
            margin-bottom: 10px;
        }

        /* Gallery */
        .gallery-section {
            text-align: center;
        }

        .gallery-section h2 {
            font-size: 3rem;
            color: var(--emerald);
            margin-bottom: 40px;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .gallery-item {
            overflow: hidden;
            border-radius: 8px;
            height: 350px;
        }

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

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

        /* Footer & RSVP */
        footer {
            background-color: var(--emerald);
            color: var(--cream);
            text-align: center;
            padding: 80px 20px;
        }

        .rsvp-btn {
            background-color: var(--gold);
            color: var(--emerald-dark);
            border: none;
            padding: 15px 40px;
            font-size: 1.2rem;
            font-family: var(--font-serif);
            text-transform: uppercase;
            letter-spacing: 2px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            margin: 30px 0;
            border-radius: 4px;
        }

        .rsvp-btn:hover {
            background-color: var(--gold-light);
        }

        /* Animations */
        @keyframes fadeIn {
            to { opacity: 1; }
        }

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

        /* Responsive */
        @media (max-width: 768px) {
            .hero-names { font-size: 6rem; }
            .couple-images { height: 400px; margin-top: 30px; }
            .quote-text { font-size: 1.8rem; }
        }


/*newly added css  */      

/* Premium Bismillah Text Style (Global) */
.bismillah-text {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--emerald-dark);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* Premium Countdown & Quote Container */
.countdown-quote-container {
    background-image: url('../images/countdownback.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

/* Premium Countdown Style (Global) */
.countdown-section {
    position: relative;
    text-align: center;
    padding: 100px 20px 40px 20px;
}

.countdown-section h2 {
    font-size: 2.2rem;
    color: var(--emerald);
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
    flex-wrap: wrap;
}

#countdown div {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 25px 20px;
    border-radius: 12px;
    min-width: 90px;
    transition: transform 0.3s ease;
}

#countdown div:hover {
    transform: translateY(-5px);
}

#countdown span {
    font-size: 2.8rem;
    font-family: var(--font-serif);
    color: var(--emerald);
}

#countdown small {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #777;
}



.quran-section {
    text-align: center;
    padding: 100px 20px;
}

.quran-section .arabic {
    font-family: var(--font-arabic);
    font-size: 2rem;
    margin-bottom: 20px;
}

.quran-section .translation {
    font-style: italic;
    font-size: 1.2rem;
}


.location-section {
    text-align: center;
    padding: 100px 20px;
}

.map-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--emerald);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

section {
    padding: 120px 20px;
}

h2 {
    letter-spacing: 1px;
}

body {
    font-family: 'Poppins', sans-serif;
}
    


#music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 999;
    backdrop-filter: blur(10px);
}


/* ===============================
   MOBILE RESPONSIVE IMPROVEMENTS
   =============================== */

@media (max-width: 768px) {

    /* HERO */
    .hero {
        background-attachment: scroll; /* Fix parallax bug on mobile */
        padding: 0 15px;
    }

    /* EVENTS */
    .events-section {
        background-attachment: scroll; /* Fix parallax bug on mobile */
    }

    .hero-names {
        font-size: 3rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
        color: var(--gold);
    }

    /* EVENTS */
    .events-section {
        padding: 60px 15px;
    }

    .events-section h2 {
        font-size: 2.2rem;
    }

    .event-details h3 {
        font-size: 1.5rem;
    }

    .event-details p {
        font-size: 1rem;
    }

    /* GALLERY */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 250px;
    }

    /* MAP */
    iframe {
        height: 250px;
    }

    /* FOOTER */
    footer h2 {
        font-size: 2rem !important;
    }

    .rsvp-btn {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }

    /* GENERAL SPACING */
    section {
        padding: 70px 15px;
    }
}

@media (max-width: 480px) {

    .hero-names {
        font-size: 2.8rem;
    }

    .quote-text {
        font-size: 1.5rem;
    }

    #countdown {
        gap: 12px;
    }

    #countdown div {
        padding: 15px 10px;
        min-width: 70px;
    }

    #countdown span {
        font-size: 1.8rem;
    }

    #countdown small {
        font-size: 0.7rem;
    }

}


/* ===============================
   ISLAMIC EVENTS SECTION
   =============================== */

.events-section {
    position: relative;
    background-image: url('../images/backgroundtwo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* This creates the parallax effect */
    
    padding: 80px 20px;
    color: var(--cream); /* ensures text is readable */
}

/* Premium emerald overlay with dynamic golden radial glow */
.events-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.15), transparent 70%), 
                linear-gradient(rgba(30, 63, 26, 0.65), rgba(30, 63, 26, 0.85));
    z-index: 0;
    animation: glowMove 10s ease-in-out infinite alternate;
}

.events-container {
    position: relative;
    z-index: 1;
}

/* Glow animation */
@keyframes glowMove {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.bismillah {
    font-family: var(--font-arabic);
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--cream);
    direction: rtl;
}

.events-sub {
    margin-bottom: 50px;
    font-style: italic;
    opacity: 0.8;
    letter-spacing: 1px;
}/* Event Cards Upgrade */
.event-details {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-details:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.event-date {
    color: var(--gold);
    font-weight: bold;
    margin: 10px 0;
}

.event-note {
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
    opacity: 0.8;
}

.events-section::after {
    content: "☾";
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    opacity: 0.6;
    color: var(--cream);
}

/* ===============================
   MOMENTS + VENUE SECTION
   =============================== */

.moments-venue-section {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 20px;
    background-image: url('../images/venue_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 100%;
    width: 100%;
}
.moments-venue-section h2{
    color: var(--emerald);
    font-size: 2rem;
}
.section-sub {
    margin-top: 10px;
    font-style: italic;
    color: #777;
}

.arabic {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    color: var(--gold);
}

/* Divider */
.section-divider {
    margin: 60px auto;
    font-size: 1.5rem;
    color: var(--gold);
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* Hover effect */
.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.85);
}

/* Venue Card */
.venue-card {
    margin-top: 40px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(212,175,55,0.2);
}

.venue-card h3 {
    color: var(--emerald);
    margin-bottom: 10px;
}

.venue-card iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 10px;
    margin: 20px 0;
}

.map-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--emerald);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.map-btn:hover {
    background: #7f9368;
}

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

.venue-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s ease;
}

.venue-card:hover {
    transform: translateY(-6px);
}

.venue-card h3 {
    font-family: var(--font-serif);
    color: var(--emerald);
    margin-bottom: 5px;
}

.venue-card h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.venue-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.venue-card iframe {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    border: none;
    margin: 10px 0;
}

.map-btn {
    display: inline-block;
    padding: 10px 18px;
    background: var(--emerald);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.map-btn:hover {
    background: var(--emerald);
}

.footer-title {
    font-family: var(--font-script);
    font-size: 2.8rem;
    color: #fff;
    text-align: center;
}

.footer-text {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-wishes {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-wishes a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-wishes a:hover {
    color: #fff;
    text-decoration: underline;
}
