/* ==============================================
   الأساسيات والمتغيرات
   ============================================== */
:root {
    --gold: #c9a84c;
    --gold-light: #e0c878;
    --gold-dark: #8b6914;
    --ivory: #fcfaf5;
    --ivory-dark: #f0ebdd;
    --brown: #8b7355;
    --brown-dark: #5a4a3a;
    --text-dark: #3a3028;
    --text-medium: #6b5d4f;
    --text-light: #9c8b7a;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(90, 74, 58, 0.08);
    --shadow-medium: 0 15px 40px rgba(90, 74, 58, 0.12);
    --shadow-gold: 0 10px 30px rgba(201, 168, 76, 0.2);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #e8e0d5 0%, #d5c9b5 30%, #e0d6c4 60%, #ebe3d5 100%);
    background-attachment: fixed;
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* نقشة خلفية دقيقة */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(201, 168, 76, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 168, 76, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 115, 85, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ==============================================
   حاوية الموبايل الرئيسية
   ============================================== */
.mobile-container {
    background: linear-gradient(180deg, #fdfaf3 0%, #f8f2e5 30%, #fcf8f0 60%, #faf5ea 100%);
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    box-shadow: 
        0 0 0 1px rgba(201, 168, 76, 0.1),
        0 20px 60px rgba(90, 74, 58, 0.2),
        0 0 100px rgba(201, 168, 76, 0.05);
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.mobile-container.hidden {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
}

/* زخرفة الحواف العلوية */
.mobile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    z-index: 100;
    border-radius: 0 0 50% 50%;
}

/* ==============================================
   شاشة البداية الفاخرة (Preloader)
   ============================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #fdfaf3 0%, #f0e6d3 50%, #e5d5b8 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

#preloader.hide-intro {
    opacity: 0;
    visibility: hidden;
}

/* جسيمات الخلفية */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.envelope-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* الختم الشمعي */
.wax-seal {
    position: relative;
    z-index: 10;
    margin-bottom: -30px;
    animation: sealFloat 3s ease-in-out infinite;
}

.seal-inner {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #c41e3a, #8b1527);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 5px 15px rgba(139, 21, 39, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.2),
        inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid #a0182b;
    position: relative;
}

.seal-inner::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed rgba(201, 168, 76, 0.5);
    border-radius: 50%;
    animation: sealSpin 20s linear infinite;
}

.seal-inner span {
    font-family: 'Great Vibes', cursive;
    color: #ffd700;
    font-size: 1.2rem;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes sealFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes sealSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* الظرف ثلاثي الأبعاد */
.envelope-3d {
    position: relative;
    width: 220px;
    height: 170px;
    perspective: 800px;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.envelope-3d:hover {
    transform: scale(1.03);
}

.envelope-body {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 
        0 20px 50px rgba(90, 74, 58, 0.25),
        0 0 0 3px rgba(201, 168, 76, 0.3);
    transition: var(--transition-smooth);
    z-index: 2;
}

.envelope-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, #f5edd8 0%, #e8d9b5 100%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    z-index: 3;
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.envelope-shadow {
    position: absolute;
    bottom: -15px;
    left: 10%;
    width: 80%;
    height: 30px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
    z-index: 1;
    border-radius: 50%;
}

/* نص الضغط */
.click-text {
    font-family: 'Cairo', sans-serif;
    color: var(--brown);
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    animation: textPulse 2s ease-in-out infinite;
    letter-spacing: 1px;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

.pulse-ring {
    width: 80px;
    height: 80px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: absolute;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    animation: pulseRing 2s ease-out infinite;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    animation: pulseRing 2s ease-out 0.5s infinite;
}

@keyframes pulseRing {
    0% { transform: translateX(-50%) scale(0.8); opacity: 1; }
    100% { transform: translateX(-50%) scale(2); opacity: 0; }
}

/* ==============================================
   زر الموسيقى العائم
   ============================================== */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gold);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-smooth);
    animation: musicFloat 3s ease-in-out infinite;
}

.music-btn:hover {
    background: var(--gold);
    transform: scale(1.1);
}

.music-btn.playing {
    background: var(--gold);
    animation: musicPlaying 0.5s ease-in-out infinite;
}

.music-btn.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
}

@keyframes musicFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes musicPlaying {
    0%, 100% { box-shadow: var(--shadow-gold); }
    50% { box-shadow: 0 10px 40px rgba(201, 168, 76, 0.5); }
}

/* ==============================================
   الهيدر البطولي
   ============================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background-image: url('45287.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(20, 15, 10, 0.4) 30%,
        rgba(40, 30, 20, 0.5) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroEntrance 1.5s cubic-bezier(0.25, 0.8, 0.25, 1.2) forwards;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bismillah {
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.decorative-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.decorative-line .line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light));
}

.decorative-line .diamond {
    color: var(--gold-light);
    font-size: 0.8rem;
    animation: diamondPulse 2s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.welcome-text {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.main-names {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    line-height: 1;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.name-groom,
.name-bride {
    display: block;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.and-sign {
    font-size: 2rem;
    color: var(--gold-light);
    animation: andSignGlow 2s ease-in-out infinite;
}

@keyframes andSignGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(201, 168, 76, 0.5); }
    50% { text-shadow: 0 0 25px rgba(201, 168, 76, 0.9), 0 0 50px rgba(201, 168, 76, 0.3); }
}

.eternity-text {
    font-family: 'Amiri', serif;
    font-size: 1rem;
    color: var(--gold-light);
    margin: 15px 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* شارة التاريخ */
.date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 15px 30px;
    margin-top: 20px;
    transition: var(--transition-smooth);
}

.date-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.date-day {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--gold-light);
    line-height: 1;
}

.date-month {
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 3px;
}

.date-year {
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* مؤشر التمرير */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 5;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint span {
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

.scroll-arrow {
    color: rgba(255, 255, 255, 0.7);
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ==============================================
   الأقسام العامة
   ============================================== */
.section-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: var(--brown);
    text-align: center;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-top: 15px;
}

/* ==============================================
   قسم العد التنازلي
   ============================================== */
.countdown-section {
    padding: 50px 25px;
    text-align: center;
    position: relative;
}

.countdown-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(201, 168, 76, 0.1);
    position: relative;
    overflow: hidden;
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.timer-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.time-block {
    text-align: center;
    position: relative;
}

.flip-card {
    background: linear-gradient(180deg, #fdfaf3 0%, #f8f2e5 100%);
    border-radius: var(--radius-sm);
    padding: 15px 10px;
    min-width: 70px;
    box-shadow: 
        var(--shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(201, 168, 76, 0.2);
    position: relative;
    transition: var(--transition-smooth);
}

.flip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.time-value {
    font-family: 'Cairo', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brown-dark);
    display: block;
    line-height: 1;
}

.time-label {
    font-family: 'Cairo', sans-serif;
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
}

.time-separator {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    animation: separatorPulse 1s ease-in-out infinite;
}

@keyframes separatorPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* شريط التقدم */
.progress-container {
    margin-top: 25px;
    height: 4px;
    background: rgba(139, 115, 85, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
}

/* ==============================================
   قسم اللحظات (المعرض)
   ============================================== */
.moments-section {
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent, var(--ivory-dark), transparent);
}

.gallery-container {
    position: relative;
    margin: 25px 0;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    padding: 10px;
}

.gallery-item {
    min-width: 200px;
    flex-shrink: 0;
}

.polaroid {
    background: var(--white);
    padding: 10px 10px 40px 10px;
    border-radius: 5px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    position: relative;
}

.polaroid:hover {
    transform: rotate(-2deg) scale(1.03);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 5px 10px rgba(0, 0, 0, 0.05);
}

.polaroid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.polaroid-caption {
    font-family: 'Great Vibes', cursive;
    color: var(--brown);
    font-size: 1.2rem;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gold);
    color: var(--brown);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.gallery-nav:hover {
    background: var(--gold);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.gallery-nav.prev { left: 5px; }
.gallery-nav.next { right: 5px; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.gallery-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(139, 115, 85, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-dots .dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 10px;
}

.moments-date {
    font-family: 'Amiri', serif;
    color: var(--brown);
    font-size: 1rem;
    margin-top: 20px;
}

/* ==============================================
   قسم التفاصيل (الزمان والمكان)
   ============================================== */
.details-section {
    padding: 50px 20px;
    text-align: center;
}

.time-location-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(201, 168, 76, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.info-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.info-card h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--brown);
    margin-bottom: 15px;
}

.info-card .highlight {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 5px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

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

.time-number {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--brown-dark);
    display: block;
    line-height: 1;
}

.time-unit {
    font-size: 0.9rem;
    color: var(--text-medium);
    display: block;
}

.time-segment small {
    font-size: 0.7rem;
    color: var(--text-light);
    display: block;
    margin-top: 3px;
}

.time-divider span {
    font-family: 'Amiri', serif;
    color: var(--gold);
    font-size: 1rem;
}

/* إطار الصورة */
.building-frame {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.building-img {
    width: 100%;
    max-width: 350px;
    border-radius: var(--radius-md);
    opacity: 0.85;
    transition: var(--transition-smooth);
    filter: sepia(20%);
}

.building-img:hover {
    opacity: 1;
    filter: sepia(0%);
}

.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--gold);
    border-style: solid;
    transition: var(--transition-smooth);
}

.frame-corner.top-left {
    top: -5px;
    left: -5px;
    border-width: 2px 0 0 2px;
    border-radius: 5px 0 0 0;
}

.frame-corner.top-right {
    top: -5px;
    right: -5px;
    border-width: 2px 2px 0 0;
    border-radius: 0 5px 0 0;
}

.frame-corner.bottom-left {
    bottom: -5px;
    left: -5px;
    border-width: 0 0 2px 2px;
    border-radius: 0 0 0 5px;
}

.frame-corner.bottom-right {
    bottom: -5px;
    right: -5px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 5px 0;
}

/* ==============================================
   قسم الموقع والخريطة
   ============================================== */
.location-section {
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.03), transparent);
}

.location-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.location-card h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--brown);
    margin-bottom: 5px;
}

.location-card address {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.map-wrapper {
    margin: 20px 0;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.map-container:hover {
    box-shadow: var(--shadow-medium);
}

.map-link {
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.map-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-gold);
    border: none;
    text-decoration: none;
}

.map-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(201, 168, 76, 0.4);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pin-icon {
    animation: pinBounce 1s ease-in-out infinite;
}

@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==============================================
   قسم تأكيد الحضور
   ============================================== */
.rsvp-section {
    padding: 50px 20px;
    text-align: center;
}

.rsvp-card {
    background: linear-gradient(135deg, var(--white), var(--ivory));
    border-radius: var(--radius-lg);
    padding: 40px 25px;
    box-shadow: var(--shadow-medium);
    border: 2px solid rgba(201, 168, 76, 0.2);
    position: relative;
    overflow: hidden;
}

.rsvp-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
    animation: rsvpGlow 4s ease-in-out infinite;
}

@keyframes rsvpGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

.rsvp-decoration {
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
}

.decorative-flower {
    font-size: 3rem;
    animation: flowerFloat 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes flowerFloat {
    0%, 100% { transform: rotate(0deg) scale(1); }
    33% { transform: rotate(10deg) scale(1.1); }
    66% { transform: rotate(-10deg) scale(0.95); }
}

.rsvp-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--brown);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.rsvp-text {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.rsvp-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--brown), var(--brown-dark));
    color: var(--white);
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.rsvp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.rsvp-btn:hover::before {
    left: 100%;
}

.rsvp-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 50px rgba(90, 74, 58, 0.3);
}

.btn-text {
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
}

.btn-sub {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
}

.btn-arrow {
    font-size: 1.5rem;
    display: block;
    margin-top: 5px;
    animation: arrowFloat 2s ease-in-out infinite;
}

@keyframes arrowFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* المشاركة الاجتماعية */
.share-section {
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.share-section p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid rgba(201, 168, 76, 0.3);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.share-btn:hover {
    background: var(--gold);
    transform: scale(1.1);
    box-shadow: var(--shadow-gold);
}

.share-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brown-dark);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.share-btn:hover::after {
    opacity: 1;
}

/* ==============================================
   التذييل
   ============================================== */
.site-footer {
    padding: 50px 25px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(90, 74, 58, 0.05));
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-content {
    max-width: 350px;
    margin: 0 auto;
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--brown);
    margin-bottom: 5px;
}

.footer-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-quote {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 10px;
    font-style: italic;
}

.footer-verse {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* ==============================================
   تأثير تساقط الورد
   ============================================== */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ffd1dc, #ffb6c1, #ff9eaf);
    border-radius: 12px 0 12px 0;
    opacity: 0.7;
    animation: petalFall linear forwards;
    filter: blur(0.5px);
}

.petal:nth-child(odd) {
    background: linear-gradient(135deg, #ffe0e5, #ffc0cb, #ffb6c1);
    border-radius: 0 12px 0 12px;
}

.petal:nth-child(3n) {
    background: linear-gradient(135deg, #fff0f3, #ffd6df, #ffb6c1);
    width: 8px;
    height: 8px;
}

@keyframes petalFall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateX(30px) rotate(90deg) scale(0.9);
    }
    50% {
        transform: translateX(-20px) rotate(180deg) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translateX(15px) rotate(270deg) scale(0.7);
    }
    100% {
        top: 110%;
        transform: translateX(-10px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* ==============================================
   تأثيرات إضافية
   ============================================== */
/* تأثير التلاشي عند التمرير */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* تأثير النقر */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==============================================
   استجابة للشاشات
   ============================================== */
@media (max-width: 480px) {
    .main-names {
        font-size: 3.5rem;
    }
    
    .timer-grid {
        gap: 5px;
    }
    
    .flip-card {
        min-width: 60px;
        padding: 12px 8px;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .gallery-item {
        min-width: 160px;
    }
    
    .polaroid img {
        height: 140px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (min-width: 481px) {
    .time-location-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .info-card {
        flex: 1;
        min-width: 200px;
    }
    
    .time-card {
        flex: 2;
    }
}

/* ==============================================
   حركات إضافية للتفاعل
   ============================================== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-effect {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(201, 168, 76, 0.1) 25%, 
        rgba(201, 168, 76, 0.2) 50%, 
        rgba(201, 168, 76, 0.1) 75%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}