/* Golden Supplies Trading - Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

body {
    scroll-padding-top: 150px;
}

/* Smooth scrolling for navigation links */
a[href^="#"] {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-logo {
    width: 200px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
}

@keyframes preloaderPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    transform: translateY(0);
}

/* Header when scrolled */
.site-header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

/* Logo styling */
.logo {
    width: 90px; /* Increased from 80px */
    height: 90px; /* Increased from 80px */
    object-fit: contain;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.brand {
    flex-shrink: 0;
}

.primary-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.header-right {
    flex-shrink: 0;
}



.primary-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.primary-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #000000;
    transform: translateY(-2px);
}

.primary-nav a.active {
    background: #000000;
    color: white;
}

.brand a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.brand .logo {
    height: 90px; /* Increased from 80px */
    width: 90px; /* Increased from 80px */
    object-fit: contain;
}

.brand-since {
    font-size: 0.45rem; /* Reduced from 0.5rem */
    color: #B8860B;
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Make "منذ ٢٠٠٧" bigger in Arabic */
[lang="ar"] .brand-since {
    font-size: 0.7rem;
    font-weight: 600;
}


/* Remove blue color from contact links */
.contact-details a {
    color: inherit;
    text-decoration: none;
}

.contact-details a:hover {
    color: #DAA520;
    text-decoration: underline;
}

/* Make phone numbers display left-to-right in Arabic */
[lang="ar"] .contact-details a {
    direction: ltr;
    text-align: left;
}

/* Prevent email wrapping */
.contact-details a {
    white-space: nowrap;
}

.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-switch-btn {
    background: #666666;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-switch-btn:hover {
    background: #888888;
    transform: translateY(-2px);
}

.lang-switch-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove focus ring across browsers for the language button */
.lang-switch-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove mobile tap highlight */
.lang-switch-btn {
    -webkit-tap-highlight-color: transparent;
}

/* Firefox inner focus fix */
.lang-switch-btn::-moz-focus-inner {
    border: 0;
}

/* Top-section (hero) buttons sizing alignment */
.video-buttons .video-btn,
.video-buttons .dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px; /* larger */
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    height: 68px; /* taller */
    min-width: 280px; /* wider */
    border-radius: 9999px; /* pill shape like other buttons */
}

/* Desktop header fluid scaling (tablet/mobile already handled elsewhere) */
@media (min-width: 1024px) {
    .header-inner {
        width: 100%;
        max-width: 90vw; /* fluid container on large screens */
        margin-left: auto;
        margin-right: auto;
        gap: 24px;
        padding-left: 2vw;
        padding-right: 2vw;
    }

    /* Let nav consume middle space and stay centered */
    .primary-nav {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        gap: clamp(16px, 2.2vw, 36px);
    }

    /* Logo scales proportionally but within sensible bounds */
    .brand .logo,
    .logo {
        width: clamp(80px, 6vw, 130px);
        height: clamp(80px, 6vw, 130px);
    }

    /* Since 2007 tag scales slightly with viewport */
    .brand-since {
        font-size: clamp(0.45rem, 0.6vw, 0.8rem);
    }

    /* Language switch remains readable and aligned */
    .header-right {
        display: flex;
        align-items: center;
        gap: clamp(10px, 1.2vw, 18px);
        flex-shrink: 0;
    }

    .lang-switch-btn {
        padding: clamp(6px, 0.7vw, 10px) clamp(10px, 1.2vw, 16px);
        font-size: clamp(12px, 1vw, 16px);
        border-radius: 9999px;
    }
}


/* Video Section */
.video-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.video-slide.active {
    opacity: 1;
    z-index: 2;
}


.video-overlay {
    text-align: center;
    color: white;
    z-index: 10;
    padding: 60px 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    pointer-events: auto;
}


.video-overlay h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.video-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.video-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.video-btn {
    display: inline-block;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 180px;
    height: 56px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* Dropdown Styles */
.video-btn-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    display: inline-block;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
    width: 160px;
    height: 56px;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1.2;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

/* Home Section with unified warehouse background */
.home-section {
    background: #000000 url('../img/uploads/warehouse.jpg') center/cover no-repeat;
    background-attachment: fixed;
    padding: 150px 0;
    color: #ffffff;
    position: relative;
    min-height: 120vh;
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.home-section .container {
    position: relative;
    z-index: 2;
}

.home-section * {
    color: #ffffff !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 200px auto 60px;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Full-width background for statistics section */
.stats-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    border-radius: 20px;
}

.stat-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1;
    font-family: 'Arial', sans-serif;
    letter-spacing: -2px;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 120px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    white-space: normal; /* allow wrapping */
    word-break: break-word;
}

.stat-description {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.6;
    max-width: 250px;
    margin: 0 auto;
    font-weight: 400;
}


.home-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.home-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.home-slogan {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 30px;
    font-style: italic;
}

.home-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: #000000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000 !important;
    margin-bottom: 15px;
}

.feature-item p {
    color: #000000 !important;
    line-height: 1.6;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000000;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Products Section */
.products-section {
    background: white;
    color: #000000;
    padding: 100px 0;
}

.products-section * {
    color: #000000 !important;
}

/* Product Categories */
.product-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: #000000;
    border-bottom: 3px solid #000000;
    padding-bottom: 15px;
}

.category-description {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.subcategory {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.subcategory h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #000000;
}

/* Product Carousel */
.product-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: white;
}

/* Static Product Image */
.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    height: 250px;
    border-radius: 10px;
    background: white;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #f8f9fa;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 250px;
}


.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    will-change: transform;
    background: #f8f9fa;
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.carousel-container:hover .carousel-arrow {
    opacity: 1;
    visibility: visible;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
    left: 10px;
}

.carousel-arrow-right {
    right: 10px;
}

.carousel-arrow::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

.carousel-arrow-left::before {
    border-width: 8px 12px 8px 0;
    border-color: transparent #333 transparent transparent;
    margin-left: -2px;
}

.carousel-arrow-right::before {
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #333;
    margin-right: -2px;
}


.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #f8f9fa;
    transition: opacity 0.3s ease;
}

.carousel-slide img:not([src]) {
    opacity: 0;
}

.carousel-slide img[src] {
    opacity: 1;
}


/* Brands Section */
.brands-section {
    background: white;
    color: #000000;
    padding-top: 80px;
}

.brands-section * {
    color: #000000 !important;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.brand-card {
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 200px; /* Fixed height for consistent card size */
    text-align: center;
    padding: 20px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.brand-card:hover {
    transform: translateY(-5px);
    border-color: #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Normalize logo slot and center horizontally */
.brand-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 10px;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

/* Specific styling for Interabrasive logo - increased size */
.brand-card img[alt="Inter Abrasive Turkish Coated Abrasives - Sanding Belts, Discs, Flap Wheels"] {
    width: 170px; /* Increased from 150px */
    height: 170px; /* Increased from 150px */
    top: 0px; /* Moved up slightly */
}

/* Specific styling for larger brand logos */
.brand-card img[alt="TWT"],
.brand-card img[alt="Jowat"],
.brand-card img[alt="ILMA"],
.brand-card img[alt="Carl Rontigen"] {
    width: 120px;
    height: 120px;
}

/* Specific styling for DJ Tol, Utensil Centro, and Said Tools - moved up */
.brand-card img[alt="DJ Tol"],
.brand-card img[alt="Utensil Centro"],
.brand-card img[alt="Said Tools"] {
    width: 120px;
    height: 120px;
    top: 20px;
}

/* Specific styling for Wemaro logo - moved up */
.brand-card img[alt="Wemaro"] {
    width: 120px;
    height: 120px;
    top: 10px;
}

/* Specific styling for Leitz logo - bigger size */
.brand-card img[alt="Leitz German Precision Cutting Tools - Saw Blades, Milling Cutters, Drill Bits"] {
    width: 130px;
    height: 130px;
    top: 10px;
}

/* Specific styling for Leuco logo - bigger size, moved down */
.brand-card img[alt="Leuco German Industrial Cutting Tools - Saw Blades, Router Bits, Diamond Tools"] {
    width: 130px;
    height: 130px;
    top: 20px; /* Moved down from 10px */
}

/* Specific styling for Kleiberit logo - bigger size */
.brand-card img[alt="Kleiberit German Adhesives - PUR Adhesives, Hotmelts, Wood Glues"] {
    width: 160px; /* Increased from 140px */
    height: 160px; /* Increased from 140px */
    top: 0px; /* Moved up a bit more */
}

/* Specific styling for smaller brand logos */
.brand-card img[alt="Tigra"] {
    width: 70px;
    height: 70px;
}

/* Brand Popup Styles */
.brand-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.brand-popup-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.brand-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.brand-popup-close:hover {
    color: #000;
}

.brand-popup-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.brand-popup-header img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 10px;
    background: white;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.brand-popup-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.brand-popup-header p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.brand-popup-body {
    padding: 30px;
}

.brand-popup-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.brand-popup-body h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.brand-popup-body ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-popup-body li {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    border-left: 3px solid #DAA520;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
    white-space: nowrap;
}

.brand-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.brand-card p {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 500;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

/* Contact Section */
.contact-section {
    background: white;
    color: #000000;
    padding-top: 80px;
}

.contact-section * {
    color: #000000 !important;
}

/* Footer */
.site-footer {
    background: #000000;
    color: #DAA520;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: #DAA520;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.footer-section h3 {
    color: #DAA520;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.footer-description {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #FFD700;
}

/* Footer Contact Info - Centered */
.contact-details {
    text-align: center;
}

.contact-item {
    margin-bottom: 10px;
}

.contact-item a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-item a:hover {
    color: #FFD700;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #cccccc;
    font-size: 0.95rem;
}

.contact-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.social-link {
    display: flex;
    align-items: center;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.social-link:hover {
    color: #FFD700;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.social-icon {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* RTL support for social icons */
[dir="rtl"] .social-icon {
    margin-right: 0;
    margin-left: 10px;
}

/* More space for Arabic version */
[lang="ar"] .social-icon {
    margin-right: 0;
    margin-left: 15px;
}

/* Bigger font for Arabic buttons */
[lang="ar"] .video-btn {
    font-size: 1rem;
}

/* Ensure Arabic version displays properly */
[lang="ar"] {
    direction: rtl;
}

[lang="ar"] * {
    direction: inherit;
}

/* Prevent white screen issues in Arabic */
[lang="ar"] body {
    opacity: 1;
    visibility: visible;
}

[lang="ar"] .home-section,
[lang="ar"] .products-section,
[lang="ar"] .brands-section,
[lang="ar"] .contact-section,
[lang="ar"] .footer {
    opacity: 1;
    visibility: visible;
}

.footer-bottom {
    border-top: 1px solid #FFD700;
    padding-top: 30px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #FFD700;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    width: 100%;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.contact-info p {
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Contact Sections Layout */
.contact-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
    width: 100%;
    max-width: 1200px;
    align-items: center;
}

.contact-section-left {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-section-right {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Contact Buttons Container */
.contact-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    width: 100%;
}

.contact-section-left h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.contact-section-right h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.contact-section-left p,
.contact-section-right p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.contact-method p {
    color: #cccccc;
    margin-bottom: 5px;
}

.contact-locations {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.location-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.location-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}


/* Visit Us Cards Layout */
.visit-us-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 1000px;
}

.visit-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.visit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.visit-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.visit-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.visit-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #000000;
    color: #ffffff !important;
    border: 2px solid #333333;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: auto;
    min-width: 150px;
    margin-top: auto;
    align-self: center;
}

.visit-btn span {
    color: #ffffff !important;
}

.visit-btn:hover {
    background: #333333;
    border-color: #555555;
    transform: translateY(-2px);
}

.visit-btn:hover span {
    color: #ffffff !important;
}

/* Specific styling for Jeddah branch button */
.visit-card:nth-child(3) .visit-btn {
    margin-top: 15px;
}

/* Contact Buttons */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    margin: 0;
    background: #000000;
    color: #ffffff !important;
    border: 2px solid #333333;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: auto;
    min-width: 120px;
}

.contact-btn:hover {
    background: #333333;
    border-color: #000000;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.contact-btn span {
    color: #ffffff !important;
}

.phone-btn {
    background: #000000;
    border-color: #333333;
    color: #ffffff !important;
}

.phone-btn:hover {
    background: #333333;
    border-color: #000000;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.email-btn {
    background: #000000;
    border-color: #333333;
    color: #ffffff !important;
}

.email-btn:hover {
    background: #333333;
    border-color: #000000;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Maps Buttons */
.maps-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    margin-top: 20px;
    background: #000000;
    color: #ffffff !important;
    border: 2px solid #333333;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.maps-btn:hover {
    background: #333333;
    border-color: #000000;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.maps-btn span {
    color: #ffffff !important;
}

/* Contact Buttons Row */
.contact-buttons-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Contact Dropdown Styles */
.contact-dropdown {
    position: relative;
    display: inline-block;
    width: auto;
    margin: 0;
}

.email-btn {
    background: #000000 !important;
    border-color: #333333 !important;
    width: auto;
    min-width: 80px;
    padding: 14px 16px;
    margin: 0;
}

.email-btn:hover {
    background: #333333 !important;
    border-color: #000000 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.call-btn {
    background: #000000 !important;
    border-color: #333333 !important;
    width: auto;
    min-width: 80px;
    padding: 14px 16px;
}

.call-btn:hover {
    background: #333333 !important;
    border-color: #000000 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn {
    background: #000000 !important;
    border-color: #333333 !important;
    width: auto;
    min-width: 100px;
    padding: 14px 16px;
}

.whatsapp-btn:hover {
    background: #333333 !important;
    border-color: #000000 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.contact-dropdown .dropdown-content {
    display: none;
    position: fixed;
    background-color: white;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    border-radius: 10px;
    border: 1px solid #ddd;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
}

.contact-dropdown .dropdown-content.show {
    display: block;
}

/* Popup backdrop */
.popup-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.popup-backdrop.show {
    display: block;
}

.dropdown-title {
    padding: 16px 20px 12px 20px;
    font-weight: 600;
    color: #333 !important;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.contact-dropdown .dropdown-item {
    color: #333 !important;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    width: 100%;
    border: none;
    background: white;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0;
    font-size: 0.95rem;
    margin: 0;
}

.contact-dropdown .dropdown-item:last-child {
    border-radius: 0 0 10px 10px;
}

.contact-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333 !important;
}

.contact-dropdown .dropdown-item:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.contact-dropdown .dropdown-item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .visit-us-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .home-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 250px;
    }
}


/* Arabic RTL Support */
[dir="rtl"] {
    text-align: right;
}

/* RTL Header - Keep same layout: logo left, nav center, language right */
[dir="rtl"] .header-inner {
    flex-direction: row;
}

[dir="rtl"] .brand {
    order: 1;
}

[dir="rtl"] .primary-nav {
    order: 2;
}

[dir="rtl"] .header-right {
    order: 3;
}


/* RTL Navigation - Keep navigation in center, but text alignment right */
[dir="rtl"] .primary-nav {
    text-align: right;
}

[dir="rtl"] .primary-nav a {
    text-align: right;
}

[dir="rtl"] .contact-content {
    direction: rtl;
}

[dir="rtl"] .brands-grid,
[dir="rtl"] .products-grid {
    direction: rtl;
}

/* Fix carousel issues in Arabic/RTL */
[dir="rtl"] .carousel-track {
    direction: ltr;
}

[dir="rtl"] .carousel-slide {
    direction: ltr;
}

[dir="rtl"] .carousel-slide img {
    direction: ltr;
}

/* Ensure smooth carousel transitions in RTL */
[dir="rtl"] .carousel-track {
    transform-origin: left center;
}

/* Fix product carousel container in RTL */
[dir="rtl"] .product-carousel {
    direction: ltr;
}

[dir="rtl"] .carousel-container {
    direction: ltr;
}
