:root {
    --bg-color: #0a0a0a;
    --surface-color: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #007aff;
    --border-color: #333333;
    
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-en);
}

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

body {
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
    transform: scale(1.03);
}

.logo i {
    color: var(--accent-color);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover i {
    transform: rotate(-12deg) scale(1.18);
}

.logo span {
    background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter 0.3s ease;
}

.logo:hover span {
    filter: drop-shadow(0 0 10px rgba(0, 122, 255, 0.6));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
    transform-origin: left;
}

html[dir="rtl"] .nav-links a:hover::after {
    transform-origin: right;
}

.nav-links a:hover {
    color: var(--accent-color);
}

#langToggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

#langToggle:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.35);
}

#langToggle:active {
    transform: translateY(0) scale(0.96);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 0;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at top, #1a1a2e 0%, var(--bg-color) 60%);
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 122, 255, 0.3);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2.2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 122, 255, 0.45);
}

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

.btn:active {
    transform: translateY(0) scale(0.97);
}

.btn-text {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--accent-color);
}

html[dir="rtl"] .btn-text i {
    transform: rotate(180deg);
}

.hero-image-wrapper {
    width: 100%;
    max-width: 900px;
    z-index: 1;
    position: relative;
    margin-top: 2rem;
}

.floating-laptop {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Brands Running Marquee Section */
.brands-section {
    padding: 50px 0 30px;
    position: relative;
    overflow: hidden;
}

.brands-section .section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.brands-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marqueeScroll 24s linear infinite;
    will-change: transform;
    align-items: center;
}

.brands-marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

html[dir="rtl"] .marquee-track {
    animation: marqueeScrollRTL 24s linear infinite;
}

@keyframes marqueeScrollRTL {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100% / 3));
    }
}

.brand-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.8rem 2.2rem;
    cursor: pointer;
    min-width: 200px;
    height: 68px;
    flex-shrink: 0;
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                background-color 0.3s ease;
}

.brand-pill:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--accent-color);
    background: #242424;
    box-shadow: 0 10px 25px -5px rgba(0, 122, 255, 0.4);
}

.brand-pill .brand-logo-img {
    max-height: 38px;
    max-width: 115px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.brand-pill:hover .brand-logo-img {
    transform: scale(1.08);
}

.brand-pill .brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .brands-section {
        padding: 35px 0 20px;
    }
    .brands-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    .brand-pill {
        min-width: 160px;
        height: 56px;
        padding: 0.6rem 1.4rem;
        gap: 0.8rem;
    }
    .brand-pill .brand-logo-img {
        max-height: 28px;
        max-width: 70px;
    }
    .brand-pill .brand-name {
        font-size: 0.95rem;
    }
    .marquee-track {
        gap: 1.2rem;
        animation-duration: 18s;
    }
}

/* Products */
.products-section {
    padding: 80px 2%;
}

.bg-surface {
    background-color: var(--surface-color);
}

.featured-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.products-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.product-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.35s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 122, 255, 0.45);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 
                0 0 25px -5px rgba(0, 122, 255, 0.2);
}

.product-img-wrapper {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Featured section gets larger images */
.featured-grid .product-img-wrapper {
    height: 250px;
}

@media (max-width: 768px) {
    .product-img-wrapper {
        height: 150px;
    }
    
    /* On mobile, featured is 1 col, so make it huge */
    .featured-grid .product-img-wrapper {
        height: 350px;
    }
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    padding: 0;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-info {
    padding: 0.8rem 0.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 45px;
}

.btn-outline {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.65rem 1.3rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
    background: #1a88ff;
}

.btn-outline:active {
    transform: translateY(0) scale(0.96);
}

/* Locations */
.locations-section {
    padding: 100px 5%;
    background: var(--surface-color);
}

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

.location-card {
    text-align: center;
    background: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.35s ease;
}

.location-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 122, 255, 0.45);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(0, 122, 255, 0.2);
}

.location-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.location-card:hover i {
    transform: scale(1.15) rotate(6deg);
}

.location-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.location-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.location-card p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Call To Action */
.cta-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.02) 100%);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.store-img {
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 1rem;
}

.store-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Footer */
footer {
    padding: 5rem 5% 2.5rem;
    border-top: 1px solid var(--border-color);
    background: #0b0b0e;
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-brand-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-locations-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-col-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-col-title i {
    color: var(--accent-color);
}

.footer-locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .footer-locations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer-location-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-location-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 122, 255, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.footer-loc-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 122, 255, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(0, 122, 255, 0.3);
}

.footer-loc-badge.qatar {
    background: rgba(138, 21, 56, 0.2);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.3);
}

.footer-loc-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.2rem;
}

.footer-loc-address {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.footer-loc-address i {
    color: var(--accent-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-loc-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.footer-contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-contact-link:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.footer-contact-link.wa {
    color: #25D366;
}

.footer-contact-link.wa:hover {
    color: #4ade80;
}

html[dir="rtl"] .footer-contact-link:hover {
    transform: translateX(-3px);
}

.socials {
    display: flex;
    gap: 1.2rem;
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

.socials a {
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
    display: inline-block;
}

.socials a:hover {
    color: var(--accent-color);
    transform: translateY(-4px) scale(1.15);
}

.footer-bottom {
    text-align: center;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.developer-credit {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 5px;
}

/* Light Mode Overrides for Footer */
[data-theme="light"] footer {
    background: #f1f5f9;
    border-top-color: var(--border-color);
}

[data-theme="light"] .footer-location-item {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .footer-location-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-loc-name {
    color: #0f172a;
}

[data-theme="light"] .footer-loc-address {
    color: #475569;
}

[data-theme="light"] .footer-loc-contact {
    border-top-color: #e2e8f0;
}

[data-theme="light"] .footer-contact-link {
    color: #334155;
}

[data-theme="light"] .footer-contact-link:hover {
    color: var(--accent-color);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--surface-color);
    margin: auto;
    padding: 1rem;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    color: var(--text-secondary);
    position: absolute;
    top: 5px;
    right: 12px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

html[dir="rtl"] .close-btn {
    right: auto;
    left: 12px;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--text-primary);
    text-decoration: none;
}

.modal-body {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.modal-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-image {
    display: flex;
    justify-content: center;
    border-radius: 15px;
    height: 350px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.modal-thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.thumbnail-img {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail-img:hover,
.thumbnail-img.active {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.modal-info {
    flex: 1;
}

.modal-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.modal-info p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* =========================================
   NEW FEATURES (Sidebar, Filters, Specs)
   ========================================= */

/* Nav Actions & Mobile Menu */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-btn {
    display: none;
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--surface-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    z-index: 3000;
    transition: right 0.3s ease;
    padding: 80px 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

html[dir="rtl"] .sidebar {
    right: auto;
    left: -300px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    transition: left 0.3s ease;
}

.sidebar.active {
    right: 0;
}

html[dir="rtl"] .sidebar.active {
    left: 0;
}

.close-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

html[dir="rtl"] .close-sidebar {
    right: auto;
    left: 20px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 2500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.search-box i {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

html[dir="rtl"] .search-box i {
    margin-right: 0;
    margin-left: 0.5rem;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.brand-filter select {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.no-products {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    width: 100%;
}

/* Modal Specs & WA Button */
.specs-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 10px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.spec-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.wa-btn {
    background-color: #25D366;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    border: none;
}

.wa-btn:hover {
    background-color: #128C7E;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.sidebar-search {
    display: none; /* hidden on desktop if sidebar is forced open, though sidebar is hidden */
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.sidebar-search i {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

html[dir="rtl"] .sidebar-search i {
    margin-right: 0;
    margin-left: 0.5rem;
}

.sidebar-search input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

html[dir="rtl"] .floating-wa {
    right: auto;
    left: 30px;
}

.float-wa-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: waPulse 2.5s infinite;
}

.float-wa-btn:hover {
    transform: scale(1.12) rotate(8deg);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wa-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: var(--surface-color);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    width: 250px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

html[dir="rtl"] .wa-menu {
    right: auto;
    left: 0;
}

.wa-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wa-header {
    font-weight: bold;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.wa-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
}

.wa-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.wa-item:hover {
    background: var(--bg-color);
    transform: translateX(5px);
}

html[dir="rtl"] .wa-item:hover {
    transform: translateX(-5px);
}

.wa-item i {
    font-size: 24px;
    color: #25D366;
}

.wa-item span {
    font-size: 0.9rem;
    line-height: 1.2;
}

.wa-item small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Advanced Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    /* Hide top search box on mobile, show in sidebar */
    .search-box {
        display: none;
    }
    
    .sidebar-search {
        display: flex;
    }
    
    .brand-filter select {
        width: 100%;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image {
        height: 250px;
        width: 100%;
    }
    
    .specs-box {
        grid-template-columns: 1fr;
    }
}

/* Ambient interactive glowing backdrop */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.22) 0%, rgba(0, 122, 255, 0) 70%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
    animation: ambientPulse 8s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.85; }
}

/* Modal zoom-in animation */
.modal.show .modal-content {
    animation: modalZoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* =========================================
   LIGHT / WHITE THEME STYLES
   ========================================= */
[data-theme="light"] {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-color: #007aff;
    --border-color: #e2e8f0;
}

/* Smooth Theme Transitions */
html, body, .navbar, .product-card, .brand-pill, .modal-content, .location-card, .sidebar, .wa-menu, .search-box {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar in Light Mode */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .logo span {
    background: linear-gradient(135deg, #0f172a 40%, #007aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: var(--surface-color);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(15deg) scale(1.08);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.25);
}

.theme-toggle-btn:active {
    transform: rotate(0) scale(0.92);
}

/* Hero in Light Mode */
[data-theme="light"] .hero {
    background: radial-gradient(circle at top, #e2eefe 0%, var(--bg-color) 65%);
}

[data-theme="light"] .hero h1 {
    background: linear-gradient(180deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-badge {
    background: rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.25);
}

[data-theme="light"] .floating-laptop {
    box-shadow: 0 25px 50px -10px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-image-wrapper::before {
    background: radial-gradient(circle, rgba(0, 122, 255, 0.12) 0%, rgba(0, 122, 255, 0) 70%);
}

/* Brand Marquee in Light Mode */
[data-theme="light"] .brand-pill {
    background: #ffffff;
    border-color: var(--border-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .brand-pill:hover {
    background: #f1f5f9;
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px -5px rgba(0, 122, 255, 0.25);
}

/* Invert Apple logo so it becomes dark in light mode */
[data-theme="light"] .brand-pill[data-brand="macbook"] img {
    filter: invert(1);
}

/* Product Cards in Light Mode */
[data-theme="light"] .product-card {
    background: #ffffff;
    border-color: var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .product-card:hover {
    box-shadow: 0 20px 35px -10px rgba(0, 122, 255, 0.2), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 122, 255, 0.4);
}

/* Location Cards in Light Mode */
[data-theme="light"] .location-card {
    background: #ffffff;
    border-color: var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .location-card:hover {
    box-shadow: 0 20px 35px -10px rgba(0, 122, 255, 0.2), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
}

/* Search & Filters in Light Mode */
[data-theme="light"] .search-box,
[data-theme="light"] .brand-filter select,
[data-theme="light"] .sidebar-search {
    background: #ffffff;
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .search-box input,
[data-theme="light"] .sidebar-search input {
    color: var(--text-primary);
}

[data-theme="light"] .search-box input::placeholder,
[data-theme="light"] .sidebar-search input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .brand-filter select option {
    background: #ffffff;
    color: #0f172a;
}

/* Modal in Light Mode */
[data-theme="light"] .modal {
    background-color: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .modal-content {
    background-color: #ffffff;
    border-color: var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

[data-theme="light"] .specs-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
}

[data-theme="light"] .spec-item {
    color: #1e293b;
}

/* CTA in Light Mode */
[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(0, 122, 255, 0.02) 100%);
}

/* Sidebar in Light Mode */
[data-theme="light"] .sidebar {
    background-color: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

html[dir="rtl"][data-theme="light"] .sidebar {
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .sidebar-search {
    background: #f8fafc;
}

/* Sidebar Theme Row */
.sidebar-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.sidebar-theme-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sidebar-theme-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-theme-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Floating WhatsApp Menu in Light Mode */
[data-theme="light"] .wa-menu {
    background: #ffffff;
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .wa-item:hover {
    background: #f1f5f9;
}


/* =========================================
   LUXURY SHOWROOM & FLAGSHIP STORE CARDS
   ========================================= */
.locations-section {
    padding: 100px 5% 80px;
    background: radial-gradient(circle at center bottom, rgba(0, 122, 255, 0.05) 0%, transparent 60%);
    position: relative;
}

.locations-header {
    max-width: 750px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 122, 255, 0.12);
    color: var(--accent-color);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.store-card {
    background: #141417;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.35s ease;
    position: relative;
}

.store-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 122, 255, 0.45);
    box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(0, 122, 255, 0.25);
}

/* Card Media Header */
.store-card-media {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: #09090b;
}

.store-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-card:hover .store-photo {
    transform: scale(1.08);
}

.store-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.2) 0%, rgba(20, 20, 23, 0.95) 100%);
    pointer-events: none;
}

.store-floating-tags {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.store-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    backdrop-filter: blur(10px);
}

.store-tag.branch {
    background: rgba(0, 122, 255, 0.85);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

.store-tag.status {
    background: rgba(10, 10, 10, 0.75);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

/* Card Body */
.store-card-body {
    padding: 1.8rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.store-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.store-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 122, 255, 0.12);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 1px solid rgba(0, 122, 255, 0.25);
    transition: transform 0.3s ease;
}

.store-card:hover .store-icon-wrap {
    transform: rotate(-6deg) scale(1.08);
}

.store-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.3px;
}

.store-address {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.store-address i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Director Profile Card */
.store-director-box {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.director-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.director-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007aff 0%, #004ecc 100%);
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.35);
    flex-shrink: 0;
}

.director-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.director-badge {
    font-size: 0.75rem;
    color: #60a5fa;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.director-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Action Buttons */
.store-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.store-btn i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.btn-subtext {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.4px;
    opacity: 0.85;
}

.btn-maintext {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.store-btn.call-btn {
    background: rgba(0, 122, 255, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(0, 122, 255, 0.3);
}

.store-btn.call-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}

.store-btn.wa-btn-direct {
    background: rgba(37, 211, 102, 0.12);
    color: #4ade80;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.store-btn.wa-btn-direct:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Store Perks */
.store-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.perk-item {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.perk-item i {
    color: var(--accent-color);
}

/* RTL Adjustments */
html[dir="rtl"] .store-title-wrap {
    text-align: right;
}

html[dir="rtl"] .store-address {
    text-align: right;
}

html[dir="rtl"] .director-profile {
    text-align: right;
}

html[dir="rtl"] .store-btn {
    text-align: right;
}

/* Light Mode Overrides for Store Cards */
[data-theme="light"] .store-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .store-card:hover {
    border-color: rgba(0, 122, 255, 0.45);
    box-shadow: 0 25px 50px -12px rgba(0, 122, 255, 0.18), 0 8px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .store-media-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

[data-theme="light"] .store-tag.status {
    background: rgba(255, 255, 255, 0.85);
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.3);
}

[data-theme="light"] .store-icon-wrap {
    background: #eff6ff;
    border-color: #bfdbfe;
}

[data-theme="light"] .store-title {
    color: #0f172a;
}

[data-theme="light"] .store-address {
    color: #475569;
}

[data-theme="light"] .store-director-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .director-name {
    color: #0f172a;
}

[data-theme="light"] .director-badge {
    color: #0284c7;
}

[data-theme="light"] .store-btn.call-btn {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

[data-theme="light"] .store-btn.call-btn:hover {
    background: #007aff;
    color: #ffffff;
    border-color: #007aff;
}

[data-theme="light"] .store-btn.wa-btn-direct {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

[data-theme="light"] .store-btn.wa-btn-direct:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

[data-theme="light"] .store-perks {
    border-top-color: #e2e8f0;
}

[data-theme="light"] .perk-item {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

/* =========================================
   MASONRY GALLERY SECTION
   ========================================= */
.gallery-section {
    padding: 90px 5% 70px;
    position: relative;
}

.gallery-header {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    line-height: 1.6;
}

.gallery-masonry {
    column-count: 3;
    column-gap: 1.5rem;
}

@media (max-width: 992px) {
    .gallery-masonry {
        column-count: 2;
        column-gap: 1.2rem;
    }
}

@media (max-width: 600px) {
    .gallery-masonry {
        column-count: 1;
    }
}

.gallery-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    vertical-align: top;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--accent-color);
    box-shadow: 0 16px 36px -8px rgba(0, 122, 255, 0.35);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-btn {
    width: 52px;
    height: 52px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 122, 255, 0.5);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-zoom-btn {
    transform: scale(1.1);
}

/* Lightbox Modal */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.gallery-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.94);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.25s ease, color 0.25s ease;
}

html[dir="rtl"] .lightbox-close {
    right: auto;
    left: 35px;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: scale(1.15) rotate(90deg);
}

/* Light Mode Overrides for Gallery & Location Cards */
[data-theme="light"] .store-person-card {
    background: #f8fafc;
    border-color: var(--border-color);
}

[data-theme="light"] .contact-pill.tel {
    background: rgba(0, 122, 255, 0.08);
    color: #0066cc;
    border-color: rgba(0, 122, 255, 0.2);
}

[data-theme="light"] .contact-pill.tel:hover {
    background: var(--accent-color);
    color: #ffffff;
}

[data-theme="light"] .gallery-item {
    background: #ffffff;
    border-color: var(--border-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .gallery-item:hover {
    box-shadow: 0 16px 36px -8px rgba(0, 122, 255, 0.25);
}

.gallery-badge {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

html[dir="rtl"] .gallery-badge {
    left: auto;
    right: 1.2rem;
}

.director-avatar.qatar-avatar {
    background: linear-gradient(135deg, #8a1538 0%, #5c0e25 100%);
    box-shadow: 0 4px 12px rgba(138, 21, 56, 0.4);
}

.store-icon-wrap.qatar-icon {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.25);
}

.store-tag.branch.qatar-badge {
    background: rgba(138, 21, 56, 0.9);
    box-shadow: 0 4px 15px rgba(138, 21, 56, 0.4);
}

/* Brand Logo Square Styling */
.brand-logo-square {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    flex-shrink: 0;
}

.logo:hover .brand-logo-square {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.45);
    border-color: var(--accent-color);
}

[data-theme="light"] .brand-logo-square {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Brand Logo Horizontal in Navbar */
.brand-logo-horizontal {
    height: 48px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.logo:hover .brand-logo-horizontal {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .brand-logo-horizontal {
        height: 38px;
        max-width: 190px;
    }
}

/* Director Real Photo Styling */
.director-avatar-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.35);
    flex-shrink: 0;
    background: #111;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.store-card:hover .director-avatar-wrap {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(0, 122, 255, 0.5);
}

.director-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.4s ease;
}

.store-card:hover .director-photo {
    transform: scale(1.1);
}

[data-theme="light"] .director-avatar-wrap {
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.2);
    border-color: #007aff;
}

/* =========================================
   EXECUTIVE LEADERSHIP SECTION
   ========================================= */
.leadership-section {
    padding: 90px 5% 80px;
    background: radial-gradient(circle at center top, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
    position: relative;
}

.leadership-header {
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1050px;
    margin: 0 auto;
}

@media (max-width: 850px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

.leader-card {
    background: #141417;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.leader-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 122, 255, 0.45);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 30px -5px rgba(0, 122, 255, 0.25);
}

.leader-photo-wrap {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: #09090b;
}

.leader-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.leader-card:hover .leader-photo {
    transform: scale(1.06);
}

.leader-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(20, 20, 23, 0.95) 100%);
    pointer-events: none;
}

.leader-company-tag {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: rgba(0, 122, 255, 0.85);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
    z-index: 2;
}

html[dir="rtl"] .leader-company-tag {
    left: auto;
    right: 1.2rem;
}

.leader-info {
    padding: 1.8rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.leader-role-badge {
    font-size: 0.8rem;
    color: #60a5fa;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.leader-name {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.leader-location {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.leader-location i {
    color: var(--accent-color);
}

.leader-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.leader-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.leader-btn.tel {
    background: rgba(0, 122, 255, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(0, 122, 255, 0.3);
}

.leader-btn.tel:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}

.leader-btn.wa {
    background: rgba(37, 211, 102, 0.12);
    color: #4ade80;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.leader-btn.wa:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Light Mode Overrides for Leadership */
[data-theme="light"] .leader-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .leader-card:hover {
    border-color: rgba(0, 122, 255, 0.45);
    box-shadow: 0 25px 50px -12px rgba(0, 122, 255, 0.18), 0 8px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .leader-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

[data-theme="light"] .leader-name {
    color: #0f172a;
}

[data-theme="light"] .leader-role-badge {
    color: #0284c7;
}

[data-theme="light"] .leader-location {
    color: #475569;
}

[data-theme="light"] .leader-actions {
    border-top-color: #e2e8f0;
}

[data-theme="light"] .leader-btn.tel {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

[data-theme="light"] .leader-btn.tel:hover {
    background: #007aff;
    color: #ffffff;
    border-color: #007aff;
}

[data-theme="light"] .leader-btn.wa {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

[data-theme="light"] .leader-btn.wa:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}
