:root {
    --primary-bg: #070707;
    --text-main: #f5f5f5;
    --text-muted: #aaaaaa;
    --gold: #dfb160;
    --gold-light: #f5d18d;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(223, 177, 96, 0.15);
    
    /* Arabic Premium Fonts */
    --font-heading: 'Amiri', serif;
    --font-script: 'Amiri', serif;
    --font-body: 'Cairo', sans-serif;
}

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

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    text-align: right;
}

/* Fluid Utilities */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-column {
    flex-direction: column;
}
.text-center {
    text-align: center;
}
.hidden {
    display: none !important;
}
.text-gold {
    color: var(--gold);
}
.mt-4 {
    margin-top: 2rem;
}
.mb-4 {
    margin-bottom: 2rem;
}
.inline-block {
    display: inline-block;
}

/* Fluid Typography (Mobile Optimized) */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}
.pre-title {
    font-size: clamp(0.9rem, 4vw, 1.5rem);
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}
.main-title {
    font-size: clamp(2.8rem, 14vw, 8rem);
    line-height: 1.2;
    margin: 1rem 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    font-family: var(--font-script);
}
.date {
    font-size: clamp(1rem, 4vw, 1.8rem);
    margin-top: 1rem;
    font-family: var(--font-body);
    color: var(--text-muted);
}
.section-title {
    font-size: clamp(2.2rem, 8vw, 4rem);
    margin-bottom: 0.5rem;
}
.desc {
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    line-height: 1.8;
    color: var(--text-muted);
    padding: 0 1rem;
}
.divider {
    height: 1.5px;
    width: 120px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.5rem auto 2.5rem;
}

/* Layout */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 0;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0; right: 0; width: 100%; height: 100vh;
    background: #000;
    z-index: 9999;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
}
.overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}
.envelope-container {
    background: transparent;
    padding: 3rem 1.5rem;
    width: 100%;
}
.welcome-title {
    font-size: clamp(2rem, 8vw, 4.5rem);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}
.welcome-subtitle {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 3.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}
.glass-btn {
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--gold);
    padding: 0.8rem 2rem;
    font-size: clamp(0.9rem, 3.5vw, 1.3rem);
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}
.glass-btn:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 30px rgba(223, 177, 96, 0.4);
}

/* Hero */
main {
    animation: fadeIn 2s ease-in-out;
}
.hero {
    min-height: 100vh;
    position: relative;
    padding: 1rem;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; right: 0; width: 110%; height: 110%;
    background: url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0; right: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.95) 100%);
    z-index: 1;
}
.hero-glass {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    width: 100%;
}

/* Aesthetic Image above names */
.hero-couple-img-container {
    width: clamp(140px, 35vw, 220px);
    height: clamp(180px, 45vw, 300px);
    margin: 0 auto 1.5rem;
    border-radius: 200px 200px 10px 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    border: 2px solid rgba(223, 177, 96, 0.4);
}
.hero-couple-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
}
.aesthetic-word {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 3.5vw, 1.3rem);
    margin-bottom: 0.3rem;
    letter-spacing: 0px;
    opacity: 0.8;
}

/* Cinematic Autopanning */
@keyframes panImage {
    0% { transform: scale(1.0) translate(0%, 0%); }
    100% { transform: scale(1.15) translate(2%, 2%); }
}
.pan-img {
    animation: panImage 40s linear infinite alternate;
}

/* Scroll indicator */
.scroll-indicator {
    position: relative;
    margin-top: clamp(2rem, 6vh, 4rem);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gold-light);
    font-size: 0.8rem;
}
.scroll-indicator p { margin-bottom: 0.5rem; opacity: 0.9; font-family: var(--font-body); }
.mouse {
    width: 18px;
    height: 30px;
    border: 1px solid var(--gold-light);
    border-radius: 20px;
    position: relative;
}
.wheel {
    width: 2px; height: 5px;
    background: var(--gold);
    position: absolute; top: 5px; left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}
@keyframes scrollWheel {
    0% { top: 5px; opacity: 1; height: 5px; }
    100% { top: 18px; opacity: 0; height: 2px; }
}

/* Story Section */
.story-section {
    padding: clamp(4rem, 15vw, 12rem) 1rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(10,10,10,1) 100%);
}
.story-text {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 7vw, 3.5rem);
    line-height: 1.6;
    margin: 10vh auto;
    max-width: 900px;
    color: #e0e0e0;
}

/* Video Section */
.video-section {
    width: 100%;
    padding: 0;
    margin: 3rem 0;
    background: #000;
    display: flex;
    justify-content: center;
}
.video-container {
    width: clamp(280px, 90vw, 900px);
    margin: 0 auto;
    position: relative;
    border-radius: 500px 500px 20px 20px; /* Perfect top half-circle arch */
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(223, 177, 96, 0.2);
    border: 3px solid var(--gold);
    border-top-width: 6px;
}
.cinematic-video {
    width: 100%;
    height: auto;
    min-height: 50vh;
    max-height: 80vh;
    object-fit: cover;
    display: block;
}

/* Swiper Carousel */
.gallery {
    padding: clamp(2rem, 8vw, 6rem) 0;
    background: #070707;
    overflow: hidden;
}
.swiper {
    width: 100%;
    padding: 20px 0 60px;
}
.swiper-slide {
    width: clamp(240px, 80vw, 600px); /* 80vw for mobile */
    height: clamp(340px, 110vw, 800px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
    border: 1px solid rgba(255,255,255,0.05);
}
.swiper-slide img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 15s linear;
}
.swiper-slide-active img {
    transform: scale(1.08); /* Slow zoom effect on active */
}
.swiper-pagination-bullet { background: var(--text-muted); opacity: 0.3; }
.swiper-pagination-bullet-active { background: var(--gold); opacity: 1; box-shadow: 0 0 15px var(--gold); }

/* Static Masonry Gallery */
.static-gallery {
    padding: clamp(2rem, 8vw, 6rem) 0;
}
.masonry-grid {
    column-count: 3;
    column-gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}
@media (max-width: 1024px) { .masonry-grid { column-count: 2; } }
@media (max-width: 600px) { .masonry-grid { column-count: 1; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}
.masonry-item img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

/* Location Section */
.location-section {
    padding: clamp(3rem, 10vw, 8rem) 0;
}
.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(223, 177, 96, 0.2);
}
.map-container iframe {
    height: clamp(300px, 60vw, 450px);
}
.map-btn-wrapper {
    margin-top: 2rem;
}
.map-btn {
    font-size: clamp(0.95rem, 4vw, 1.5rem);
    padding: 1rem 2rem;
    border-radius: 50px;
}

/* Auto-Surprise Section */
.surprise-section {
    padding: clamp(4rem, 12vw, 10rem) 1rem;
    position: relative;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(7,7,7,1) 100%);
    min-height: 90vh;
}
.cake-container {
    position: relative;
    margin: 3rem auto;
    width: clamp(220px, 75vw, 400px);
    height: clamp(300px, 105vw, 600px);
    border-radius: 10px;
    overflow: hidden;
}
.cake-img {
    width: 100%; height: 100%; object-fit: cover;
    box-shadow: 0 0 40px rgba(223, 177, 96, 0.15);
}
#animation-layer {
    position: absolute; top: 50%; right: 50%; 
    transform: translate(50%, -50%); 
    width: 100%; height: 100%; pointer-events: none; z-index: 10;
}

/* Balloons & Flares */
.balloon {
    position: absolute;
    width: clamp(35px, 10vw, 60px);
    height: clamp(45px, 12vw, 75px);
    background: var(--gold);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.5), inset 3px 3px 10px rgba(255,255,255,0.4);
    animation: floatUp 5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    bottom: -100px; opacity: 0;
}
@keyframes floatUp {
    0% { transform: translateY(0) scale(0.5); opacity: 1; }
    50% { opacity: 1; }
    100% { transform: translateY(-900px) scale(1.3); opacity: 0; }
}
.flare {
    position: absolute;
    width: 4px; height: 4px; background: #fff; border-radius: 50%;
    box-shadow: 0 0 10px 4px var(--gold-light), 0 0 20px 8px var(--gold);
    animation: popFlare 2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; opacity: 0;
}
@keyframes popFlare {
    0% { transform: scale(0) translate(0, 0); opacity: 1; }
    20% { opacity: 1; }
    100% { transform: scale(2) translate(var(--dx), var(--dy)); opacity: 0; }
}

/* Generic Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.1, 0.9, 0.2, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

.pulse { animation: heartbeat 3s infinite; }
@keyframes heartbeat {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(223, 177, 96, 0.1); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(223, 177, 96, 0.3); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(223, 177, 96, 0.1); }
}

/* Footer */
.footer {
    padding: 2rem 1rem; background: #020202;
    color: var(--text-muted); font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    font-family: var(--font-body);
}
