/* ==========================================================================
   CSS VARIABLES & GLOBAL STYLES
   ========================================================================== */
   :root {
    --gold: #D4AF37;
    --white: #FFFFFF;
    --soft-pink: #FFD1DC;
    --champagne: #F7E7CE;
    --light-purple: #E6E6FA;
    --dark-text: #333333;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(212, 175, 55, 0.4);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    cursor: none; 
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, .quran-verse {
    font-family: var(--font-heading);
}

.quran-verse {
    font-family: var(--font-arabic);
}

.section-padding {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--white) 0%, var(--soft-pink) 50%, var(--light-purple) 100%);
}

.section-title {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 50px;
    text-shadow: 1px 1px 5px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease, visibility 1s ease;
}

.loader-content {
    text-align: center;
    color: var(--gold);
}

.loader-rings {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite alternate;
}

.loader-rings i:nth-child(2) {
    margin-left: -15px;
    color: var(--soft-pink);
}

/* ==========================================================================
   UI COMPONENTS & GLASSMORPHISM
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.btn-primary, .btn-secondary {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-family: var(--font-body);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gold), #ffdf73);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--white);
}

#music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    color: var(--gold);
    z-index: 100;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
}

#music-toggle:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   SECTION 1: HERO
   ========================================================================== */
#hero {
    height: 100vh;
    background: url('assets/images/cover.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.rings-animation {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.couple-names {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 40px;
    color: var(--champagne);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
}

.time-box {
    text-align: center;
}

.time-box span {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gold);
    display: block;
}

.time-box p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   SECTION 2: MESSAGE & QURAN
   ========================================================================== */
#message .golden-border {
    border: 2px solid var(--gold);
    padding: 50px 30px;
    position: relative;
}

.english-message {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
}

.divider {
    height: 2px;
    width: 100px;
    background: var(--gold);
    margin: 0 auto 30px;
}

.quran-verse {
    font-size: 2rem;
    color: var(--gold);
    line-height: 1.6;
}

/* ==========================================================================
   SECTION 3: GALLERY
   ========================================================================== */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.img-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.img-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.gallery-item:hover .img-overlay {
    opacity: 1;
}

.gallery-item:hover .img-overlay i {
    transform: scale(1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    animation: zoomIn 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: 30px; right: 40px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
}

/* ==========================================================================
   SECTION 4: DETAILS
   ========================================================================== */
.timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.timeline-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.timeline-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-item p {
    font-size: 1.2rem;
    color: #666;
}

/* ==========================================================================
   SECTION 5: LOCATION
   ========================================================================== */
.map-container {
    padding: 20px;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: #e9ecef;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    border: 2px dashed var(--gold);
}

.animated-pin {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.address-details p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   SECTION 6: FINAL MESSAGE & QR CODE
   ========================================================================== */
#qr-section {
    background: url('assets/images/gallery1.jpg') center/cover fixed;
    position: relative;
    color: var(--white);
    text-align: center;
}

.rsvp-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.arabic-message {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
    font-family: var(--font-arabic);
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.qr-frame {
    width: 250px;
    height: 250px;
    background: var(--white);
    padding: 15px;
    border-radius: 20px;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.qr-frame:hover {
    transform: scale(1.05);
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    box-shadow: 0 0 15px var(--gold);
    animation: scan 3s infinite linear;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.qr-hint {
    color: var(--champagne);
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #1a1a1a;
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

.footer-hearts {
    margin-top: 20px;
    color: var(--soft-pink);
    font-size: 1.2rem;
}

.footer-hearts i {
    margin: 0 10px;
    animation: pulse 1.5s infinite alternate;
}

/* ==========================================================================
   ANIMATIONS & PARTICLES
   ========================================================================== */
@keyframes pulse {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.1); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#particles-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--gold) 0%, rgba(212,175,55,0) 70%);
    border-radius: 50%;
    opacity: 0.6;
    animation: drift linear infinite;
}

@keyframes drift {
    from { transform: translateY(100vh) rotate(0deg); }
    to { transform: translateY(-10vh) rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .couple-names { font-size: 3rem; }
    .countdown-container { flex-wrap: wrap; }
    .time-box span { font-size: 1.8rem; }
    .section-title { font-size: 2.2rem; }
    .english-message, .quran-verse { font-size: 1.2rem; }
    .arabic-message { font-size: 1.8rem; }
    .qr-frame { width: 200px; height: 200px; }
    .cursor-dot, .cursor-outline { display: none; } 
    html { cursor: auto; }
}