/* 
 * ==========================================
 * ROYAL WEDDING CINEMATIC EXPERIENCE
 * Pooja & Sonu | 2026
 * ==========================================
 */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500&display=swap');

/* --- VARIABLES --- */
:root {
    --color-maroon: #5a001a;
    --color-maroon-dark: #2d000d;
    --color-gold: #c5a059;
    --color-gold-light: #e6c888;
    --color-gold-shiny: #ffd700;
    --color-ivory: #fffff0;
    --color-cream: #f5f5dc;
    --color-text-dark: #1a1a1a;

    --font-heading: 'Cinzel Decorative', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Playfair Display', serif;
    --font-modern: 'Montserrat', sans-serif;

    --transition-slow: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-medium: 0.8s ease-out;
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--color-maroon-dark);
    color: var(--color-ivory);
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

/* --- UTILS --- */
.hidden {
    display: none !important;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.z-over {
    z-index: 10;
}

.z-bg {
    z-index: 1;
}

/* --- GLOBAL ANIMATION CLASSES --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-reveal {
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-slow);
}

.scale-reveal.visible {
    opacity: 1;
    transform: scale(1);
}

.blur-reveal {
    filter: blur(10px);
    opacity: 0;
    transition: var(--transition-slow);
}

.blur-reveal.visible {
    filter: blur(0);
    opacity: 1;
}

/* --- CANVAS LAYERS --- */
#petals-canvas,
#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through except for specific interactive layers if needed */
    z-index: 999;
}

#fireworks-canvas {
    z-index: 1000;
    /* Higher priority */
}

/* --- LOADING SCREEN --- */
#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-maroon), var(--color-maroon-dark));
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

.loader-mandala {
    width: 80px;
    height: 80px;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    animation: spin 3s linear infinite;
    position: relative;
}

.loader-mandala::after {
    content: '🕉️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    animation: none;
}

#enter-btn {
    margin-top: 2rem;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.5s ease;
    opacity: 0;
    /* Hidden until loaded */
    pointer-events: none;
}

#enter-btn.ready {
    opacity: 1;
    pointer-events: auto;
}

#enter-btn:hover {
    background: var(--color-gold);
    color: var(--color-maroon-dark);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.5);
}

/* --- SCENE STYLES --- */
section.cinematic-scene {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

/* SCENE 1: Intro */
#scene-1-intro {
    background: radial-gradient(circle at center, #1a0505 0%, #000000 100%);
}

.om-symbol {
    font-size: 5rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(197, 160, 89, 0.6);
}

.mantra-text {
    font-family: var(--font-heading);
    color: var(--color-gold-light);
    font-size: 1.5rem;
    line-height: 2.2;
    max-width: 800px;
}

/* SCENE 2: Couple Reveal */
#scene-2-couple {
    background: linear-gradient(135deg, #2d000d 0%, #5a001a 100%);
    position: relative;
}

.couple-names-container {
    position: relative;
    z-index: 5;
}

.bride-name,
.groom-name {
    font-family: var(--font-script);
    font-size: 5rem;
    color: var(--color-gold-shiny);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 1rem 0;
}

.weds-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-ivory);
    margin: 1rem 0;
    position: relative;
}

.weds-text::before,
.weds-text::after {
    content: '';
    display: inline-block;
    width: 50px;
    height: 1px;
    background: var(--color-gold);
    vertical-align: middle;
    margin: 0 15px;
}

.heart-animation {
    font-size: 3rem;
    color: red;
    animation: heartbeat 1.5s infinite;
}

/* SCENE 3: Blessings */
#scene-3-family {
    background-color: var(--color-cream);
    color: var(--color-maroon);
}

.royal-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border: 2px solid var(--color-gold);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 1rem;
    position: relative;
}

.royal-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed var(--color-gold);
    pointer-events: none;
}

.family-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-maroon);
}

/* SCENE 4: Events */
#scene-4-events {
    background: var(--color-maroon-dark);
}

.event-block {
    margin: 4rem 0;
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transition: transform 0.3s ease;
}

.event-block:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.event-date {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-gold);
    text-align: right;
    border-right: 3px solid var(--color-gold);
    padding-right: 2rem;
}

.event-details h3 {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--color-ivory);
    margin-bottom: 0.5rem;
}

.event-details p {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.6;
}

/* Haldi Theme Override */
.event-haldi .event-date {
    color: #ffeb3b;
    border-color: #ffeb3b;
}

.event-haldi h3 {
    color: #ffeb3b;
}

/* SCENE 6: Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 3/4;
    background-color: #333;
}

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

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

/* SCENE 8: WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes ring {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(10deg);
    }

    30% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(5deg);
    }

    70% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0);
    }
}

.ring-animation {
    animation: ring 0.5s ease-in-out;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .event-block {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .event-date {
        border-right: none;
        border-bottom: 2px solid var(--color-gold);
        padding-right: 0;
        padding-bottom: 1rem;
        text-align: center;
    }

    .bride-name,
    .groom-name {
        font-size: 3.5rem;
    }

    .mantra-text {
        font-size: 1.2rem;
    }
}