:root {
    --bg-color: #f8f9fa; /* Light background for sunlight visibility */
    --surface-color: #ffffff;
    --text-primary: #1a1d20;
    --text-secondary: #4a5568;
    --accent-color: #007bff; /* Deep blue for light mode contrast */
    --accent-hover: #0056b3;
    --border-color: #e2e8f0;
    --hero-text: #ffffff;
    
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Noto Naskh Arabic', serif;
}

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

[lang="en"] {
    direction: ltr;
    font-family: var(--font-en);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Typography Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo span {
    color: var(--accent-color);
}

[lang="en"] .logo {
    font-size: 1.2rem;
}

[lang="en"] .lang-switch a {
    font-size: 0.95rem;
}

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

.lang-switch {
    display: flex;
    gap: 1rem;
}

.lang-switch a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.lang-switch a[href="index.html"] {
    font-family: 'Outfit', sans-serif;
}

.lang-switch a:hover, .lang-switch a.active {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 5% 2rem;
    position: relative;
    background: linear-gradient(to right, rgba(26, 29, 32, 0.9), rgba(26, 29, 32, 0.6)), url('assets/images/hero.jpg') center/cover;
    color: var(--hero-text);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--hero-text);
}

.hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: none;
    margin-left: 1rem;
}

[lang="ar"] .btn-outline {
    margin-left: 0;
    margin-right: 1rem;
}

.btn-outline:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: none;
}

.btn-whatsapp {
    background-color: #25D366;
    margin-left: 1rem;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

[lang="ar"] .btn-whatsapp {
    margin-left: 0;
    margin-right: 1rem;
}

/* Services Section */
.services {
    padding: 5rem 5%;
    background-color: var(--surface-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 800;
}

.section-title span {
    color: var(--accent-color);
}

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

.service-card {
    background-color: var(--bg-color);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
}

/* Contact & Location Section */
.contact-section {
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.25rem;
}

.info-text h4 {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-text a, .info-text p {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 2rem 5% calc(4rem + env(safe-area-inset-bottom)); 
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Gallery Section */
.gallery {
    padding: 5rem 5%;
    background-color: var(--bg-color);
}

.gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-img {
    flex: 0 0 85%;
    max-width: 600px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .gallery-img {
        flex: 0 0 45%;
        height: 300px;
    }
}

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

@media (max-width: 768px) {
    header {
        flex-direction: row;
        padding: 1rem 5%;
    }
    
    .logo {
        font-size: 1.3rem;
        gap: 0.5rem;
    }
    
    [lang="en"] .logo {
        font-size: 1.0rem;
    }
    
    .logo img {
        height: 35px;
        width: 35px;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 8rem;
    }
    
    .hero-content .btn {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1rem;
        text-align: center;
        padding: 1rem;
    }
}
