/* ==========================================================================
   WATINIAH GROUP - AL-WATANIA CIVIL ENGINEERING CONSULTANCY STYLESHEET
   Supports dual-language (LTR English & RTL Arabic), fluid responsive layout,
   icon-only language switcher, spacious navbar, & floating burger island mobile navbar.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800;900&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
    --bg-main: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-dark: #0B132B;
    --bg-dark-surface: #1C2541;
    --bg-glass: rgba(255, 255, 255, 0.95);

    --primary-navy: #0F172A;
    --primary-slate: #1E293B;
    --accent-amber: #D97706;
    --accent-gold: #F59E0B;
    --accent-glow: rgba(245, 158, 11, 0.25);
    
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-light: #F1F5F9;

    --border-light: #E2E8F0;
    --border-dark: #334155;

    --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ar: 'Tajawal', 'Cairo', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.15);
    --shadow-gold: 0 10px 25px -5px rgba(217, 119, 6, 0.3);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --header-height: 80px;
}

/* --- Base & Reset Rules --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-en);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* RTL Typography & Direction overrides */
html[dir="rtl"] body {
    font-family: var(--font-ar);
    text-align: right;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container & Utilities --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header .container {
    max-width: 1440px;
}

.section-padding {
    padding: 6rem 0;
}

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

.section-header {
    max-width: 820px;
    margin: 0 auto 3.5rem auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent-amber);
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

html[dir="rtl"] .badge {
    letter-spacing: 0;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    line-height: 1.2;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-amber), var(--accent-gold));
    color: #FFFFFF;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -6px rgba(217, 119, 6, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}

.btn-outline-dark:hover {
    background: var(--primary-navy);
    color: #FFFFFF;
}

/* --- Desktop Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal), backdrop-filter var(--transition-normal);
}

.header.scrolled {
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--primary-navy);
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.header.scrolled .logo {
    color: var(--primary-navy);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-slate));
    color: var(--accent-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    flex-wrap: nowrap;
}

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

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-slate);
    position: relative;
    padding: 0.4rem 0;
    line-height: 1.3;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.header:not(.scrolled) .nav-links .nav-link {
    color: #FFFFFF;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    transition: width var(--transition-fast);
}

html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-actions .btn-nav-cta,
.nav-actions .nav-cta-desktop {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-amber), var(--accent-gold));
    color: #FFFFFF !important;
    box-shadow: var(--shadow-gold);
    border: none;
    cursor: pointer;
}

/* Icon-Only Language Switcher Button */
.lang-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-sizing: border-box;
    flex-shrink: 0;
}

.header:not(.scrolled) .lang-btn {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.35);
}

.lang-btn:hover {
    background: var(--accent-amber);
    color: #FFFFFF;
    border-color: var(--accent-amber);
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-navy);
    cursor: pointer;
    padding: 0.25rem;
}

.header:not(.scrolled) .mobile-toggle {
    color: #FFFFFF;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.85)), url('../assets/hero.jpg') center/cover no-repeat;
    color: #FFFFFF;
}

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

.hero-badge {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(241, 245, 249, 0.9);
    margin-bottom: 2.5rem;
    max-width: 760px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* --- Stats Bar --- */
.stats-bar {
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.stat-item {
    text-align: center;
    padding: 0 1rem;
    border-right: 1px solid var(--border-light);
}

html[dir="rtl"] .stat-item {
    border-right: none;
    border-left: 1px solid var(--border-light);
}

.stat-item:last-child {
    border: none;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-navy);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* --- About Us Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    margin-bottom: 1.5rem;
}

.about-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.about-pillars {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pillar-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

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

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.pillar-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.pillar-info p {
    font-size: 0.925rem;
    color: var(--text-muted);
}

.about-visual {
    position: relative;
}

.visual-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    width: 100%;
    height: 540px;
}

/* --- Services / Work Areas Section --- */
.services-section {
    background-color: #F1F5F9;
}

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

.service-card {
    background: var(--bg-surface);
    padding: 2.2rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-navy), var(--accent-amber));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-slate));
    color: var(--accent-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.6;
}

/* --- Core Strengths Section --- */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.strength-item {
    background: var(--bg-surface);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: transform var(--transition-fast);
}

.strength-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-amber);
}

.strength-check {
    width: 38px;
    height: 38px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.strength-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-navy);
    line-height: 1.5;
}

/* --- Key Engineering Staff (الكادر الرئيسي) --- */
.team-section {
    background: #F8FAFC;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-card.team-card-center {
    grid-column: span 3;
    max-width: 480px;
    margin: 0 auto;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-amber);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-slate));
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 4px solid rgba(245, 158, 11, 0.2);
    box-shadow: var(--shadow-sm);
}

.team-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 0.35rem;
}

.team-role {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-amber);
    background: rgba(217, 119, 6, 0.1);
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.team-exp {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Software Capabilities --- */
.software-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
}

.software-badge {
    background: var(--primary-navy);
    color: #FFFFFF;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.software-badge i {
    color: var(--accent-gold);
}

.software-badge:hover {
    background: var(--accent-amber);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* --- Projects & Portfolio --- */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-navy);
    color: #FFFFFF;
    border-color: var(--primary-navy);
}

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

.project-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-thumb {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-thumb img {
    transform: scale(1.06);
}

.project-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-navy);
    color: var(--accent-gold);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
}

html[dir="rtl"] .project-tag {
    left: auto;
    right: 1rem;
}

.project-body {
    padding: 2rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.project-specs {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-slate);
    background: #F1F5F9;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

/* --- Training & Commitment Section --- */
.sustainability-section {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-slate));
    color: #FFFFFF;
}

.sustainability-section .section-title {
    color: #FFFFFF;
}

.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.sustain-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-fast);
}

.sustain-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.sustain-icon {
    width: 64px;
    height: 64px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem auto;
}

.sustain-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sustain-card p {
    color: rgba(241, 245, 249, 0.8);
    font-size: 0.95rem;
}

/* --- Contact & Consultation Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.form-wrapper {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    margin-bottom: 1.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-main);
    color: var(--text-main);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-amber);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-info-card {
    background: var(--primary-navy);
    color: #FFFFFF;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-text p {
    font-size: 1rem;
    color: rgba(241, 245, 249, 0.9);
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    color: rgba(241, 245, 249, 0.7);
    padding-top: 5rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    max-width: 380px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links-list a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Modal Dialogs --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--bg-surface);
    width: 90%;
    max-width: 680px;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #F1F5F9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[dir="rtl"] .modal-close {
    right: auto;
    left: 1.5rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES & BURGER ISLAND MOBILE NAVBAR
   ========================================================================== */

@media (max-width: 1400px) {
    .nav-links { gap: 0.75rem; }
    .nav-link { font-size: 0.825rem; }
}

/* ==========================================================================
   BURGER ISLAND MOBILE NAVIGATION BAR (< 960px)
   A sleek floating glassmorphic pill navbar island with integrated dropdown
   ========================================================================== */
@media (max-width: 960px) {
    .hero-title { font-size: 2.75rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .strengths-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .visual-image { height: 400px; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    /* Floating Header Container (Burger Island Pill) */
    .header {
        position: fixed !important;
        top: 0.85rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 1.75rem) !important;
        max-width: 650px !important;
        height: 60px !important;
        background: rgba(15, 23, 42, 0.88) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border-radius: 9999px !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28), 0 0 20px rgba(245, 158, 11, 0.15) !important;
        padding: 0 0.85rem 0 1.15rem !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 10000 !important;
    }

    html[dir="rtl"] .header {
        padding: 0 1.15rem 0 0.85rem !important;
    }

    .header-container {
        max-width: 100% !important;
        padding: 0 !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Logo inside Floating Burger Island */
    .header .logo {
        color: #FFFFFF !important;
        font-size: 1.05rem !important;
        gap: 0.5rem !important;
        letter-spacing: -0.01em !important;
    }

    .header .logo-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, var(--accent-amber), var(--accent-gold)) !important;
        color: #FFFFFF !important;
        font-size: 0.95rem !important;
        box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3) !important;
    }

    /* Actions Area in Burger Island */
    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    /* Strictly hide desktop CTA button in island header */
    header .nav-actions .nav-cta-desktop,
    header .nav-actions .btn-nav-cta,
    .nav-cta-desktop,
    .btn-nav-cta {
        display: none !important;
    }

    /* Icon-Only Language Switcher inside Burger Island */
    .lang-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.12) !important;
        color: #FFFFFF !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        font-size: 1.05rem !important;
    }

    .lang-btn:hover {
        background: var(--accent-amber) !important;
        color: #FFFFFF !important;
        border-color: var(--accent-amber) !important;
    }

    /* Burger Toggle Icon Button inside Island */
    .mobile-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: rgba(245, 158, 11, 0.2) !important;
        color: var(--accent-gold) !important;
        border: 1px solid rgba(245, 158, 11, 0.35) !important;
        font-size: 1.05rem !important;
        cursor: pointer !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .mobile-toggle:hover,
    .mobile-toggle.active {
        background: var(--accent-amber) !important;
        color: #FFFFFF !important;
        border-color: var(--accent-amber) !important;
        transform: scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35) !important;
    }

    /* Floating Dropdown Drawer connected to Burger Island */
    .nav-links {
        position: fixed !important;
        top: calc(0.85rem + 60px + 0.6rem) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-15px) scale(0.96) !important;
        width: calc(100% - 1.75rem) !important;
        max-width: 650px !important;
        max-height: calc(100vh - 90px) !important;
        overflow-y: auto !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        padding: 1.25rem 1.25rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.35rem !important;
        border-radius: 24px !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 0 20px rgba(15, 23, 42, 0.1) !important;
        border: 1px solid rgba(226, 232, 240, 0.9) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        z-index: 9999 !important;
    }
    
    .nav-links.active {
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) scale(1) !important;
    }

    .header:not(.scrolled) .nav-links .nav-link,
    .header .nav-links .nav-link,
    .nav-links .nav-link {
        font-size: 1rem !important;
        width: 100% !important;
        padding: 0.65rem 0.85rem !important;
        color: var(--primary-navy) !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
        border-radius: 12px !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-links .nav-link:last-of-type {
        border-bottom: none !important;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        background: rgba(245, 158, 11, 0.1) !important;
        color: var(--accent-amber) !important;
    }

    html[dir="rtl"] .nav-link {
        text-align: right !important;
    }

    /* Mobile CTA Button inside Drawer */
    .mobile-menu-btn {
        display: inline-flex !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 0.85rem 1.5rem !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #FFFFFF !important;
        background: linear-gradient(135deg, var(--accent-amber), var(--accent-gold)) !important;
        border-radius: 16px !important;
        box-shadow: var(--shadow-gold) !important;
        border: none !important;
    }
}

/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
    .section-padding { padding: 3.5rem 0; }
    .container { padding: 0 1.25rem; }
    
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.95rem; }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 2.5rem);
        padding-bottom: 4.5rem;
        text-align: center;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.75rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stats-bar { margin-top: -2.5rem; }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 1.25rem;
    }

    .stat-item {
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 1rem;
        padding-top: 0.25rem;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .stat-number { font-size: 2.4rem; }

    .about-pillars { margin: 1.5rem 0; }
    .pillar-card { padding: 1rem; gap: 0.85rem; }
    .pillar-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .visual-image { height: 280px; }

    .strengths-grid { grid-template-columns: 1fr; gap: 1rem; }
    .strength-item { padding: 1.25rem 1rem; gap: 0.85rem; }

    .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .service-card { padding: 1.75rem 1.25rem; }

    .team-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .team-card.team-card-center { grid-column: span 1; max-width: 100%; margin: 0; }
    .team-card { padding: 1.75rem 1.25rem; }

    .projects-filter { gap: 0.4rem; margin-bottom: 2rem; }
    .filter-btn { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
    .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .project-thumb { height: 220px; }
    .project-body { padding: 1.5rem 1.25rem; }

    .sustainability-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .sustain-card { padding: 2rem 1.25rem; }

    .form-wrapper { padding: 1.75rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
    .contact-info-card { padding: 2rem 1.25rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
}

/* Small Mobile Screens (< 480px) */
@media (max-width: 480px) {
    .header .logo span { font-size: 0.925rem !important; }
    .header .logo-icon { width: 32px !important; height: 32px !important; font-size: 0.85rem !important; }
    .hero-title { font-size: 1.75rem; }
    .section-title { font-size: 1.6rem; }
    .software-badge { padding: 0.55rem 0.85rem; font-size: 0.85rem; gap: 0.4rem; }
    .modal-box { padding: 1.5rem 1.25rem; width: 95%; max-height: 85vh; overflow-y: auto; }
}
