﻿/* ==========================================================================
   STYLE.CSS | Luxury Digital Wedding Experience
   ========================================================================== */
:root {
    --charcoal-black: #111315;
    --midnight-blue: #0B1220;
    --deep-navy: #16213E;
    --dark-indigo: #312E81;
    --royal-purple: #5B21B6;
    --electric-blue: #3B82F6;
    --cyan-glow: #22D3EE;
    --platinum-silver: #E5E7EB;
    --pure-white: #FFFFFF;
    --soft-rose-gold: #B76E79;
    --champagne-gold: #F7E7CE;
    
    --glass-bg: rgba(17, 19, 21, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Playfair Display', serif;
    --font-arabic: 'Cairo', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif-alt: 'Cormorant Garamond', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
    background-color: var(--charcoal-black);
    color: var(--platinum-silver);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--pure-white);
    font-weight: 400;
}

.arabic-text { font-family: var(--font-arabic); }

.section-padding {
    padding: 100px 5%;
    position: relative;
    z-index: 10;
}

/* تعديل العنوان لضمان ظهوره بشكل سليم مع التدرج اللوني */
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--pure-white), var(--platinum-silver), var(--soft-rose-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

/* ==========================================================================
   WELCOME SCREEN & PURE CSS WAX SEAL WITH RIBBON
   ========================================================================== */
#welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--midnight-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.welcome-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.welcome-text {
    font-size: 1.5rem;
    color: var(--champagne-gold);
    letter-spacing: 1px;
    animation: pulseText 2s infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.seal-container {
    position: relative;
    width: 350px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ribbon {
    position: absolute;
    height: 8px;
    background: linear-gradient(to bottom, #5c4033, #3b2818);
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    z-index: 1;
}

.ribbon-left {
    left: 0;
    width: 50%;
    border-radius: 4px 0 0 4px;
}

.ribbon-right {
    right: 0;
    width: 50%;
    border-radius: 0 4px 4px 0;
}

.css-wax-seal {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, #a71d2a, #660a13);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 
        inset 0 0 15px rgba(0,0,0,0.6),
        0 8px 20px rgba(0,0,0,0.8),
        0 0 5px #3a0005;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.css-wax-seal:hover {
    transform: scale(1.1) rotate(5deg);
}

.seal-inner-ring {
    position: absolute;
    width: 86px;
    height: 86px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.3);
}

.seal-initials {
    font-family: var(--font-serif-alt);
    font-size: 2.2rem;
    color: #f7e7ce;
    font-weight: 600;
    text-shadow: 1px 2px 3px rgba(0,0,0,0.6);
    z-index: 3;
}

.seal-container.is-broken .ribbon-left {
    transform: translate(-100px, -60px) rotate(-30deg);
    opacity: 0;
}

.seal-container.is-broken .ribbon-right {
    transform: translate(100px, 60px) rotate(30deg);
    opacity: 0;
}

.seal-container.is-broken .css-wax-seal {
    transform: scale(1.6);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s ease 0.2s;
}

/* ==========================================================================
   HERO ANIMATIONS (STAGGERED FADE-IN)
   ========================================================================== */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
}

body.site-loaded .hero-anim {
    animation: fadeInUp 1s ease forwards;
}

body.site-loaded .subtitle { animation-delay: 0.3s; }
body.site-loaded .hero-name:nth-of-type(1) { animation-delay: 0.7s; } 
body.site-loaded .ampersand { animation-delay: 1.1s; } 
body.site-loaded .hero-name:nth-of-type(2) { animation-delay: 1.5s; } 
body.site-loaded .date { animation-delay: 2.0s; }
body.site-loaded .scroll-indicator { animation-delay: 2.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MUSIC TOGGLE
   ========================================================================== */
#music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#music-toggle i {
    font-size: 1.2rem;
    color: var(--cyan-glow);
    transition: color 0.3s ease;
}

#music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
}

#music-toggle:hover i { color: var(--pure-white); }

/* ==========================================================================
   BACKGROUND & EFFECTS
   ========================================================================== */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    background: var(--midnight-blue);
}

.gradient-blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
    opacity: 0.6;
}

.shape-1 { width: 600px; height: 600px; background: var(--dark-indigo); top: -10%; left: -10%; }
.shape-2 { width: 500px; height: 500px; background: var(--deep-navy); bottom: -10%; right: -10%; animation-delay: -5s; }
.shape-3 { width: 400px; height: 400px; background: var(--royal-purple); top: 40%; left: 40%; animation-delay: -10s; }

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ==========================================================================
   WEDDING BOKEH LIGHTS
   ========================================================================== */
#wedding-lights-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.bokeh-light {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,215,0,0.4) 30%, rgba(255,255,255,0) 70%);
    filter: blur(4px);
    opacity: 0;
    animation: flash 6s infinite ease-in-out;
}

@keyframes flash {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.6; transform: scale(1.5); }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#main-content {
    position: relative;
    z-index: 10;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

#hero-card {
    padding: 5rem 4rem;
    text-align: center;
    max-width: 850px;
    width: 100%;
    background: rgba(13, 17, 28, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero .subtitle {
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--champagne-gold);
    margin-bottom: 2.5rem;
    font-family: var(--font-body);
    font-weight: 400;
}

.hero .title {
    font-size: clamp(4rem, 8vw, 6.5rem);
    line-height: 1.1;
    margin-bottom: 2.5rem;
}

.hero-name {
    display: block;
    color: var(--pure-white);
}

.ampersand {
    display: block;
    font-family: var(--font-serif-alt);
    font-style: italic;
    color: var(--soft-rose-gold);
    font-size: 0.7em;
    margin: 10px 0;
    font-weight: 400;
}

.hero .date {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pure-white);
    margin-bottom: 3rem;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.6);
}

.mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.wheel {
    width: 3px;
    height: 6px;
    background: var(--cyan-glow);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* ==========================================================================
   COUNTDOWN
   ========================================================================== */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

.time-glass:hover {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.2);
}

.time-glass span {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--pure-white);
    line-height: 1;
}

.time-glass p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    color: var(--champagne-gold);
}

/* ==========================================================================
   DETAILS, LOCATION & MINI MAP
   ========================================================================== */
.details-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
}

.icon-ring {
    font-size: 2.5rem;
    color: var(--soft-rose-gold);
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.detail-row i {
    font-size: 1.5rem;
    color: var(--cyan-glow);
}

.location-wrapper {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.location-row {
    margin: 0 0 2rem 0;
}

.map-icon-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-icon-container i {
    font-size: 1.5rem;
    color: var(--pure-white);
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--electric-blue);
    opacity: 0.2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.mini-map-container {
    margin: 20px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.mini-map-container:hover {
    border-color: var(--cyan-glow);
    transform: translateY(-5px);
}

.luxury-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--pure-white);
    color: var(--charcoal-black);
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    font-family: var(--font-body);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.luxury-btn:hover {
    background: var(--cyan-glow);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.5);
    color: var(--charcoal-black);
    transform: scale(1.05);
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--cyan-glow), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    width: 100%;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--cyan-glow);
}

.timeline-content h3 {
    color: var(--cyan-glow);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-family: var(--font-serif-alt);
    font-size: 1.2rem;
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--pure-white);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* ==========================================================================
   QURAN VERSE & GALLERY
   ========================================================================== */
.quran-verse {
    text-align: center;
    margin: 0 auto 3rem auto;
    padding: 2rem;
    max-width: 800px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.quran-verse h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--champagne-gold);
    line-height: 1.8;
    font-weight: 600;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.footer-names {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.footer-names .accent {
    color: var(--soft-rose-gold);
    font-style: italic;
    font-family: var(--font-serif-alt);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }
    .timeline-content { width: 100%; }
    .timeline-dot { left: 20px; }
    
    #hero-card { padding: 3rem 2rem; }
    .hero .title { font-size: 3.5rem; }
    
    .time-glass { width: 120px; height: 120px; }
    .time-glass span { font-size: 2.5rem; }
}