/* ==========================================================================
   DREAMART FILM - PREMIUM INDIAN WEDDING INVITATION MASTER TEMPLATE
   Design: Warm Ivory, Champagne, Antique Gold, Soft Blush, Deep Wine
   ========================================================================== */

:root {
    --bg-ivory: #FAF6F0;
    --bg-champagne: #F5EFEB;
    --card-bg: #FFFFFF;
    --gold-primary: #C5A059;
    --gold-light: #DFC585;
    --gold-dark: #9A7730;
    --wine-dark: #4A1525;
    --wine-medium: #722F37;
    --text-main: #3A2E2B;
    --text-muted: #7A6B68;
    --blush-accent: #F9E4E4;
    --border-gold: rgba(197, 160, 89, 0.4);
    --shadow-luxury: 0 15px 35px rgba(74, 21, 37, 0.08);
    --radius-card: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-ivory);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .bride-groom-title, .seal-text, .section-tag {
    font-family: 'Cinzel', serif;
}

.script-font, .welcome-bride-groom, h2.script {
    font-family: 'Great Vibes', cursive;
}

.hidden {
    display: none !important;
}

/* --- LOADER --- */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-ivory);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.loader-content {
    text-align: center;
    color: var(--wine-dark);
}

.loader-logo-ring {
    width: 70px;
    height: 70px;
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    animation: pulseRing 2s infinite ease-in-out;
    color: var(--gold-primary);
    font-size: 24px;
}

.loader-content h2 {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.loader-content p {
    font-size: 13px;
    color: var(--text-muted);
}

@keyframes pulseRing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(197, 160, 89, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* --- NOT FOUND SCREEN --- */
.not-found-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-ivory);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    z-index: 9998;
}

.not-found-content i {
    font-size: 48px;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.not-found-content h1 {
    color: var(--wine-dark);
    font-size: 28px;
    margin-bottom: 10px;
}

.not-found-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    max-width: 400px;
}

/* --- APP CONTAINER (MOBILE FIRST 9:16 OPTIMIZED) --- */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-ivory);
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
    position: relative;
}

@media (min-width: 481px) {
    body {
        background-color: #2D2422;
        padding: 20px 0;
    }
    .app-container {
        border-radius: 30px;
        overflow: hidden;
        border: 8px solid #3E3230;
    }
}

/* --- FLOATING CONTROLS --- */
.music-player {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
}

#music-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--wine-dark);
    border: 2px solid var(--gold-primary);
    color: var(--gold-light);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.3s;
}

#music-toggle:hover {
    transform: scale(1.1);
}

.music-waves {
    position: absolute;
    bottom: -8px;
    display: flex;
    gap: 2px;
}

.music-waves span {
    width: 3px;
    height: 10px;
    background: var(--gold-primary);
    animation: waveAnim 1s infinite ease-in-out;
}

.music-waves span:nth-child(2) { animation-delay: 0.2s; }
.music-waves span:nth-child(3) { animation-delay: 0.4s; }

.music-player.paused .music-waves {
    display: none;
}

@keyframes waveAnim {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}

.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-actions button, .floating-actions a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    color: var(--wine-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    transition: all 0.3s;
}

.floating-actions button:hover, .floating-actions a:hover {
    background: var(--gold-primary);
    color: #fff;
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

#whatsapp-float {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
    font-size: 20px;
}

/* --- SECTION 1: ENVELOPE OPENING --- */
.envelope-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-ivory) 0%, var(--bg-champagne) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    overflow: hidden;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

.envelope-section.opened {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.lanterns-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.lantern {
    color: var(--gold-primary);
    font-size: 28px;
    animation: swingLantern 3s infinite ease-in-out alternate;
}

.lantern.right {
    animation-delay: 1.5s;
}

@keyframes swingLantern {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

.envelope-wrapper {
    width: 100%;
    max-width: 400px;
    background: #FDFBF7;
    border-radius: 16px;
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--border-gold);
    position: relative;
    overflow: hidden;
    padding: 30px 20px;
    text-align: center;
}

.envelope-floral-top {
    font-size: 14px;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.invitation-preview-text .sub-title {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.invitation-preview-text h2 {
    font-size: 26px;
    color: var(--wine-dark);
    margin-bottom: 5px;
}

.invitation-preview-text p {
    font-size: 13px;
    color: var(--gold-dark);
    margin-bottom: 30px;
}

.seal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 10px;
}

.seal-button {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
    border: none;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    box-shadow: 0 6px 20px rgba(154, 119, 48, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.seal-button:hover {
    transform: scale(1.08);
}

.seal-ring {
    position: absolute;
    width: 78px;
    height: 78px;
    border: 1px dashed rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.seal-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--wine-dark);
    text-align: center;
    line-height: 1.2;
}

/* --- COMMON SECTION STYLES --- */
section {
    padding: 60px 20px;
    position: relative;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-dark);
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 26px;
    color: var(--wine-dark);
    margin-bottom: 15px;
}

.divider-ornament {
    color: var(--gold-primary);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.divider-ornament::before, .divider-ornament::after {
    content: "";
    height: 1px;
    width: 50px;
    background: var(--border-gold);
}

/* --- SECTION 2: WELCOME --- */
.welcome-section {
    text-align: center;
    padding-top: 50px;
}

.welcome-top-text {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.bride-groom-title {
    font-size: 32px;
    color: var(--wine-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.bride-groom-title span {
    display: block;
}

.bride-groom-title .ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 36px;
    color: var(--gold-primary);
    margin: 5px 0;
}

.wedding-dates-main {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 35px;
}

.arch-photo-container {
    width: 240px;
    height: 320px;
    margin: 0 auto;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 120px 120px 10px 10px;
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--border-gold);
    position: relative;
}

.arch-frame {
    width: 100%;
    height: 100%;
    border-radius: 110px 110px 0 0;
    overflow: hidden;
}

.arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.arch-frame img:hover {
    transform: scale(1.05);
}

.scroll-down-prompt {
    margin-top: 40px;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* --- SECTION 3: THE COUPLE --- */
.couple-cards-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--border-gold);
    position: relative;
}

.profile-frame {
    width: 160px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 80px 80px 10px 10px;
    overflow: hidden;
    border: 2px solid var(--gold-light);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.role-badge {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--gold-dark);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.profile-card h3 {
    font-size: 22px;
    color: var(--wine-dark);
    margin-bottom: 10px;
}

.parents-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- SECTION 4: LOVE MESSAGE + COUNTDOWN --- */
.countdown-section {
    background: linear-gradient(180deg, var(--bg-ivory) 0%, var(--bg-champagne) 100%);
}

.love-quote-box {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 30px 25px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--border-gold);
    position: relative;
}

.quote-icon {
    color: var(--gold-light);
    font-size: 18px;
    display: block;
    margin: 0 auto;
}

.love-quote-box p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 16px;
    color: var(--wine-dark);
    line-height: 1.6;
    margin: 15px 0;
}

.countdown-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 30px 15px;
    text-align: center;
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--border-gold);
}

.countdown-header .sub-surprise {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.countdown-header h3 {
    font-size: 22px;
    color: var(--wine-dark);
    margin-bottom: 15px;
}

.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 25px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-ivory);
    margin-bottom: 8px;
}

.timer-circle span {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--wine-dark);
}

.timer-label {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.countdown-expired h3 {
    color: var(--wine-dark);
    font-size: 20px;
    padding: 20px 0;
}

/* --- SECTION 5: WEDDING CELEBRATIONS (TIMELINE) --- */
.timeline-container {
    position: relative;
    padding-left: 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--gold-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding-left: 35px;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--wine-dark);
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

.timeline-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 25px 20px;
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--border-gold);
}

.event-badge {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    display: block;
    margin-bottom: 5px;
}

.timeline-card h3 {
    font-size: 20px;
    color: var(--wine-dark);
    margin-bottom: 15px;
}

.event-details-list {
    list-style: none;
    margin-bottom: 20px;
}

.event-details-list li {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.event-details-list li i {
    color: var(--gold-primary);
    margin-top: 3px;
    width: 14px;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
    color: var(--wine-dark);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(154, 119, 48, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 119, 48, 0.4);
}

/* --- SECTION 6: FAMILY BLESSINGS --- */
.family-tree-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 35px 20px;
    text-align: center;
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--border-gold);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.family-branch h3 {
    font-size: 20px;
    color: var(--wine-dark);
    margin-bottom: 5px;
}

.family-branch p {
    font-size: 13px;
    color: var(--text-muted);
}

.family-connector {
    color: var(--gold-primary);
    font-size: 18px;
    position: relative;
}

.family-connector::before, .family-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--border-gold);
}

.family-connector::before { right: calc(50% + 20px); }
.family-connector::after { left: calc(50% + 20px); }

/* --- SECTION 7: VENUE --- */
.venues-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.venue-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 25px 20px;
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--border-gold);
    text-align: center;
}

.venue-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-ivory);
    border: 1px solid var(--gold-light);
    color: var(--gold-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 18px;
}

.venue-card h3 {
    font-size: 20px;
    color: var(--wine-dark);
    margin-bottom: 10px;
}

.venue-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.venue-actions {
    display: flex;
    gap: 10px;
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--wine-dark);
    border: 1px solid var(--gold-primary);
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    flex: 1;
    transition: all 0.3s;
}

.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: #fff;
}

/* --- SECTION 8: CLOSING --- */
.closing-section {
    text-align: center;
    padding-bottom: 40px;
}

.closing-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 16px;
    color: var(--wine-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.closing-content h2 {
    font-size: 28px;
    color: var(--wine-dark);
    margin-top: 25px;
    margin-bottom: 5px;
}

.hashtag-text {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--gold-dark);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.rsvp-action-box {
    margin-top: 25px;
}

.btn-gold-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
    color: var(--wine-dark);
    padding: 14px 30px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(154, 119, 48, 0.3);
    transition: transform 0.3s;
}

.btn-gold-lg:hover {
    transform: scale(1.05);
}

.site-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    font-size: 11px;
    color: var(--text-muted);
}

.site-footer strong {
    color: var(--wine-dark);
}

/* --- FLOATING PETALS & PARTICLES --- */
.petal, .particle {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    animation: fallPetal linear infinite;
}

@keyframes fallPetal {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.2;
    }
}
