/* ==========================================================================
   style.css
   ========================================================================== */

/* 1. CSS Variables & Global Styles
   ========================================================================== */
:root {
    --primary-blue: #0A4D68;
    --secondary-teal: #088395;
    --accent-cyan: #05BFDB;
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
    --light-text: #ffffff;
    --gray-text: #6c757d;
    --border-color: #dee2e6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    line-height: 1.7;
    background-color: var(--light-text);
}

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

section {
    padding: 100px 0;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title p {
    color: var(--gray-text);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(90deg, var(--secondary-teal), var(--accent-cyan));
    color: var(--light-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 2. Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 35px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-teal);
}
.nav-links a:hover::after {
    width: 100%;
}

/* Language Switcher Styles */
.lang-switcher button {
    background: none;
    border: none;
    color: var(--gray-text);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.3s ease;
}
.lang-switcher button.active {
    color: var(--primary-blue);
}
.lang-switcher span {
    color: var(--border-color);
    margin: 0 5px;
}


/* 3. Hero Section
   ========================================================================== */
#hero {
    background: linear-gradient(45deg, rgba(10, 77, 104, 0.1), rgba(8, 131, 149, 0.1)), var(--light-bg);
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

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

.hero-content h1 {
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 40px;
}

/* 4. About (Our Vision) Section
   ========================================================================== */
#about {
    background-color: var(--light-text);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text, .about-image {
    flex: 1;
}

.about-image {
    background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?q=80&w=2832&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    min-height: 400px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 5. Services Section
   ========================================================================== */
#services {
    background-color: var(--light-bg);
}

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

.service-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.service-card h3 {
     color: var(--secondary-teal);
}

/* 6. Contact Section
   ========================================================================== */
#contact {
     background-color: var(--light-bg);
}

/* This is the new rule that fixes the phone number display */
.phone-number {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    background: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-info p svg {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    color: var(--secondary-teal);
    flex-shrink: 0; /* Prevents icon from shrinking */
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(5, 191, 219, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* 7. Footer
   ========================================================================== */
footer {
    background-color: var(--primary-blue);
    color: var(--light-text);
    padding: 50px 0;
    text-align: center;
}

.footer-content p {
    opacity: 0.8;
}

/* 8. Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 60px 0; }
    
    .nav-links {
        display: none; /* Simplification. For a real site, implement a hamburger menu. */
    }

    .about-content {
        flex-direction: column;
    }
    .about-image {
         min-height: 300px;
         width: 100%;
    }
    
    .contact-wrapper {
        flex-direction: column;
        padding: 30px;
    }
}

/* 9. RTL (Arabic) Styles
   ========================================================================== */
html[dir="rtl"] {
    text-align: right;
}
html[dir="rtl"] body {
    font-family: 'Cairo', 'Poppins', sans-serif;
}
html[dir="rtl"] .nav-links li {
    margin-left: 0;
    margin-right: 35px;
}
html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}
html[dir="rtl"] .contact-info p svg {
    margin-right: 0;
    margin-left: 15px;
}
html[dir="rtl"] .form-group input, 
html[dir="rtl"] .form-group textarea {
    font-family: 'Cairo', 'Poppins', sans-serif;
}
html[dir="rtl"] .btn {
    background: linear-gradient(-90deg, var(--secondary-teal), var(--accent-cyan));
}