/* ============================================
   ARAJ Innovex Co. Ltd. — Modern Professional Website
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4d7a;
    --secondary-color: #d4af37;
    --accent-color: #2c5f8d;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.55;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: clamp(1.85rem, 4vw, 2.5rem); line-height: 1.25; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.35; }
h4 { font-size: 1.25rem; line-height: 1.4; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.55;
}

/* Muted section background (shared) */
.page-content--muted {
    background: var(--bg-light);
}

/* About — Why Choose cards: stacked layout, equal height, readable text */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: stretch;
}

.why-choose-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: var(--bg-white);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    min-height: 100%;
    height: 100%;
}

.why-choose-card.reveal-on-scroll.is-revealed:hover {
    transform: translate3d(0, -5px, 0) scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition:
        opacity 0.75s cubic-bezier(0.25, 0.1, 0.25, 1),
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.why-choose-card__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.06) 100%);
    margin-bottom: 1rem;
}

.why-choose-card__icon i {
    font-size: 1.35rem;
    color: var(--secondary-color);
}

.why-choose-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    line-height: 1.35;
    color: var(--text-dark);
}

.why-choose-card__text {
    margin: 0;
    flex: 1 1 auto;
    line-height: 1.55;
    color: var(--text-light);
    font-size: 0.98rem;
}

body.rtl .why-choose-card {
    align-items: flex-end;
    text-align: right;
}

.vision-mission-card.reveal-on-scroll.is-revealed:hover,
.value-card.reveal-on-scroll.is-revealed:hover,
.contact-option-card.reveal-on-scroll.is-revealed:hover,
.benefit-card.reveal-on-scroll.is-revealed:hover,
.stat-item.stat-item--highlight.reveal-on-scroll.is-revealed:hover,
.process-step.reveal-on-scroll.is-revealed:hover {
    transform: translate3d(0, -5px, 0) scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition:
        opacity 0.75s cubic-bezier(0.25, 0.1, 0.25, 1),
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

@media (max-width: 992px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll-reveal (IntersectionObserver adds .is-revealed in main.js) */
.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.98);
    will-change: opacity, transform;
    transition:
        opacity 0.75s cubic-bezier(0.25, 0.1, 0.25, 1),
        transform 0.75s cubic-bezier(0.25, 0.1, 0.25, 1),
        box-shadow 0.3s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 48px;
    width: 48px;
    min-width: 48px;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 0;
    opacity: 1;
}

/* Full brand lockup: mark image + company name (always visible beside logo) */
.logo-brand--full {
    align-items: center;
    gap: clamp(0.65rem, 1.5vw, 0.9rem);
    max-width: min(560px, 94vw);
    flex-wrap: nowrap;
    min-width: 0;
}

.logo-img.logo-img--full {
    height: 48px;
    width: auto;
    min-width: 0;
    max-width: min(120px, 28vw);
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
}

body.rtl .logo-img.logo-img--full {
    object-position: right center;
}

/* Name + slogan column beside mark */
.logo-text-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
}

body.rtl .logo-text-stack {
    align-items: flex-end;
    text-align: right;
}

.logo-company-name {
    font-size: clamp(0.95rem, 1.6vw, 1.375rem);
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
}

.logo .logo-brand--full .logo-company-name {
    color: var(--primary-color);
}

body.rtl .logo-company-name {
    text-align: right;
}

.logo-tagline {
    font-size: clamp(0.68rem, 1.05vw, 0.875rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.02em;
    margin: 0;
    white-space: nowrap;
    color: #5c6b7a;
}

/* Brand gradient slogan (Innovation Meets Integrity) */
.logo .logo-brand--full .logo-tagline {
    background: linear-gradient(135deg, #0d4d2d 0%, #0f766e 38%, #2d8659 62%, #4ade80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@supports not (background-clip: text) {
    .logo .logo-brand--full .logo-tagline {
        -webkit-text-fill-color: unset;
        color: #0f766e;
        background: none;
    }
}

body.rtl .logo-tagline {
    text-align: right;
}

.logo-img.logo-svg {
    overflow: visible;
    shape-rendering: geometricPrecision;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

body.rtl .logo-text {
    align-items: flex-end;
    text-align: right;
}

body.rtl .logo-brand {
    flex-direction: row-reverse;
}

.logo h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.logo .tagline {
    font-size: 0.90rem;
    background: linear-gradient(135deg, #0d4d2d 0%, #2d8659 50%, #4ade80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.1),
        -2px -2px 4px rgba(255, 255, 255, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Light Swipe Effect */
.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 
        6px 6px 12px rgba(0, 0, 0, 0.15),
        -3px -3px 6px rgba(255, 255, 255, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Ensure text stays above swipe effect */
.nav-menu a {
    z-index: 1;
}

.nav-menu a > * {
    position: relative;
    z-index: 2;
}

.nav-menu a:active {
    transform: translateY(0px);
    box-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.15),
        -1px -1px 2px rgba(255, 255, 255, 0.8),
        inset 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu a.active {
    color: var(--bg-white);
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    box-shadow: 
        4px 4px 8px rgba(26, 77, 122, 0.3),
        -2px -2px 4px rgba(44, 95, 141, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light Swipe Effect for Active Buttons */
.nav-menu a.active::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.3),
        transparent
    );
}

.nav-menu a.active:hover {
    transform: translateY(-2px);
    box-shadow: 
        6px 6px 12px rgba(26, 77, 122, 0.4),
        -3px -3px 6px rgba(44, 95, 141, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.nav-menu a.active:active {
    transform: translateY(0px);
    box-shadow: 
        2px 2px 4px rgba(26, 77, 122, 0.3),
        -1px -1px 2px rgba(44, 95, 141, 0.2),
        inset 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu a.active::after {
    display: none;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 1rem;
    border-radius: 14px;
    overflow: visible;
    padding: 0.5rem;
    background: linear-gradient(165deg, #ffffff 0%, #f0f4fb 38%, #e2e8f0 72%, #dbe4f0 100%);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow:
        0 14px 32px rgba(26, 77, 122, 0.18),
        0 4px 12px rgba(15, 23, 42, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 0.95),
        inset 0 -2px 8px rgba(148, 163, 184, 0.22);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: none;
}

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

/* Colorful service icon (matches reference: building, plant, trucks, laptop, shield, hotel, plane) */
.nav-service-icon {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    color: #fff;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 6px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(15, 23, 42, 0.15);
}

.nav-service-icon--construction {
    background: linear-gradient(145deg, #fb923c, #ea580c);
}

.nav-service-icon--agro {
    background: linear-gradient(145deg, #4ade80, #16a34a);
}

.nav-service-icon--logistics {
    background: linear-gradient(145deg, #60a5fa, #2563eb);
}

.nav-service-icon--transportation {
    background: linear-gradient(145deg, #a78bfa, #7c3aed);
}

.nav-service-icon--it {
    background: linear-gradient(145deg, #22d3ee, #0891b2);
}

.nav-service-icon--security {
    background: linear-gradient(145deg, #f87171, #dc2626);
}

.nav-service-icon--hotels {
    background: linear-gradient(145deg, #f472b6, #db2777);
}

.nav-service-icon--tourism {
    background: linear-gradient(145deg, #38bdf8, #0284c7);
}

/* Each row: light tinted gradient (logo palette — teal, orange, green, navy hints) */
.dropdown-menu a.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    margin: 0.2rem 0;
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow:
        3px 3px 8px rgba(15, 23, 42, 0.06),
        -2px -2px 6px rgba(255, 255, 255, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: normal;
}

.dropdown-menu a.nav-dropdown-link--construction {
    background: linear-gradient(145deg, #fffdfb 0%, #fff7ed 45%, #ffedd5 100%);
    border: 1px solid rgba(251, 146, 60, 0.22);
}

.dropdown-menu a.nav-dropdown-link--agro {
    background: linear-gradient(145deg, #f7fef9 0%, #ecfdf5 50%, #d1fae5 100%);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.dropdown-menu a.nav-dropdown-link--logistics {
    background: linear-gradient(145deg, #f8fbff 0%, #eff6ff 50%, #dbeafe 100%);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.dropdown-menu a.nav-dropdown-link--transportation {
    background: linear-gradient(145deg, #faf8ff 0%, #f3e8ff 50%, #ede9fe 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.dropdown-menu a.nav-dropdown-link--it {
    background: linear-gradient(145deg, #f0fdff 0%, #ecfeff 50%, #cffafe 100%);
    border: 1px solid rgba(6, 182, 212, 0.22);
}

.dropdown-menu a.nav-dropdown-link--security {
    background: linear-gradient(145deg, #fffafa 0%, #fef2f2 50%, #fee2e2 100%);
    border: 1px solid rgba(248, 113, 113, 0.22);
}

.dropdown-menu a.nav-dropdown-link--hotels {
    background: linear-gradient(145deg, #fffafc 0%, #fdf2f8 50%, #fce7f3 100%);
    border: 1px solid rgba(244, 114, 182, 0.22);
}

.dropdown-menu a.nav-dropdown-link--tourism {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    border: 1px solid rgba(14, 165, 233, 0.22);
}

/* Services page — sticky “Our Services” strip (same palette + icons as header dropdown) */
.service-nav-item.service-nav-item--construction {
    background: linear-gradient(145deg, #fffdfb 0%, #fff7ed 45%, #ffedd5 100%);
    border: 1px solid rgba(251, 146, 60, 0.22);
}

.service-nav-item.service-nav-item--agro {
    background: linear-gradient(145deg, #f7fef9 0%, #ecfdf5 50%, #d1fae5 100%);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.service-nav-item.service-nav-item--logistics {
    background: linear-gradient(145deg, #f8fbff 0%, #eff6ff 50%, #dbeafe 100%);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.service-nav-item.service-nav-item--transportation {
    background: linear-gradient(145deg, #faf8ff 0%, #f3e8ff 50%, #ede9fe 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.service-nav-item.service-nav-item--it {
    background: linear-gradient(145deg, #f0fdff 0%, #ecfeff 50%, #cffafe 100%);
    border: 1px solid rgba(6, 182, 212, 0.22);
}

.service-nav-item.service-nav-item--security {
    background: linear-gradient(145deg, #fffafa 0%, #fef2f2 50%, #fee2e2 100%);
    border: 1px solid rgba(248, 113, 113, 0.22);
}

.service-nav-item.service-nav-item--hotels {
    background: linear-gradient(145deg, #fffafc 0%, #fdf2f8 50%, #fce7f3 100%);
    border: 1px solid rgba(244, 114, 182, 0.22);
}

.service-nav-item.service-nav-item--tourism {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    border: 1px solid rgba(14, 165, 233, 0.22);
}

/* Services page — main section titles with same icons as nav */
.service-details h2.service-section-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: nowrap;
}

/* Keep icon + title on one row; long titles wrap inside the text span (not below the icon). */
.service-details h2.service-section-title > span[data-translate] {
    flex: 1;
    min-width: 0;
}

/* Logistics heading: keep full title on one line (EN + long Arabic string). */
.service-details h2.service-section-title--single-line > span[data-translate] {
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: min-content;
}

.service-details h2.service-section-title .nav-service-icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    font-size: 1.35rem;
    border-radius: 14px;
}

body.rtl .service-details h2.service-section-title {
    flex-direction: row-reverse;
    text-align: right;
}

.dropdown-menu a span[data-translate] {
    flex: 1;
    line-height: 1.3;
}

/* Light Swipe Effect for Dropdown Items */
.dropdown-menu a.nav-dropdown-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.dropdown-menu a.nav-dropdown-link:hover::before {
    left: 100%;
}

.dropdown-menu a.nav-dropdown-link:hover {
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateX(4px) translateY(-2px);
    box-shadow: 
        4px 4px 8px rgba(26, 77, 122, 0.25),
        -2px -2px 4px rgba(44, 95, 141, 0.15);
}

.dropdown-menu a.nav-dropdown-link:hover .nav-service-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.dropdown-menu a.nav-dropdown-link:hover::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.3),
        transparent
    );
}

/* Ensure dropdown text stays above swipe effect */
.dropdown-menu a.nav-dropdown-link > * {
    position: relative;
    z-index: 2;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-dropdown {
    position: relative;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-toggle i.fa-chevron-down {
    font-size: 0.7rem;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.lang-dropdown:hover .lang-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

body.rtl .lang-menu {
    right: auto;
    left: 0;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    margin: 0;
}

.lang-option {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-option:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.lang-option.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #c19a26;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

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

/* Dynamic Background Pattern Container */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    animation: backgroundShift 20s ease-in-out infinite;
}

/* Hero slides 1–5: all use rotating conic / dual-conic “dynamic” layers (same family as former slides 2 & 5) */

/* Slide 1 — conic sweep + rotate (variant of slide 2 style) */
.hero-slide[data-slide="1"] {
    background: linear-gradient(135deg, #1a4d7a 0%, #2c5f8d 50%, #1a4d7a 100%);
}

.hero-slide[data-slide="1"] .hero-bg-pattern {
    background:
        conic-gradient(from 90deg at 50% 50%, rgba(212, 175, 55, 0.14) 0deg, transparent 55deg, rgba(212, 175, 55, 0.09) 115deg, transparent 180deg, rgba(212, 175, 55, 0.14) 235deg, transparent 300deg),
        radial-gradient(circle at 35% 35%, rgba(212, 175, 55, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 65% 65%, rgba(212, 175, 55, 0.16) 0%, transparent 42%),
        linear-gradient(135deg, rgba(26, 77, 122, 0.98) 0%, rgba(44, 95, 141, 0.98) 100%);
    background-size: 1200px 1200px, 520px 520px, 520px 520px, 100% 100%;
    animation: heroFlowConic 26s linear infinite;
}

/* Slide 2 — original dynamic conic */
.hero-slide[data-slide="2"] {
    background: linear-gradient(135deg, #1a4d7a 0%, #2c5f8d 50%, #1a4d7a 100%);
}

.hero-slide[data-slide="2"] .hero-bg-pattern {
    background:
        conic-gradient(from 180deg at 50% 50%, rgba(212, 175, 55, 0.12) 0deg, transparent 60deg, rgba(212, 175, 55, 0.08) 120deg, transparent 180deg, rgba(212, 175, 55, 0.12) 240deg, transparent 300deg),
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, rgba(26, 77, 122, 0.98) 0%, rgba(44, 95, 141, 0.98) 100%);
    background-size: 1200px 1200px, 500px 500px, 500px 500px, 100% 100%;
    animation: heroFlowConic 25s linear infinite;
}

@keyframes heroFlowConic {
    0% {
        background-position: 0% 0%, 0% 0%, 100% 100%, 0 0;
        transform: rotate(0deg);
    }
    100% {
        background-position: 100% 100%, 20% 20%, 80% 80%, 0 0;
        transform: rotate(360deg);
    }
}

/* Slide 3 — dual conic + scale rotate (variant of slide 5 style) */
.hero-slide[data-slide="3"] {
    background: linear-gradient(135deg, #0f2d4a 0%, #1a4d7a 45%, #2c5f8d 55%, #1a4d7a 100%);
}

.hero-slide[data-slide="3"] .hero-bg-pattern {
    background:
        conic-gradient(from 45deg at 22% 28%, rgba(212, 175, 55, 0.22) 0deg, transparent 90deg, rgba(212, 175, 55, 0.14) 180deg, transparent 270deg),
        conic-gradient(from 225deg at 78% 72%, rgba(212, 175, 55, 0.18) 0deg, transparent 90deg, rgba(212, 175, 55, 0.11) 180deg, transparent 270deg),
        radial-gradient(ellipse 620px 320px at 50% 50%, rgba(212, 175, 55, 0.11) 0%, transparent 58%),
        linear-gradient(135deg, rgba(15, 45, 74, 0.95) 0%, rgba(26, 77, 122, 0.95) 45%, rgba(44, 95, 141, 0.95) 55%, rgba(26, 77, 122, 0.95) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 28px, rgba(255, 255, 255, 0.022) 28px, rgba(255, 255, 255, 0.022) 30px);
    background-size: 780px 780px, 720px 720px, 100% 100%, 100% 100%, 96px 96px;
    animation: heroFlowDualConic 24s linear infinite;
}

/* Slide 4 — conic sweep + rotate (reverse feel) */
.hero-slide[data-slide="4"] {
    background: linear-gradient(135deg, #1a4d7a 0%, #2c5f8d 50%, #1a4d7a 100%);
}

.hero-slide[data-slide="4"] .hero-bg-pattern {
    background:
        conic-gradient(from 270deg at 50% 50%, rgba(212, 175, 55, 0.13) 0deg, transparent 58deg, rgba(212, 175, 55, 0.1) 118deg, transparent 180deg, rgba(212, 175, 55, 0.13) 242deg, transparent 302deg),
        radial-gradient(circle at 28% 62%, rgba(212, 175, 55, 0.17) 0%, transparent 40%),
        radial-gradient(circle at 72% 38%, rgba(212, 175, 55, 0.17) 0%, transparent 40%),
        linear-gradient(135deg, rgba(26, 77, 122, 0.98) 0%, rgba(44, 95, 141, 0.98) 100%);
    background-size: 1200px 1200px, 500px 500px, 500px 500px, 100% 100%;
    animation: heroFlowConicReverse 23s linear infinite;
}

@keyframes heroFlowConicReverse {
    0% {
        background-position: 100% 100%, 0% 0%, 100% 0%, 0 0;
        transform: rotate(360deg);
    }
    100% {
        background-position: 0% 0%, 100% 100%, 0% 100%, 0 0;
        transform: rotate(0deg);
    }
}

/* Slide 5 — original dual-conic dynamic */
.hero-slide[data-slide="5"] {
    background: linear-gradient(135deg, #0f2d4a 0%, #1a4d7a 40%, #2c5f8d 60%, #1a4d7a 100%);
}

.hero-slide[data-slide="5"] .hero-bg-pattern {
    background:
        conic-gradient(from 0deg at 20% 30%, rgba(212, 175, 55, 0.25) 0deg, transparent 90deg, rgba(212, 175, 55, 0.15) 180deg, transparent 270deg),
        conic-gradient(from 180deg at 80% 70%, rgba(212, 175, 55, 0.2) 0deg, transparent 90deg, rgba(212, 175, 55, 0.12) 180deg, transparent 270deg),
        radial-gradient(ellipse 600px 300px at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 60%),
        linear-gradient(135deg, rgba(15, 45, 74, 0.95) 0%, rgba(26, 77, 122, 0.95) 40%, rgba(44, 95, 141, 0.95) 60%, rgba(26, 77, 122, 0.95) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255, 255, 255, 0.02) 30px, rgba(255, 255, 255, 0.02) 32px);
    background-size: 800px 800px, 700px 700px, 100% 100%, 100% 100%, 100px 100px;
    animation: heroFlowDualConic 22s linear infinite;
}

@keyframes heroFlowDualConic {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0 0, 0 0;
        transform: rotate(0deg) scale(1);
    }
    50% {
        background-position: 20% 20%, 80% 80%, 50% 50%, 0 0, 50px 50px;
        transform: rotate(180deg) scale(1.02);
    }
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0 0, 0 0;
        transform: rotate(360deg) scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
}

/* Arabic Text - RTL Animation */
.hero-title-arabic {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    direction: rtl;
    text-align: center;
    line-height: 1.4;
    animation: slideInRight 1s ease;
    font-family: 'Segoe UI', 'Arial', 'Tahoma', sans-serif;
    display: none; /* Hidden by default, shown when Arabic is selected */
}

/* English Text - LTR Animation */
.hero-subtitle-english {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    direction: ltr;
    display: block; /* Shown by default for English */
    text-align: center;
    animation: slideInLeft 1s ease 0.2s both;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.4s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Hero Navigation Buttons */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.hero-prev,
.hero-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--bg-white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-indicators .indicator.active {
    background: var(--secondary-color);
    border-color: var(--bg-white);
    width: 30px;
    border-radius: 6px;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes backgroundShift {
    0%, 100% {
        transform: scale(1) translateX(0);
    }
    50% {
        transform: scale(1.05) translateX(10px);
    }
}

/* Quick Services */
.quick-services {
    padding: 5rem 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.quick-services .service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.quick-services .service-card p {
    flex: 1 1 auto;
}

/* Homepage “Our Services” grid — same colorful icons as nav dropdown */
.quick-services .service-icon {
    background: none;
    border-radius: 0;
    width: auto;
    height: auto;
    min-height: 5rem;
    margin: 0 auto 1.25rem;
    color: inherit;
    font-size: inherit;
}

.quick-services .service-icon .nav-service-icon {
    width: 4.25rem;
    height: 4.25rem;
    min-width: 4.25rem;
    font-size: 1.75rem;
    border-radius: 16px;
}

.quick-services .service-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.quick-services .service-card.service-card--construction {
    background: linear-gradient(180deg, #fffdfb 0%, #ffffff 55%);
}

.quick-services .service-card.service-card--agro {
    background: linear-gradient(180deg, #f7fef9 0%, #ffffff 55%);
}

.quick-services .service-card.service-card--logistics {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 55%);
}

.quick-services .service-card.service-card--transportation {
    background: linear-gradient(180deg, #faf8ff 0%, #ffffff 55%);
}

.quick-services .service-card.service-card--it {
    background: linear-gradient(180deg, #f0fdff 0%, #ffffff 55%);
}

.quick-services .service-card.service-card--security {
    background: linear-gradient(180deg, #fffafa 0%, #ffffff 55%);
}

.quick-services .service-card.service-card--hotels {
    background: linear-gradient(180deg, #fffafc 0%, #ffffff 55%);
}

.quick-services .service-card.service-card--tourism {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 55%);
}

.service-value-proposition {
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    color: var(--text-dark);
    line-height: 1.6;
}

body.rtl .service-value-proposition {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    border-radius: 8px 0 0 8px;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card.reveal-on-scroll.is-revealed:hover {
    transform: translate3d(0, -5px, 0) scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition:
        opacity 0.75s cubic-bezier(0.25, 0.1, 0.25, 1),
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
}

/* About Preview */
.about-preview {
    padding: 5rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-highlight {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.stat-item--highlight {
    padding: 1.75rem 1.25rem;
}

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

/* Capabilities portfolio (portfolio.html) */
.portfolio-capabilities-intro {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.65;
}

.portfolio-filter-section {
    padding: 1.75rem 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.65rem 1.35rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.portfolio-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 2rem;
    margin-top: 0.5rem;
}

.capability-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.capability-card.reveal-on-scroll.is-revealed:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translate3d(0, -5px, 0) scale(1);
    transition:
        opacity 0.75s cubic-bezier(0.25, 0.1, 0.25, 1),
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.capability-card__media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.capability-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.capability-card.reveal-on-scroll.is-revealed:hover .capability-card__media img {
    transform: scale(1.04);
}

.capability-card__body {
    padding: 1.5rem 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.capability-card .portfolio-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.capability-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.capability-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.55;
}

.capability-scope {
    margin-bottom: 1rem;
}

.capability-scope strong,
.capability-approach strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.capability-scope ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.55;
}

.capability-approach {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex: 1;
}

.capability-card .btn {
    align-self: flex-start;
    margin-top: auto;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
}

.portfolio-stats-section {
    padding: 3.5rem 0;
    background: var(--bg-light);
}

.portfolio-stats-section .stats-grid-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.portfolio-stats-section .stat-item {
    text-align: center;
    padding: 1.75rem 1.25rem;
}

.portfolio-stats-section .stat-highlight {
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .portfolio-capabilities-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
    text-align: center;
}

.cta-content h2 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA strip: same look for primary + outline (unified ghost on blue gradient) */
.cta-section .cta-buttons .btn {
    border: 2px solid rgba(255, 255, 255, 0.92);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cta-section .cta-buttons .btn:hover {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-section .cta-buttons .btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 3px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.contact-info i {
    color: var(--secondary-color);
}

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

/* Legacy chat widget removed — see css/ai-chat.css */

/* Page Styles */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.page-content {
    padding: 4rem 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        gap: 1rem;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        margin: 0.25rem 0;
    }

    /* Services dropdown: stack in flow — no absolute overlay / overflow clash */
    .nav-menu > li.dropdown {
        position: static;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu > li.dropdown > a {
        width: 100%;
        box-sizing: border-box;
    }

    .nav-menu .dropdown-menu {
        position: static;
        left: auto !important;
        right: auto !important;
        top: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-top: 0.4rem;
        margin-bottom: 0.5rem;
        padding: 0.5rem 0.45rem 0.65rem;
        box-shadow: none;
        border: 1px solid rgba(148, 163, 184, 0.45);
        background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
        display: block;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-menu .dropdown-menu a.nav-dropdown-link {
        text-align: start;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0.25rem 0;
        padding: 0.7rem 0.75rem;
        transform: none !important;
    }

    .nav-menu .dropdown-menu a.nav-dropdown-link:hover {
        transform: none !important;
    }

    body.rtl .nav-menu .dropdown-menu a.nav-dropdown-link {
        text-align: right;
        justify-content: flex-end;
        flex-direction: row-reverse;
    }

    body.rtl .dropdown-menu a.nav-dropdown-link:hover {
        transform: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title-arabic {
        font-size: 2.5rem;
    }

    .hero-subtitle-english {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-nav {
        padding: 0 1rem;
    }

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .hero-title-arabic {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle-english {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-nav {
        padding: 0 0.5rem;
    }

    .hero-prev,
    .hero-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .hero-indicators {
        bottom: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* RTL Support for Arabic */
body.rtl {
    direction: rtl;
}

/* Desktop only — row-reverse breaks mobile column nav */
@media (min-width: 969px) {
    body.rtl .nav-menu {
        flex-direction: row-reverse;
    }
}

body.rtl .hero-title-arabic {
    direction: rtl;
    text-align: center;
}

body.rtl .hero-subtitle-english {
    direction: ltr;
    text-align: center;
}

body.rtl .dropdown-menu {
    right: 0;
    left: auto;
}

body.rtl .dropdown-menu a.nav-dropdown-link {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .dropdown-menu a.nav-dropdown-link:hover {
    transform: translateX(-4px) translateY(-2px);
}

body.rtl .service-card,
body.rtl .capability-card {
    text-align: right;
}

body.rtl .capability-scope ul {
    padding-right: 1.15rem;
    padding-left: 0;
}

body.rtl .footer-content {
    direction: rtl;
}

body.rtl .about-content {
    direction: rtl;
}

body.rtl .about-content > * {
    direction: ltr;
}

/* Form Validation Styles */
input.error,
textarea.error,
select.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-message {
    background: #2ecc71;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* Images: visible by default. A previous rule set all img { opacity: 0 }, which hid the header logo
   (it has neither loading="lazy" nor a .loaded class). */
img {
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Accessibility Improvements */
.skip-link:focus {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 9999;
    padding: 1em;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* Touch-friendly button sizes for mobile - WCAG 2.5.5 Target Size */
@media (max-width: 640px) {
    .logo-brand--full {
        flex-wrap: wrap;
        max-width: min(100%, calc(100vw - 2.5rem));
        row-gap: 0.25rem;
    }

    .logo-text-stack {
        max-width: min(16rem, calc(100vw - 8rem));
    }

    .logo-company-name {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        white-space: normal;
        max-width: 14rem;
        line-height: 1.25;
    }

    .logo-tagline {
        font-size: clamp(0.65rem, 2.8vw, 0.8rem);
        white-space: normal;
        max-width: 14rem;
    }

    .logo-img.logo-img--full {
        max-width: min(100px, 22vw);
        height: 42px;
        max-height: 44px;
    }
}

@media (max-width: 768px) {
    .logo-img:not(.logo-img--full) {
        height: 40px;
        width: 40px;
        min-width: 40px;
    }

    .logo-brand--full {
        max-width: min(520px, 92vw);
    }

    .logo-img.logo-img--full {
        height: 44px;
        max-height: 48px;
        width: auto;
        min-width: 0;
    }

    .btn,
    button,
    .nav-menu a,
    .service-link,
    .lang-toggle,
    .mobile-toggle,
    .ai-chat-fab,
    .hero-prev,
    .hero-next,
    .indicator,
    .filter-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Ensure icons are touch-friendly */
    .social-links a,
    .service-icon,
    .contact-icon {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve spacing for touch targets */
    .nav-menu a {
        margin: 0.5rem 0;
    }
    
    /* Better spacing for form inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Improve dropdown touch targets */
    .dropdown-menu a.nav-dropdown-link {
        min-height: 44px;
        padding: 1rem 1.5rem;
    }
    
    /* Better spacing for service cards */
    .service-card {
        padding: 1.5rem;
    }
    
}

/* WhatsApp Button Styling */
.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-link:hover {
    color: #128C7E;
    text-decoration: underline;
}

/* Social Sharing Buttons */
.social-share-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-size: 1.1rem;
    position: relative;
}

.share-btn:hover,
.share-btn:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.share-btn:active {
    transform: translateY(0);
}

.share-facebook:hover,
.share-facebook:focus {
    background: #1877f2;
    color: white;
}

.share-twitter:hover,
.share-twitter:focus {
    background: #1da1f2;
    color: white;
}

.share-linkedin:hover,
.share-linkedin:focus {
    background: #0077b5;
    color: white;
}

.share-whatsapp:hover,
.share-whatsapp:focus {
    background: #25D366;
    color: white;
}

.share-email:hover,
.share-email:focus {
    background: var(--primary-color);
    color: white;
}

.page-share-container {
    margin-top: 1.5rem;
    text-align: center;
}

.page-share-container .social-share-buttons {
    justify-content: center;
}

.project-share-container {
    margin-top: 1rem;
}

.service-share-container {
    margin-top: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.service-card.reveal-on-scroll.is-revealed:hover .service-share-container {
    opacity: 1;
}

/* Share notification animation */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.share-notification {
    font-weight: 600;
}

/* Copy link button */
.copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    min-height: 44px;
    min-width: 44px;
}

.copy-link-btn:hover,
.copy-link-btn:focus {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Utility Classes */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

