/* assets/css/style.css - Luxury Eco Aesthetics, Carousels & Mobile Optimization */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,700&family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism */
.glass-nav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shadows & Glow */
.shadow-soft {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.shadow-card-hover {
    box-shadow: 0 20px 40px -15px rgba(22, 163, 74, 0.12), 0 0 20px -5px rgba(0, 0, 0, 0.04);
}

/* Floating Animation */
@keyframes floatGentle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0.8deg); }
}

.animate-float-gentle {
    animation: floatGentle 4s ease-in-out infinite;
}

/* Pulse Glow for Floating CTA */
@keyframes pulseGlowGreen {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
}

.animate-pulse-whatsapp {
    animation: pulseGlowGreen 2.2s infinite;
}

/* Hero Carousel Styles */
.hero-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    display: block;
    opacity: 1;
}

/* Story Highlight Bubbles */
.story-bubble {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.story-bubble:active {
    transform: scale(0.92);
}

/* Product Card Zoom Effect */
.product-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-image-box {
    position: relative;
    overflow: hidden;
}

.product-image-box img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-box img {
    transform: scale(1.09);
}

/* Before & After Interactive Comparison Slider */
.ba-slider-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
}

.ba-slider-before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
    z-index: 2;
}

.ba-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #ffffff;
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #166534;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid #ffffff;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
    padding-bottom: env(safe-area-inset-bottom, 8px);
}

/* Toast styling */
#toastContainer {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    max-width: 380px;
    margin: 0 auto;
    z-index: 9999;
    pointer-events: none;
}

@media (min-width: 640px) {
    #toastContainer {
        bottom: 24px;
        left: 24px;
        right: auto;
        margin: 0;
    }
}

.toast {
    pointer-events: auto;
    animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Carousel Horizontal Snap Scroll */
.snap-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.snap-carousel::-webkit-scrollbar {
    display: none;
}
.snap-carousel-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}
