/* =====================================================
   LUMINA GLASS - Elegant Floral Wedding Template
   Design System & Core Styles
===================================================== */

/* =====================================================
   CSS VARIABLES - Design Tokens
===================================================== */
:root {
    /* Color Palette - Romantic & Elegant */
    --color-bg-dark: #1a1512;
    --color-bg-deep: #0d0b0a;
    --color-bg-card: rgba(26, 21, 18, 0.9);

    --color-gold: #d4a574;
    --color-gold-light: #e8c9a7;
    --color-gold-dark: #b08d5b;

    --color-cream: #f5efe6;
    --color-cream-soft: #ebe3d5;

    --color-rose: #d4a5a5;
    --color-rose-dark: #a67c7c;

    --color-text-primary: #f5efe6;
    --color-text-secondary: rgba(245, 239, 230, 0.7);
    --color-text-muted: rgba(245, 239, 230, 0.5);

    /* Typography */
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Borders & Shadows */
    --border-light: 1px solid rgba(212, 165, 116, 0.2);
    --border-gold: 1px solid rgba(212, 165, 116, 0.4);
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(212, 165, 116, 0.15);

    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =====================================================
   RESET & BASE STYLES
===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-serif);
    background-color: var(--color-bg-deep);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
.script-font {
    font-family: var(--font-script);
    font-weight: 400;
}

.arabic-text {
    font-family: 'Scheherazade New', 'Amiri', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-gold);
    letter-spacing: 0.02em;
    direction: rtl;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
}

/* =====================================================
   LAYOUT
===================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* =====================================================
   FLORAL DECORATIONS
===================================================== */
.floral-decor {
    position: fixed;
    width: 250px;
    height: 250px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    background-size: contain;
    background-repeat: no-repeat;
}

.floral-top-left {
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3ClinearGradient id='gold' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23d4a574'/%3E%3Cstop offset='100%25' style='stop-color:%23e8c9a7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23gold)' d='M0,0 Q80,20 60,80 Q40,120 0,100 Z' opacity='0.4'/%3E%3Ccircle cx='30' cy='30' r='8' fill='url(%23gold)' opacity='0.6'/%3E%3Ccircle cx='50' cy='60' r='5' fill='url(%23gold)' opacity='0.4'/%3E%3Cpath fill='none' stroke='url(%23gold)' stroke-width='1' d='M10,60 Q40,40 70,50' opacity='0.5'/%3E%3Cpath fill='none' stroke='url(%23gold)' stroke-width='1' d='M5,80 Q35,60 50,90' opacity='0.4'/%3E%3C/svg%3E");
}

.floral-top-right {
    top: 0;
    right: 0;
    transform: scaleX(-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3ClinearGradient id='gold' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23d4a574'/%3E%3Cstop offset='100%25' style='stop-color:%23e8c9a7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23gold)' d='M0,0 Q80,20 60,80 Q40,120 0,100 Z' opacity='0.4'/%3E%3Ccircle cx='30' cy='30' r='8' fill='url(%23gold)' opacity='0.6'/%3E%3Ccircle cx='50' cy='60' r='5' fill='url(%23gold)' opacity='0.4'/%3E%3Cpath fill='none' stroke='url(%23gold)' stroke-width='1' d='M10,60 Q40,40 70,50' opacity='0.5'/%3E%3Cpath fill='none' stroke='url(%23gold)' stroke-width='1' d='M5,80 Q35,60 50,90' opacity='0.4'/%3E%3C/svg%3E");
}

.floral-bottom-left {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3ClinearGradient id='gold' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23d4a574'/%3E%3Cstop offset='100%25' style='stop-color:%23e8c9a7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23gold)' d='M0,0 Q80,20 60,80 Q40,120 0,100 Z' opacity='0.4'/%3E%3Ccircle cx='30' cy='30' r='8' fill='url(%23gold)' opacity='0.6'/%3E%3Ccircle cx='50' cy='60' r='5' fill='url(%23gold)' opacity='0.4'/%3E%3Cpath fill='none' stroke='url(%23gold)' stroke-width='1' d='M10,60 Q40,40 70,50' opacity='0.5'/%3E%3Cpath fill='none' stroke='url(%23gold)' stroke-width='1' d='M5,80 Q35,60 50,90' opacity='0.4'/%3E%3C/svg%3E");
}

.floral-bottom-right {
    bottom: 0;
    right: 0;
    transform: scale(-1, -1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3ClinearGradient id='gold' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23d4a574'/%3E%3Cstop offset='100%25' style='stop-color:%23e8c9a7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23gold)' d='M0,0 Q80,20 60,80 Q40,120 0,100 Z' opacity='0.4'/%3E%3Ccircle cx='30' cy='30' r='8' fill='url(%23gold)' opacity='0.6'/%3E%3Ccircle cx='50' cy='60' r='5' fill='url(%23gold)' opacity='0.4'/%3E%3Cpath fill='none' stroke='url(%23gold)' stroke-width='1' d='M10,60 Q40,40 70,50' opacity='0.5'/%3E%3Cpath fill='none' stroke='url(%23gold)' stroke-width='1' d='M5,80 Q35,60 50,90' opacity='0.4'/%3E%3C/svg%3E");
}

/* =====================================================
   FLOATING PETALS
===================================================== */
.floating-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(ellipse at center, var(--color-gold-light) 0%, transparent 70%);
    border-radius: 50% 0 50% 0;
    opacity: 0.4;
    animation: floatPetal 15s infinite ease-in-out;
}

@keyframes floatPetal {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-open {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg-dark);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-glow);
}

.btn-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(212, 165, 116, 0.4);
}

.btn-open .btn-icon {
    font-size: 1.2rem;
}

.btn-calendar,
.btn-map,
.btn-copy,
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    color: var(--color-gold);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: var(--border-gold);
    border-radius: 30px;
    transition: var(--transition-base);
}

.btn-calendar:hover,
.btn-map:hover,
.btn-copy:hover,
.btn-submit:hover {
    background: var(--color-gold);
    color: var(--color-bg-dark);
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    margin-top: var(--space-sm);
}

/* =====================================================
   SECTION TITLES
===================================================== */
.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* =====================================================
   REVEAL ANIMATIONS
===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* =====================================================
   FOOTER
===================================================== */
.footer {
    padding: var(--space-lg);
    text-align: center;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.3);
}

/* =====================================================
   MUSIC PLAYER
===================================================== */
.music-player {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
}

.music-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
}

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

.music-toggle.playing {
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: var(--shadow-glow);
    }

    50% {
        box-shadow: 0 0 60px rgba(212, 165, 116, 0.5);
    }
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .floral-decor {
        width: 150px;
        height: 150px;
        opacity: 0.4;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .music-player {
        bottom: var(--space-sm);
        right: var(--space-sm);
    }

    .music-toggle {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .floral-decor {
        width: 100px;
        height: 100px;
    }
}