/* =======================================
   CSS VARIABLES - PREMIUM PINK & GOLD THEME
=========================================== */
:root {
    --bg-dark: #3a0a20;      /* Deep Wine/Berry Pink */
    --bg-card: #521130;      /* Lighter Berry Pink for sections */
    --bg-darker: #240513;    /* Very dark pink for contrast */
    --gold: #d4af37;         /* Metallic Gold */
    --gold-light: #f3e5ab;   /* Light Gold */
    --text-light: #fce4ec;   /* Soft pinkish white text */
    --text-muted: #e5b5c8;   /* Muted pink for subtexts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-cursive: 'Great Vibes', cursive;
}

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

html { scroll-behavior: smooth; }

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

/* Typography & Utilities */
.text-center { text-align: center; }
.gold-text { color: var(--gold); }
.cursive { font-family: var(--font-cursive); font-size: 3rem; font-weight: normal; letter-spacing: 2px; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 15px; }
.hidden { display: none !important; }

/* ========================================
   PRELOADER
=========================================== */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-darker); z-index: 100000;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.heart-loader { font-size: 3rem; animation: heartbeat 1.2s infinite; }
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ========================================
   MUSIC BUTTON
=========================================== */
.music-btn {
    position: fixed; bottom: 25px; right: 25px;
    background: rgba(212, 175, 55, 0.9); color: #000;
    border: none; padding: 12px 20px; border-radius: 30px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
    z-index: 9000; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px); transition: all 0.3s ease;
}
.music-btn:hover { background: #fff; transform: translateY(-3px); }
.music-btn i { margin-right: 5px; }

/* ========================================
   INTRO SCREEN (PINK LIFT DOORS)
=========================================== */
#intro-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    background: var(--bg-darker);
}
.door {
    position: absolute; top: 0; height: 100%; width: 50%;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    transition: transform 1.8s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.6);
}
.door-left { left: 0; border-right: 2px solid var(--gold); }
.door-right { right: 0; border-left: 2px solid var(--gold); }

.door-left.open { transform: translateX(-100%); }
.door-right.open { transform: translateX(100%); }

.tap-to-open {
    position: relative; z-index: 10000;
    background: radial-gradient(circle, var(--bg-card), var(--bg-darker));
    border: 3px solid var(--gold); color: var(--gold);
    width: 130px; height: 130px; border-radius: 50%;
    cursor: pointer; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}
.tap-to-open:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
.tap-to-open.fade-out { opacity: 0; pointer-events: none; }
.seal-text { font-family: var(--font-heading); font-size: 2.5rem; }
.tap-to-open small { font-size: 0.7rem; letter-spacing: 2px; margin-top: 5px; }

/* ========================================
   MAIN CONTENT
=========================================== */
#main-content {
    opacity: 0; transition: opacity 2s ease;
    padding: 20px 15px; max-width: 600px; margin: 0 auto;
}
#main-content.visible { opacity: 1; }
.section-title { font-family: var(--font-heading); color: var(--gold); margin-bottom: 30px; font-size: 1.8rem; letter-spacing: 1px; }

/* HERO SECTION */
.hero {
    padding: 60px 20px; border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px; margin-top: 20px; position: relative;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, transparent 80%);
}
.pre-title { font-size: 0.8rem; letter-spacing: 3px; color: var(--gold-light); margin-bottom: 25px; }
.couple-names { font-family: var(--font-heading); font-size: 3.5rem; color: #fff; line-height: 1.2; margin: 15px 0; }
.post-title { font-size: 1rem; color: var(--text-muted); font-style: italic; margin-top: 15px; }

.scroll-down { margin-top: 40px; font-size: 0.8rem; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; animation: bounce 2s infinite; }
.scroll-down i { display: block; font-size: 1.2rem; margin-top: 5px; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* SCRATCH CARD */
.scratch-section { margin: 80px 0; }
.scratch-container {
    position: relative; width: 320px; height: 420px; margin: 0 auto;
    border-radius: 15px; border: 3px solid var(--gold); overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); background: #000;
}
.hidden-photo { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
#scratch-pad { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; cursor: crosshair; }

/* COUNTDOWN TIMER */
.timer-section { margin: 60px 0; }
.countdown-box { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; }
.time-block {
    background: var(--bg-card); border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 15px 10px; border-radius: 10px; width: 75px; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.time-block span { display: block; font-family: var(--font-heading); font-size: 2rem; color: #fff; margin-bottom: 5px; }
.time-block small { font-size: 0.7rem; color: var(--gold); letter-spacing: 1px; font-weight: 600; }

.calendar-btn, .gold-btn {
    display: inline-block; border: 1px solid var(--gold);
    padding: 12px 25px; text-decoration: none; font-weight: 600; border-radius: 30px; font-size: 0.9rem;
    transition: all 0.3s ease; cursor: pointer;
}
.calendar-btn { background: transparent; color: var(--gold); }
.calendar-btn:hover { background: var(--gold); color: var(--bg-dark); }
.gold-btn { background: var(--gold); color: var(--bg-dark); }
.gold-btn:hover { background: var(--gold-light); }

/* TIMELINE */
.timeline-section { margin: 80px 0; padding: 0 15px; }
.timeline { position: relative; border-left: 2px solid rgba(212, 175, 55, 0.4); margin-left: 10px; }
.timeline-item { padding-left: 30px; margin-bottom: 40px; position: relative; text-align: left; }
.timeline-item::before { content: ''; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; background: var(--gold); border-radius: 50%; }
.timeline-item .time { display: inline-block; background: rgba(212, 175, 55, 0.15); color: var(--gold-light); padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; margin-bottom: 8px; }
.timeline-item h3 { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; }

/* VENUE & SHAGUN */
.venue-section, .shagun-section { background: var(--bg-card); padding: 40px 20px; border-radius: 15px; margin: 80px 0; border: 1px solid rgba(212, 175, 55, 0.2); }
.map-container { border: 2px solid var(--gold); border-radius: 12px; margin: 20px 0; overflow: hidden; }

/* RSVP FORM */
.rsvp-section { margin: 80px 0; padding-top: 40px; border-top: 1px dashed rgba(212, 175, 55, 0.3); }
.rsvp-form { background: var(--bg-card); padding: 30px 20px; border-radius: 15px; border: 1px solid rgba(212, 175, 55, 0.2); display: flex; flex-direction: column; gap: 15px; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
    width: 100%; padding: 15px; background: rgba(0,0,0,0.25); border: 1px solid var(--bg-darker);
    color: #fff; border-radius: 8px; font-family: var(--font-body); font-size: 1rem; transition: border 0.3s ease;
}
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { outline: none; border-color: var(--gold); background: rgba(0,0,0,0.4); }
.gold-btn-solid { background: var(--gold); color: var(--bg-dark); border: none; padding: 15px; font-weight: bold; border-radius: 8px; cursor: pointer; font-size: 1.1rem; transition: 0.3s; }
.gold-btn-solid:hover { background: var(--gold-light); }

.whatsapp-rsvp { margin-top: 30px; padding: 20px; background: rgba(37, 211, 102, 0.1); border-radius: 10px; border: 1px solid rgba(37, 211, 102, 0.3); }
.whatsapp-rsvp p { margin-bottom: 15px; font-size: 0.9rem; color: #e5b5c8; }
.wa-btn { display: inline-block; background: #25D366; color: #fff; padding: 12px 25px; border-radius: 25px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.wa-btn:hover { background: #1ebe5d; transform: translateY(-2px); }

/* SUCCESS MSG & AD */
.success-msg { background: rgba(76, 175, 80, 0.15); color: #81c784; padding: 12px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #4caf50; }
.igrroww-ad { margin: 80px 0 30px 0; padding: 40px 20px; background: var(--bg-darker); border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.ad-divider { color: var(--gold); font-size: 1.2rem; margin-bottom: 15px; letter-spacing: 5px; }
.ad-brand { font-family: var(--font-heading); font-size: 2.2rem; color: var(--gold); margin-bottom: 25px; text-transform: lowercase; letter-spacing: 2px; }
.ad-links { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.ad-btn { display: inline-block; width: 100%; max-width: 280px; padding: 14px; background: rgba(212, 175, 55, 0.1); border: 1px solid var(--gold); color: var(--gold-light); text-decoration: none; border-radius: 30px; font-size: 0.95rem; font-weight: 500; transition: all 0.3s ease; }
.ad-btn:hover { background: var(--gold); color: var(--bg-dark); transform: translateY(-2px); }

/* MODAL OVERLAY */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.8); z-index: 100000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: var(--bg-card); padding: 30px; border-radius: 15px;
    border: 2px solid var(--gold); text-align: center; max-width: 90%; width: 350px;
}
.modal-content img { width: 100%; border-radius: 10px; margin-bottom: 15px; }
.close-modal { background: var(--gold); color: var(--bg-dark); border: none; padding: 10px 20px; border-radius: 20px; cursor: pointer; font-weight: bold; margin-top: 10px; }

footer { padding: 40px 0 80px 0; border-top: 1px solid rgba(212, 175, 55, 0.2); margin-top: 30px; }
.couple-names-small { font-family: var(--font-heading); font-size: 1.6rem; color: var(--gold); letter-spacing: 1px; }