:root {
    /* Brand Colors based on Logo (Brown/Orange hues) */
    --primary-color: #d48c2b; /* Golden Orange */
    --primary-dark: #b57421;
    --secondary-color: #5c3a21; /* Dark Brown */
    --secondary-light: #7a5030;
    
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --text-dark: #2d2d2d;
    --text-gray: #666666;
    --border-color: #eeeeee;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif; /* Default AR */
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* LTR Base font for English */
html[dir="ltr"] body {
    font-family: 'Outfit', sans-serif;
}

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

.section {
    padding: 100px 0;
}

.bg-gray {
    background-color: #f3f4f6;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
    border-radius: 2px;
}

.title-underline.center {
    margin: 0 auto 20px auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 50px;
}

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

/* Typography Reset based on DIR */
html[dir="rtl"] .text-left { text-align: right; }
html[dir="ltr"] .text-left { text-align: left; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 5px 15px rgba(212, 140, 43, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 140, 43, 0.5);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: #fff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 70px;
    transition: var(--transition);
}

/* If navbar is transparent at top, logo might need a filter, keeping it as is assuming it works on dark overlay */

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #fff; /* initially white on hero */
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--secondary-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.navbar.scrolled .lang-btn {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.lang-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
}

.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1541888086425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop'); /* Placeholder bg */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(92, 58, 33, 0.9), rgba(45, 45, 45, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero .btn-outline {
    color: #fff;
    border-color: #fff;
}
.hero .btn-outline:hover {
    background: #fff;
    color: var(--secondary-color);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-features {
    list-style: none;
    margin-top: 30px;
}

.about-features li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

html[dir="rtl"] .about-features li i { margin-left: 10px; margin-right: 0;}
html[dir="ltr"] .about-features li i { margin-right: 10px; margin-left: 0; }

.about-features li i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.about-image {
    flex: 1;
    width: 100%;
}

.image-placeholder {
    height: 400px;
    width: 100%;
    background: url('about.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

html[dir="rtl"] .image-placeholder::before {
    left: 20px;
    right: -20px;
}

/* Services */
.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

html[dir="rtl"] .service-card::before {
    left: auto;
    right: 0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(212, 140, 43, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(212, 140, 43, 0.1);
}

.w-100 {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: rgba(255,255,255,0.8);
    padding: 40px 0;
}

.footer h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .about-container, .contact-container {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-link {
        color: var(--secondary-color);
    }
    
    .lang-btn {
        color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* WhatsApp Overrides */
.contact-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}
.contact-link:hover {
    color: var(--primary-color);
}
.whatsapp-icon {
    background: rgba(37, 211, 102, 0.1) !important;
    color: #25D366 !important;
}

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

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

/* Clients Banner */
.clients-slider {
    background: var(--bg-white);
    padding: 30px 0;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.clients-slider::before,
.clients-slider::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    top: 0;
}

.clients-slider::before { left: 0; }
.clients-slider::after {
    right: 0;
    transform: rotateZ(180deg);
}

.clients-track {
    display: flex;
    width: calc(200px * 16);
    animation: scroll 30s linear infinite;
    align-items: center;
}

html[dir="rtl"] .clients-track {
    /* reverse animation direction for RTL if needed, but normally infinite tracks just slide */
    animation: scroll-rtl 30s linear infinite;
}

.client-logo {
    width: 200px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.2);
    transition: var(--transition);
    opacity: 0.6;
}

.client-logo img:hover {
    filter: grayscale(0%) contrast(1);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 8)); }
}

@keyframes scroll-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(200px * 8)); }
}
