/* --- 1. DESIGN VARIABLES --- */
:root {
    --bg-deep: #030304;
    --bg-surface: #0a0a0c;
    --bg-glass: rgba(10, 10, 12, 0.85);
    --brand-blue: #3b82f6;
    --brand-glow: rgba(59, 130, 246, 0.4);
    --brand-accent: #06b6d4;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Amiri', serif;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-en);
    overflow-x: hidden;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

html[dir="rtl"] body { font-family: var(--font-ar); }

/* --- 2. LOADER --- */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 50px; height: 50px; border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--brand-blue); border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* --- 3. NAVIGATION --- */
nav {
    position: fixed; top: 0; width: 100%; height: 80px;
    padding: 0 5%; display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; background: var(--bg-glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.brand { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; color: white; display: flex; align-items: center; gap: 10px; }
.brand span { color: var(--brand-blue); }
.brand-icon { color: var(--brand-blue); }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    transition: 0.3s; position: relative;
}
.nav-links a:hover { color: white; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px;
    background: var(--brand-blue); transition: 0.3s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

.nav-controls { display: flex; align-items: center; gap: 20px; }
.lang-btn { background: none; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 5px 12px; border-radius: 4px; cursor: pointer; }
.live-indicator { display: flex; align-items: center; gap: 8px; }
.live-indicator span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px #10b981; animation: pulse-green 2s infinite; }
/* Status Colors */
.live-dot {
    width: 8px; height: 8px; 
    border-radius: 50%; 
    transition: 0.3s;
}

/* Open State (Green Pulse) */
.live-dot.open {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse-green 2s infinite;
}

/* Closed State (Red/Gray) */
.live-dot.closed {
    background: #ef4444; /* Red */
    box-shadow: none;
    animation: none;
}
/* Mobile Menu */
.mobile-toggle { display: none; color: white; background: none; border: none; font-size: 24px; cursor: pointer; }
.mobile-menu {
    position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
    background: var(--bg-deep); z-index: 2000;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
    transform: translateX(100%); transition: transform 0.4s var(--ease-out);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu a { font-size: 2rem; color: white; text-decoration: none; font-weight: 700; }
.close-menu { background: none; border: none; color: var(--text-muted); margin-top: 2rem; font-size: 1rem; cursor: pointer; display: flex; align-items: center; gap: 10px; }

/* --- 4. HERO (Using Real Image) --- */
.hero {
    min-height: 95vh; padding: 120px 5% 50px;
    display: flex; align-items: center;
    /* This uses the 'shop-bg.jpg' you will put in assets */
    background: linear-gradient(rgba(3, 3, 4, 0.9), rgba(3, 3, 4, 0.7)), 
                url('../assets/shop-bg.jpg');
    background-size: cover; background-position: center;
}
.hero-container { max-width: 900px; }
.hero-badge { color: var(--brand-blue); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; display: block; }

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.1; margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem); color: var(--text-muted);
    max-width: 650px; margin-bottom: 3rem; border-left: 3px solid var(--brand-blue);
    padding-left: 20px;
}

.btn-primary {
    padding: 1rem 2.5rem; background: white; color: black;
    font-weight: 800; border-radius: 4px; text-decoration: none;
    transition: 0.3s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover {
    background: var(--brand-blue); color: white;
    box-shadow: 0 0 40px var(--brand-glow); transform: translateY(-2px);
}

/* --- 5. GALLERY SECTION (New) --- */
.gallery-section { padding: 6rem 5%; background: var(--bg-surface); }
.section-header { margin-bottom: 3rem; }
.section-subtitle { color: var(--text-muted); margin-top: 0.5rem; }

.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-card {
    background: #000; border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1); transition: 0.3s;
}
.gallery-card:hover { transform: translateY(-5px); border-color: var(--brand-blue); }

.gallery-img { width: 100%; height: 250px; object-fit: cover; }
.gallery-info { padding: 1.5rem; }
.gallery-info h4 { color: white; margin-top: 0.5rem; font-size: 1.1rem; }

.badge-red { background: rgba(239, 68, 68, 0.2); color: #ef4444; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }
.badge-green { background: rgba(16, 185, 129, 0.2); color: #10b981; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }

/* --- 6. SERVICES GRID --- */
.services { padding: 6rem 5%; }
.section-title { font-size: 2.5rem; }
.grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; perspective: 1000px;
}
.card {
    background: rgba(255,255,255,0.02); padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
    transition: 0.4s var(--ease-out); transform-style: preserve-3d;
}
.card:hover {
    transform: translateY(-10px) rotateX(2deg);
    border-color: var(--brand-blue);
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(0,0,0,0));
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.card h3 { font-size: 1.5rem; margin: 1rem 0; color: white; }
.card p { color: var(--text-muted); line-height: 1.6; }
.card-icon { color: var(--brand-blue); }

/* --- 7. EXPERT BIO (New) --- */
.expert-bio { padding: 6rem 5%; background: linear-gradient(to bottom, var(--bg-surface), var(--bg-deep)); border-top: 1px solid rgba(255,255,255,0.05); }
.bio-container { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 4rem; flex-wrap: wrap; }

.bio-img-wrapper { position: relative; width: 180px; height: 180px; }
.bio-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--brand-blue); }
.bio-badge { position: absolute; bottom: 0; right: 0; background: var(--brand-blue); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; border: 3px solid var(--bg-surface); }

.bio-text { flex: 1; }
.bio-label { color: var(--brand-accent); font-weight: 700; letter-spacing: 2px; font-size: 0.8rem; }
.bio-text h2 { font-size: 2.5rem; margin: 0.5rem 0 1rem; color: white; }
.bio-text p { font-size: 1.1rem; color: var(--text-muted); font-style: italic; line-height: 1.6; }
.bio-sig { margin-top: 1.5rem; font-family: 'Amiri', serif; font-size: 1.5rem; color: white; }

/* --- 8. STATS --- */
.stats-bar {
    background: var(--bg-surface); border-block: 1px solid rgba(255,255,255,0.05);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat { padding: 3rem 2rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.02); }
.stat strong { display: block; font-size: 2.5rem; color: white; font-weight: 800; }
.stat span { color: var(--text-muted); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* --- 9. FOOTER --- */
footer { padding: 5rem 5%; background: #000; border-top: 1px solid #222; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-title { font-size: 2rem; margin-bottom: 1rem; color: white; }
.footer-address { color: var(--text-muted); margin-bottom: 1rem; }
.footer-phone { font-size: 1.8rem; color: white; font-weight: 800; }
.map-container { background: #222; height: 250px; border-radius: 10px; overflow: hidden; }
.copyright { margin-top: 4rem; color: #444; font-size: 0.9rem; }

/* --- 10. FLOATING WHATSAPP --- */
.wa-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25d366; width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; color: white;
    z-index: 900; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    animation: float-pulse 3s infinite;
}
html[dir="rtl"] .wa-float { right: auto; left: 30px; }

/* ANIMATIONS */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-green { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes float-pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s var(--ease-out); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero { padding-top: 150px; text-align: left; }
    .footer-grid { grid-template-columns: 1fr; }
    .bio-container { flex-direction: column; text-align: center; gap: 2rem; }
    .bio-img-wrapper { margin: 0 auto; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 3rem; }
    .stat { padding: 2rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.02); }
    .btn-primary { width: 100%; justify-content: center; }
}

/* --- PROFESSIONAL MARQUEE --- */
.brand-marquee {
    position: relative;
    background: var(--bg-surface); /* Matches your dark theme */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content; /* Important: Allows track to be as wide as needed */
    gap: 4rem; /* Space between the two sets */
    animation: scroll 40s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 4rem; /* Space between brand names */
}

/* Pause animation on hover */
.brand-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* Brand Text Styling */
.marquee-content span {
    font-family: 'Outfit', sans-serif; /* Matches your English font */
    font-weight: 800;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3); /* Subtle transparent white */
    letter-spacing: 2px;
    transition: 0.3s;
    white-space: nowrap;
    cursor: default;
}

/* Hover Effect on individual Brands */
.marquee-content span:hover {
    color: var(--brand-blue); /* Highlights blue when hovered */
    text-shadow: 0 0 15px var(--brand-glow);
    transform: scale(1.05);
}

.divider {
    color: var(--brand-accent) !important; /* The dot is Cyan */
    font-size: 1rem !important;
    opacity: 0.5;
}

/* --- THE FADE EFFECT (MASKS) --- */
.fade-left, .fade-right {
    position: absolute;
    top: 0;
    width: 150px; /* Width of the fade */
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Allows clicking through the fade */
}

.fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-deep), transparent);
}

.fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-deep), transparent);
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Moves the track exactly 50% to the left. 
           Since we have 2 identical sets, it resets seamlessly. */
        transform: translateX(calc(-50% - 2rem)); 
    }
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .marquee-content span {
        font-size: 1.1rem;
    }
    .marquee-track {
        animation-duration: 20s; /* Faster on mobile */
    }
}