/* Custom Style Rules for Mina & Nancy - White & Gold Theme */

:root {
    --gold-gradient: linear-gradient(135deg, #f5e2b3 0%, #d4af37 50%, #aa7c11 100%);
    --rose-gradient: linear-gradient(135deg, #ffe4e6 0%, #b85c72 50%, #881337 100%);
    --luxury-bg: #FAF5EB; /* Softer, calm warm ivory background */
    --card-bg: #ffffff;
    --text-primary: #2C2A29;
    --text-secondary: #5C5854;
    --text-light: #8C8680;
    --gold-accent: #c5a059;
}

/* Base resets & styles */
html {
    -webkit-tap-highlight-color: transparent;
}

body {
    background: radial-gradient(ellipse at 40% 30%, #fffdf5 0%, #faf5eb 40%, #f5ead8 80%, #ede0c4 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
}

/* Three.js canvas always behind content */
#three-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(250, 245, 235, 0.95);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* Active navigation link (Gold with white outline & glow) */
.nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #aa7c11, #d4af37) !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 5px rgba(212, 175, 55, 0.3) !important;
}

/* Glassmorphism utility with visible gold border and white glow */
.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.95), 0 8px 32px rgba(212, 175, 55, 0.06);
}

/* Gold Text with White Glow Filter (sheen) */
.gold-text-glow {
    color: #aa7c11;
    background: linear-gradient(to bottom, #d4af37, #aa7c11);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

/* Custom Animations */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}
.animate-pulse-ring {
    animation: pulse-ring 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Falling Hearts */
.heart-particle {
    position: absolute;
    top: -24px;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    animation: fall-down 8s linear infinite;
}

@keyframes fall-down {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(105vh) translateX(var(--drift, 50px)) rotate(var(--rotation, 360deg)) scale(var(--scale, 1.2));
        opacity: 0;
    }
}

/* Timeline filter tab styling */
.timeline-tab {
    border: 2px solid rgba(212, 175, 55, 0.35) !important;
    background: #ffffff !important;
    color: #aa7c11 !important;
    transition: all 0.3s ease;
}
.timeline-tab.active {
    background: linear-gradient(135deg, #aa7c11, #d4af37) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 4px 12px rgba(212, 175, 55, 0.25) !important;
}

/* Slider Carousel Styles */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 8px 0;
}

.slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    will-change: transform;
    cursor: grab;
}

.slider-track:active {
    cursor: grabbing;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
    transition: opacity 0.4s ease;
}

/* Dots indicators */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #d4af37;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Slider navigation buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #d4af37 !important;
    color: #aa7c11 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    z-index: 10;
    transition: all 0.3s ease;
    user-select: none;
}

.slider-btn:hover {
    background: linear-gradient(135deg, #d4af37, #aa7c11) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 1) !important;
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.92);
}

.slider-btn.prev {
    left: 4px;
}

.slider-btn.next {
    right: 4px;
}

/* Slide Cards (White body with distinct gold border and white glow shadow) */
.slide-card {
    background: #ffffff !important;
    border: 2.5px solid #d4af37 !important;
    border-radius: 1.5rem !important;
    padding: 1rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 4px 15px rgba(212, 175, 55, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-card:hover {
    transform: translateY(-4px);
    border-color: #aa7c11 !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 8px 25px rgba(212, 175, 55, 0.15) !important;
}

/* Countdown Timer Boxes */
.countdown-box {
    border: 2px solid rgba(212, 175, 55, 0.45) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 4px 10px rgba(212, 175, 55, 0.05) !important;
}

/* Church & Reception Cards */
.location-card {
    border: 2.5px solid #d4af37 !important;
    background: #ffffff !important;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.95), 0 6px 20px rgba(212, 175, 55, 0.07) !important;
}

/* Wishes Card */
.wishes-card {
    border: 2.5px solid #d4af37 !important;
    background: #ffffff !important;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.95), 0 6px 20px rgba(212, 175, 55, 0.07) !important;
}

/* Gold Button with White Glow separator */
.whatsapp-btn {
    background: linear-gradient(135deg, #aa7c11 0%, #d4af37 50%, #aa7c11 100%) !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(212, 175, 55, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e, #25d366) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 1) !important;
}

/* Image zoom & details */
.lightbox-open {
    overflow: hidden;
}

.lightbox-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(44, 42, 41, 0.92), rgba(104, 71, 12, 0.92));
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24), 0 0 12px rgba(255, 255, 255, 0.75);
    z-index: 5;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lightbox-close-btn span {
    display: block;
    transform: translateY(-1px);
    font-weight: 700;
}

.lightbox-close-btn::after {
    content: '';
}

.lightbox-close-btn:hover,
.lightbox-close-btn:focus-visible {
    transform: scale(1.06);
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.98), rgba(170, 124, 17, 0.98));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26), 0 0 20px rgba(255, 255, 255, 0.95);
    outline: none;
}

.lightbox-close-btn:active {
    transform: scale(0.96);
}

/* English/Serif Typography fine-tuning */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Outfit', sans-serif;
}

/* Heartbeat Animation */
.animate-pulse-heart {
    animation: heartbeat 1.2s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    40% {
        transform: scale(1.05);
    }
    60% {
        transform: scale(1.15);
    }
}

/* ─── Language Toggle Button ─── */
.lang-toggle-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #d4af37, #aa7c11);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.6),
        0 4px 14px rgba(212, 175, 55, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    user-select: none;
}

.lang-toggle-btn:hover {
    transform: scale(1.06);
    filter: brightness(1.1);
    box-shadow:
        0 0 18px rgba(255, 255, 255, 0.9),
        0 6px 20px rgba(212, 175, 55, 0.45);
}

.lang-toggle-btn:active {
    transform: scale(0.96);
}

/* ─── Brand Logo Button ─── */
.brand-logo {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 60;
}

html[dir="rtl"] .brand-logo {
    left: auto;
    right: 1rem;
}

/* Arabic mode global overrides */
html[dir="rtl"] body {
    font-family: 'Tajawal', 'Outfit', sans-serif;
}

