@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Great+Vibes&family=Montserrat:wght@100;200;300;400;500;600&family=Amiri:wght@400;700&family=Italianno&family=Prata&family=Cinzel:wght@400;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
    --gold: #C5A02E;
    --gold-light: #E8D395;
    --gold-deep: #8E6D16;
    --ivory: #FAF9F6;
    --charcoal: #1C1C1C;
    --text-main: #2A2A2A;
    --transition: 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

body {
    background: var(--ivory);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

.hidden { display: none !important; }

/* Enhanced Premium Entrance Overlay */
#entrance-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: #F5EEDC;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2s ease;
}

.envelope-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: transparent;
    animation: zoom-landing 20s infinite alternate ease-in-out;
}

@keyframes zoom-landing {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.envelope-half {
    position: absolute;
    width: 50%;
    height: 100%;
    background: var(--ivory);
    background-image: url('luxury_gold_foil_texture.png');
    background-size: cover;
    z-index: 10;
    transition: transform 2.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 0 100px rgba(0,0,0,0.05);
}

.envelope-left { left: 0; border-right: 1px solid rgba(75, 54, 33, 0.2); background: #F5EEDC; }
.envelope-right { right: 0; border-left: 1px solid rgba(75, 54, 33, 0.2); background: #F5EEDC; }

#entrance-overlay.open .envelope-left { transform: translateX(-100%); }
#entrance-overlay.open .envelope-right { transform: translateX(100%); }

/* Wax Seal & Loading Text */
.wax-seal-container {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 110;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s ease, opacity 0.8s ease;
}

.wax-seal {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #556B2F, #2F4F4F);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 0 15px rgba(255,255,255,0.2);
    border: 3px double var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.wax-seal::after {
    content: 'N & S';
    font-family: 'Italianno', cursive;
    color: var(--gold-light);
    font-size: 2.8rem;
    font-weight: 400;
}

.wax-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(142, 109, 22, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.entrance-loading-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    width: 90%;
    transition: opacity 1s ease;
}

.preface-text {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 12px;
    font-size: 0.75rem;
    color: #4B3621;
    margin-bottom: 1.5rem;
}

.loading-names {
    font-family: 'Italianno', cursive;
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: #4B3621;
    letter-spacing: 1px;
}

.bismillah-loading {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: #4B3621;
    margin-bottom: 2rem;
}

.tap-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.indicator-line {
    width: 30px;
    height: 1px;
    background: var(--gold);
    opacity: 0.3;
}

.indicator-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #4B3621;
    opacity: 0.7;
}

#entrance-overlay.open .wax-seal-container,
#entrance-overlay.open .entrance-loading-text {
    opacity: 0;
    pointer-events: none;
}

/* Sections Styling */
.section { padding: 10rem 5%; text-align: center; position: relative; overflow: hidden; }

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(250, 249, 246, 0.7), rgba(250, 249, 246, 0.4)), 
                url('herobg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    padding-top: 5rem;
}

.bismillah {
    font-family: 'Amiri', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--gold-deep);
    margin-bottom: 2rem;
}

.hero-bismillah {
    margin-top: 140px; /* Big screen margin */
}

.hero-names {
    font-family: 'Italianno', cursive;
    font-size: clamp(4.5rem, 18vw, 10rem);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.1;
    color: #4B3621;
}

.hero-names span {
    display: block;
    font-family: 'Great Vibes', cursive;
    color: var(--gold);
    font-size: 0.5em;
    margin-top: -0.1em;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 12px;
    font-size: 0.75rem;
    color: #4B3621;
    margin: 1.5rem 0;
    font-weight: 300;
    opacity: 0.6;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: #4B3621;
    opacity: 0.2;
    margin-top: 3rem;
}

/* Scratch Card Styling */
.scratch-section {
    padding: 8rem 5%;
    text-align: center;
    background: #FAF9F6;
}

.scratch-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 4rem auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(75, 54, 33, 0.15);
    border: 8px solid #fff;
    cursor: none; /* Hide default cursor to use gold one */
}

#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: none;
}

.scratch-reveal-content {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFFEFB;
    z-index: 1;
}

.date-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #4B3621;
}

.day-name {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.day-num {
    font-family: 'Prata', serif;
    font-size: 6rem;
    line-height: 1;
    font-weight: 400;
}

.month-year {
    font-family: 'Italianno', cursive;
    font-size: 2.5rem;
    margin-top: -0.5rem;
}

.scratch-instruction {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #888;
    margin-top: 2rem;
}

/* Gold Brush Cursor */
.scratch-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    display: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(197, 160, 46, 0.5);
    border: 2px solid #fff;
}

/* Light Quote Sections */
.quote-section {
    padding: 15rem 5%;
    background: linear-gradient(rgba(250, 249, 246, 0.9), rgba(250, 249, 246, 0.9)), 
                url('premium_islamic_arch_gold.png');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    text-align: center;
}

.light-quote {
    background-color: rgba(245, 238, 220, 0.3);
    background-image: radial-gradient(circle at 50% 50%, rgba(75, 54, 33, 0.05) 0%, transparent 60%);
}

.light-quote.alternate { background-color: var(--ivory); }

.quote-container { max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; }
.arabic-quote.colored { color: var(--gold-deep); font-family: 'Amiri', serif; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.8; margin-bottom: 3rem; font-weight: 700; }
.english-meaning.colored { color: var(--text-main); font-family: 'Bodoni Moda', serif; font-size: 1.5rem; font-style: italic; opacity: 0.9; margin-bottom: 2.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.surah-ref { text-transform: uppercase; letter-spacing: 5px; font-size: 0.8rem; color: var(--gold); opacity: 0.8; }

.quote-divider-top, .quote-divider-bottom {
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, #4B3621, transparent);
    margin: 3.5rem auto;
    opacity: 0.3;
}

/* Redesigned Family Section */
.family-section {
    background: #FFFEFB url('https://www.transparenttextures.com/patterns/white-damask.png');
    padding: 12rem 5%;
    position: relative;
}

.family-mirror-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 6rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.family-frame {
    padding: 4rem 3rem;
    border: none;
    background: #fff;
    position: relative;
    width: 100%;
    max-width: 450px;
    border-radius: 100px 100px 0 0;
    box-shadow: 0 40px 100px rgba(75, 54, 33, 0.08);
    border: 1px solid rgba(197, 160, 46, 0.2);
    transition: var(--transition);
}

.family-frame:hover {
    transform: translateY(-15px);
    box-shadow: 0 60px 120px rgba(75, 54, 33, 0.12);
}

.frame-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4B3621;
    padding: 10px 30px;
    color: #F5EEDC;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.family-names-list {
    font-family: 'Prata', serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.4;
    color: #4B3621;
}

.family-names-list span {
    font-family: 'Great Vibes', cursive;
    color: var(--gold);
    font-size: 2.2rem;
    display: block;
    margin: 0.5rem 0;
}

.family-divider-vertical {
    width: 2px;
    height: 400px;
    background: linear-gradient(to bottom, transparent, #4B3621, transparent);
    opacity: 0.1;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #4B3621;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 12px;
    text-transform: uppercase;
}

/* Redesigned Events Schedule */
.events-schedule-section { 
    position: relative; 
    padding: 12rem 5%; 
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
                url('gold_beige_bg.png'); /* Silk background with white overlay */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.schedule-bg-image { 
    display: none; /* Replaced by main section background */
}

.schedule-title { 
    font-family: 'Cinzel', serif; 
    font-size: 3rem; 
    color: #4B3621; 
    text-align: center; 
    margin-bottom: 8rem; 
    letter-spacing: 15px;
    text-transform: uppercase;
}

.events-row-grid { 
    display: flex; 
    justify-content: center; 
    align-items: stretch;
    gap: 0; 
    max-width: 1300px; 
    margin: 0 auto; 
    position: relative;
}

.luxury-schedule-card { 
    flex: 1; 
    background: #fff; 
    padding: 6rem 4rem; 
    text-align: center; 
    position: relative; 
    transition: var(--transition); 
    max-width: 550px; 
    box-shadow: 0 40px 100px rgba(0,0,0,0.05);
    border: 1px solid rgba(197, 160, 46, 0.15);
}

.luxury-schedule-card:first-child {
    border-radius: 100px 0 0 100px;
}

.luxury-schedule-card:last-child {
    border-radius: 0 100px 100px 0;
}

.luxury-schedule-card:only-child {
    border-radius: 100px;
}

.luxury-schedule-card:hover { 
    transform: scale(1.02); 
    box-shadow: 0 60px 120px rgba(75, 54, 33, 0.1); 
    z-index: 5;
}

.card-kicker { 
    text-transform: uppercase; 
    letter-spacing: 7px; 
    font-size: 0.7rem; 
    color: var(--gold); 
    margin-bottom: 2rem; 
    display: block; 
    font-family: 'Cinzel', serif;
    font-weight: 500;
}

.card-event-name { 
    font-family: 'Prata', serif; 
    font-size: 2.8rem; 
    font-weight: 400; 
    margin-bottom: 2.5rem; 
    color: #4B3621; 
}

.card-mini-divider { 
    width: 60px; 
    height: 1px; 
    background: linear-gradient(to right, transparent, var(--gold), transparent); 
    margin: 0 auto 3rem; 
}

.card-info-list { 
    display: flex; 
    flex-direction: column; 
    gap: 3rem; 
    margin-bottom: 5rem; 
}

.info-item { display: flex; flex-direction: column; gap: 0.8rem; }

.info-label { 
    text-transform: uppercase; 
    letter-spacing: 5px; 
    font-size: 0.7rem; 
    color: #aaa; 
    font-family: 'Cinzel', serif;
}

.info-data { 
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; 
    font-weight: 600; 
    color: #4B3621; 
    line-height: 1.5;
}

.outline-map-btn {
    display: inline-block;
    padding: 1.4rem 3rem;
    border: 1px solid #4B3621;
    color: #4B3621;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.outline-map-btn:hover { 
    background: #4B3621; 
    color: #fff; 
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(75, 54, 33, 0.2);
}

/* Countdown Section */
.countdown-v2 { display: flex; justify-content: center; gap: 4.5rem; margin-top: 5rem; }
.count-unit { display: flex; flex-direction: column; align-items: center; }
.count-num { 
    font-family: 'Prata', serif; 
    font-size: clamp(3.5rem, 10vw, 6.5rem); 
    font-weight: 400; 
    color: #4B3621; 
    line-height: 1; 
}
.count-label { 
    text-transform: uppercase; 
    letter-spacing: 6px; 
    font-size: 0.7rem; 
    color: var(--gold); 
    margin-top: 1rem; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Floral Elements */
.floral-corner {
    position: absolute;
    width: 350px;
    height: 350px;
    background-image: url('gold_floral_ornament_luxury_1776544098113.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}
.top-left { top: 0; left: 0; transform: rotate(0deg); }
.bottom-right { bottom: 0; right: 0; transform: rotate(180deg); }

.floral-bg {
    position: absolute;
    inset: 0;
    background-image: url('gold_floral_ornament_luxury_1776544098113.png');
    background-size: 500px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
}

/* Floating Petals */
.petal {
    position: absolute;
    background: radial-gradient(circle at center, #fff, #fef1f2);
    border-radius: 50% 0 50% 50%;
    opacity: 0.4;
    pointer-events: none;
    z-index: 101;
    animation: petal-fall 15s linear infinite;
}

@keyframes petal-fall {
    0% { transform: translateY(-10vh) rotate(0deg) translateX(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(110vh) rotate(720deg) translateX(100px); opacity: 0; }
}

/* Animations & Particles */
.reveal { opacity: 0; transform: translateY(80px); transition: all 1.8s cubic-bezier(0.19, 1, 0.22, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.particles-container { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.particle { position: absolute; background: var(--gold-light); border-radius: 50%; opacity: 0.4; animation: float 25s infinite linear; }

@keyframes float {
    0% { transform: translate(0, 100vh) rotate(0); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translate(20vw, -10vh) rotate(360deg); opacity: 0; }
}

footer { border-top: 1px solid rgba(197, 160, 46, 0.1); padding: 10rem 2rem; text-align: center; }
footer .meaning-small { font-family: 'Bodoni Moda', serif; font-style: italic; font-size: 1.1rem; opacity: 0.7; margin-top: 1.5rem; color: var(--text-main); }

.powered-by {
    margin-top: 2rem;
    font-family: 'Satisfy', cursive;
    font-size: 1.2rem;
    color: #888;
}

.powered-by a {
    color: var(--gold);
    text-decoration: none;
    margin-left: 5px;
    transition: opacity 0.3s ease;
}

.powered-by a:hover {
    opacity: 0.7;
}

/* RESPONSIVENESS OVERRIDES */
@media (max-width: 1024px) {
    .events-row-grid { flex-direction: column; align-items: center; gap: 3rem; }
    .family-mirror-grid { flex-direction: column; gap: 4rem; }
    .family-divider-vertical { display: none; }
    .countdown-v2 { gap: 2rem; }
    .luxury-schedule-card:first-child, .luxury-schedule-card:last-child { border-radius: 50px; }
}

/* Music Toggle Button Styling */
.music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: var(--gold); /* High visibility gold */
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.music-icon {
    font-size: 1.4rem;
    color: #fff; /* White icon on gold */
    z-index: 2;
}

.music-waves {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 25px;
}

.music-waves span {
    width: 4px;
    height: 10px;
    background: #fff;
    border-radius: 2px;
    animation: equalizer 1s ease-in-out infinite;
}

.music-waves span:nth-child(2) { animation-duration: 0.8s; height: 18px; }
.music-waves span:nth-child(3) { animation-duration: 1.2s; height: 25px; }
.music-waves span:nth-child(4) { animation-duration: 0.9s; height: 15px; }
.music-waves span:nth-child(5) { animation-duration: 1.1s; height: 20px; }

@keyframes equalizer {
    0%, 100% { height: 8px; }
    50% { height: 25px; }
}

.music-btn.muted .music-waves span { 
    animation: none; 
    height: 3px !important; 
    opacity: 0.3; 
}


@media (max-width: 768px) {
    .hero-names { font-size: clamp(3rem, 15vw, 4.5rem); }
    .count-num { font-size: 4rem; }
}

@media (max-width: 490px) {
    .hero-names { font-size: 4.8rem !important; line-height: 1.1 !important; }
    .loading-names { font-size: 4rem !important; }
    .hero-bismillah { margin-top: 2rem !important; }
    .preface-text { letter-spacing: 5px; font-size: 0.6rem; }
    .wax-seal { width: 120px; height: 120px; }
    .section { padding: 6rem 1.5rem; }
    
    .countdown-v2 { 
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .count-unit {
        padding: 1.5rem 1rem;
        background: rgba(197, 160, 46, 0.03);
        border: 1px solid rgba(197, 160, 46, 0.1);
    }
    .count-num { font-size: 2.5rem !important; }
    .count-label { letter-spacing: 2px; font-size: 0.6rem; }
    
    .section-title, .schedule-title { font-size: 1.8rem !important; letter-spacing: 5px !important; }

    .family-names-list { font-size: 1.5rem; }
    .luxury-schedule-card { padding: 3rem 1.5rem; width: 100%; border-radius: 30px !important; }
    .card-event-name { font-size: 2.2rem; }
    .outline-map-btn { width: 100%; text-align: center; padding: 1rem; }
    
    .arabic-quote.colored { font-size: 1.8rem !important; }
    .english-meaning.colored { font-size: 1.1rem !important; }
    .quote-section { padding: 4rem 1rem !important; min-height: auto !important; }
    .quote-divider-top, .quote-divider-bottom { margin: 1.5rem auto !important; }
}

/* Cinematic Background Orbs */ 
.bg-orb { 
    position: fixed; 
    border-radius: 50%; 
    filter: blur(80px); 
    z-index: 0; 
    pointer-events: none; 
    opacity: 0.15; 
    animation: drift 25s infinite alternate ease-in-out; 
}

.orb-1 { width: 600px; height: 600px; background: var(--gold-light); top: -10%; left: -10%; } 
.orb-2 { width: 400px; height: 400px; background: var(--gold-deep); bottom: -10%; right: -10%; animation-delay: -5s; } 
.orb-3 { width: 500px; height: 500px; background: var(--ivory); top: 40%; left: 30%; opacity: 0.1; animation-duration: 40s; } 

@keyframes drift { 
    0% { transform: translate(0, 0) scale(1); } 
    100% { transform: translate(100px, 50px) scale(1.1); } 
} 