/* ==========================================================================
   RESET & BASE STYLES - Optimized for Performance & SEO
   ========================================================================== */

/* CSS Reset - Minimal and efficient */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Typography & Layout - Optimized for mobile */
:root {
    /* Brand Color Variables */
    --primary-blue: #0033a0;
    --primary-dark: #00257a;
    --text-dark: #052028;
    --text-light: #64748b;
    --white: #ffffff;
    --background: #f7f8fb;
    --border-light: #e6edf3;
    --shadow-light: rgba(11, 79, 138, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    
    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 30px;
    --space-4xl: 40px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Body Styles - Optimized for performance */
body {
    margin: 0;
    font-family: 'Roboto', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
    color: var(--text-dark);
    background: var(--background);
    direction: rtl; /* Default Arabic */
    text-align: right;
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* Container System - Mobile First */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Responsive Images - Prevent layout shifts */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   HEADER STYLES - Optimized for Mobile & SEO
   ========================================================================== */

/* Header - Fixed for mobile, semantic markup support */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Header Layout - Optimized for mobile */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    direction: inherit;
    max-width: 100%;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Logo Container - SEO optimized */
.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    min-width: 0; /* Allow shrinking */
}

/* Logo Image - Optimized loading */
.logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
    aspect-ratio: 1;
}

/* Logo Text - Brand consistency */
.logo-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    gap: var(--space-xs);
    min-width: 0;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    word-wrap: break-word;
}

/* Navigation - Semantic and accessible */
.nav {
    margin-left: var(--space-3xl);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-xl);
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--transition-fast);
    position: relative;
}

.nav a:hover,
.nav a:focus {
    color: var(--primary-dark);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width var(--transition-normal);
}

.nav a:hover::after {
    width: 100%;
}

/* Header CTA Button - Optimized for mobile */
.header-cta .btn-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 14px;
    min-width: auto;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.header-cta .btn-header:hover,
.header-cta .btn-header:focus {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3);
}

/* ==========================================================================
   HERO SECTION - Optimized for Performance & SEO
   ========================================================================== */

/* Hero Section - Critical above-the-fold content */
.hero {
    height: 500px;
    background-image: url('../assets/hero.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    overflow: hidden;
}

/* Hero Overlay - Semantic and accessible */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 28, 97, 0.85) 0%, rgba(0, 28, 97, 0.78) 100%);
    padding: var(--space-4xl) var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Hero Typography - SEO optimized hierarchy */
.hero-title,
.hero-sub {
    text-align: center;
    max-width: 100%;
}

.hero-title {
    font-family: 'Roboto', 'Tajawal', Arial, sans-serif;
    font-size: clamp(24px, 5vw, 36px); /* Responsive font size */
    color: var(--white);
    margin: 0 0 var(--space-md);
    line-height: 1.2;
    padding: 0 var(--space-lg);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 var(--space-xl);
    font-size: clamp(14px, 3vw, 18px);
    line-height: 1.5;
    padding: 0 var(--space-lg);
    font-weight: 400;
    max-width: 600px;
}

/* Hero Buttons - CTA optimization */
.hero-buttons {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* Base Button Styles - Reusable component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    min-width: 140px;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    cursor: pointer;
    font-family: inherit;
}

.btn-ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-yellow,
.btn-yellow:visited {
    background: #f5b400;
    color: #003;
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-xl);
    border: none;
}

.btn-yellow {
    box-shadow: 0 8px 20px rgba(11, 79, 138, 0.15);
}

.btn-yellow:hover,
.btn-yellow:focus {
    background: #e6a300;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(11, 79, 138, 0.25);
}

/* Verified Stamp - Trust signal optimization */
.verified-stamp-professional {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-xs) var(--space-lg);
    border: 2px solid #FFC107;
    border-radius: 4px;
    background-color: rgba(255, 193, 7, 0.1);
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
    margin: 0 var(--space-sm);
    line-height: 1;
}

.hero-subtitle {
    font-size: clamp(14px, 3vw, 16px);
    color: var(--white);
    padding: var(--space-lg) 0;
    font-weight: 300;
    line-height: 1.6;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON - Optimized for Mobile
   ========================================================================== */

.wa-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0; /* Hide text, show only icon */
    border: none;
    cursor: pointer;
}

.wa-floating:hover,
.wa-floating:focus {
    background: #128C7E;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.wa-floating::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52-.149-.174-.198-.298-.298-.497-.099-.198-.05-.371.025-.52.075-.149.669-1.612.916-2.207.242-.579.487-.5.669-.51.173-.008.371-.01.57-.01.198 0 .52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462-1.065 2.875-1.213 3.074-.149.198-2.096 3.2-5.077 4.487-.709.306-1.262.489-1.694.625-.712.227-1.36.195-1.871.118-.571-.085-1.758-.719-2.006-1.413-.248-.694-.248-1.289-.173-1.413.074-.124.272-.198.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893-.001-3.189-1.248-6.189-3.515-8.452'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ==========================================================================
   SECTION STYLES - Reusable Components
   ========================================================================== */

.section {
    padding: var(--space-4xl) 0;
    width: 100%;
    overflow: hidden;
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: clamp(20px, 4vw, 28px);
    margin-bottom: var(--space-3xl);
    position: relative;
    padding: 0 var(--space-lg);
    font-weight: 700;
    line-height: 1.3;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    margin: var(--space-lg) auto 0;
    border-radius: 4px;
}

/* ==========================================================================
   CARDS & GRID SYSTEMS - Mobile Optimized
   ========================================================================== */

/* Cards Row - Responsive grid */
.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--space-xl);
    width: 100%;
}

/* Card Component - Reusable */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 6px 18px var(--shadow-light);
    text-align: right;
    width: 100%;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(11, 79, 138, 0.1);
}

.card-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: var(--space-xl);
}

.card-body h3 {
    margin: 0 0 var(--space-lg);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.4;
}

.card-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    transition: color var(--transition-fast);
}

.card-link:hover,
.card-link:focus {
    color: var(--primary-dark);
}

/* ==========================================================================
   SERVICES GRID - Mobile Optimized
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: var(--space-xl);
    width: 100%;
}

.service-card {
    background: var(--white);
    padding: var(--space-2xl) var(--space-xl);
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    box-shadow: 0 6px 18px rgba(11, 79, 138, 0.03);
    min-height: 140px;
    width: 100%;
    box-sizing: border-box;
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(11, 79, 138, 0.08);
}

.service-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.service-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-blue);
    line-height: 1.2;
}

/* ==========================================================================
   VIDEO GALLERY - Performance Optimized
   ========================================================================== */

.videos {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    margin: var(--space-4xl) 0;
    padding: var(--space-4xl) var(--space-xl);
}

.videos .section-title {
    color: var(--primary-blue);
    font-size: clamp(22px, 4vw, 28px);
    margin-bottom: var(--space-3xl);
}

/* Enhanced Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

/* Enhanced Video Thumbnail */
.video-thumb {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: 0 8px 25px var(--shadow-medium);
    position: relative;
    width: 100%;
    transition: all var(--transition-normal);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.video-thumb:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
    border-radius: var(--radius-lg);
}

.video-thumb:hover::before {
    opacity: 1;
}

.video-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: block;
    transition: transform var(--transition-normal);
}

.video-thumb:hover img {
    transform: scale(1.05);
}

/* Enhanced Play Button */
.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    cursor: pointer;
    border: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-normal);
}

.play-btn:hover {
    background: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Enhanced Video Title */
.video-title {
    padding: var(--space-xl);
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Video Filters/Sorting */
.video-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
}

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

/* Video Load More */
.video-load-more {
    text-align: center;
    margin-top: var(--space-4xl);
}

.load-more-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: var(--space-md) var(--space-3xl);
    border-radius: var(--radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Video Counter */
.video-counter {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-top: var(--space-lg);
}

/* Enhanced Video Modal */
.video-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.video-modal-content {
    background: #000;
    padding: var(--space-xl);
    max-width: 90%;
    width: min(900px, 95vw);
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#video-frame {
    width: 100%;
    height: min(500px, 50vh);
    border-radius: var(--radius-sm);
    border: none;
}

.video-close {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 24px;
    color: var(--white);
    background: var(--primary-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: 2px solid var(--white);
    transition: all var(--transition-normal);
}

.video-close:hover {
    background: #dc2626;
    transform: rotate(90deg);
}

/* ==========================================================================
   RESPONSIVE DESIGN - Mobile First Enhancements
   ========================================================================== */

@media (max-width: 768px) {
    .header-inner {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
    }
    
    .nav {
        margin-left: var(--space-lg);
    }
    
    .nav ul {
        gap: var(--space-md);
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-overlay {
        padding: var(--space-3xl) var(--space-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .wa-floating {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }
    
    .video-modal-content {
        padding: var(--space-md);
    }
    
    #video-frame {
        height: min(300px, 40vh);
    }
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .logo-texts {
        align-items: center;
    }
    
    .nav {
        margin-left: 0;
        order: 3;
        width: 100%;
        margin-top: var(--space-md);
    }
    
    .nav ul {
        justify-content: center;
    }
    
    .cards-row,
    .services-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: var(--space-xl) var(--space-lg);
    }
}

/* Print Styles for SEO */
@media print {
    .wa-floating,
    .video-modal,
    .hero-buttons {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        height: auto;
    }
    
    .hero-overlay {
        position: static;
        background: none;
        color: #000;
    }
}
/* ==========================================================================
   ENHANCED MAP SECTION - Performance & SEO Optimized
   ========================================================================== */

/* Map dark section - Semantic and accessible */
.map-dark {
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-2xl) var(--space-xl);
    margin-top: var(--space-xl);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.map-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    z-index: -1;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--space-4xl);
    align-items: start;
    width: 100%;
}

/* PNG Map Container - Performance optimized */
.svg-map {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(145deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal);
    position: relative;
}

.map-card:hover .map-image {
    transform: scale(1.02);
}

/* Country Markers - Semantic and accessible */
.country-marker {
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
    border: none;
    background: none;
    padding: 0;
}

.country-marker:focus {
    outline: 2px solid #FFC107;
    outline-offset: 2px;
}

.country-marker:hover {
    transform: scale(1.2);
}

.country-marker:hover .pulse-dot {
    animation: pulse 1.5s infinite;
}

.country-marker:hover .marker-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Pulsing Dot Effect - Performance optimized */
.pulse-dot {
    width: 16px;
    height: 16px;
    background: #18a64a;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(24, 166, 74, 0.7);
    animation: pulse 2s infinite;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid #18a64a;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 166, 74, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(24, 166, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(24, 166, 74, 0);
    }
}

/* Marker Tooltips - SEO friendly content */
.marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    pointer-events: none;
    z-index: 20;
}

.marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* FIXED Marker Positions for PNG Map - Semantic naming */
.country-marker[data-country="yemen"] {
    top: 48%;
    right: 50%;
}

.country-marker[data-country="djibouti"] {
    top: 55%;
    right: 54%;
}

.country-marker[data-country="somalia"] {
    top: 62%;
    right: 40%;
}

.country-marker[data-country="ethiopia"] {
    top: 75%;
    right: 60%;
}

.country-marker[data-country="oman"] {
    top: 29%;
    right: 15%;
}

.country-marker[data-country="saudi"] {
    top: 13%;
    right: 65%;
}

/* Map section headings - SEO hierarchy */
.map-info h3 {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 4vw, 24px);
    color: var(--white);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

/* Enhanced Office Card - Trust signals */
.office-card.featured {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.office-card.featured:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.office-card.featured h4 {
    color: #f5b400;
    margin-bottom: var(--space-lg);
    font-size: 18px;
    font-weight: 700;
}

.regional-teams {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.regional-teams h5 {
    color: #f5b400;
    margin-bottom: var(--space-sm);
    font-size: 16px;
    font-weight: 600;
}

.regional-teams p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

/* Contact Info Styling - Semantic markup */
.contact-info {
    margin-top: var(--space-xl);
}

.contact-info p {
    margin: var(--space-sm) 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    line-height: 1.4;
}

.contact-info strong {
    color: #f5b400;
    font-weight: 600;
}

/* ==========================================================================
   ENHANCED STEP-BY-STEP QUOTE FORM - Mobile & SEO Optimized
   ========================================================================== */

.quote-panel {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-2xl) var(--space-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.quote-header {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Form Steps - Accessible and semantic */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in;
    width: 100%;
}

.form-step.active {
    display: block;
}

/* Step Content - Flexible layout */
.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

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

/* Step Indicator - Progress tracking */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 2rem;
    position: relative;
    flex-wrap: wrap;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 2px;
    background: #e2e8f0;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    position: relative;
    z-index: 2;
    border: 2px solid #e2e8f0;
    transition: all var(--transition-normal);
}

.step.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: scale(1.1);
}

.step.completed {
    background: #10b981;
    color: var(--white);
    border-color: #10b981;
}

.step-title {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0 1rem;
    line-height: 1.4;
}

/* Form Inputs - Accessible and mobile-friendly */
.inputs-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

.inputs-row input,
.inputs-row select {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: all var(--transition-normal);
    font-family: inherit;
    background-color: var(--white);
    appearance: menulist;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    z-index: 10;
    position: relative;
    min-width: 0;
    min-height: 48px; /* Better touch targets */
}

.inputs-row input:focus,
.inputs-row select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.1);
}

/* Ensure dropdown options are visible and accessible */
.inputs-row select option {
    background: var(--white);
    color: var(--text-dark);
    padding: var(--space-sm);
    font-size: 1rem;
}

.inputs-row select optgroup {
    background: #f8fafc;
    color: var(--primary-blue);
    font-weight: 600;
    padding: var(--space-xs);
}

textarea {
    padding: var(--space-md);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 16px;
    min-height: 120px;
    resize: vertical;
    transition: all var(--transition-normal);
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px; /* Better touch targets */
}

textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.1);
}

/* Form Navigation - Accessible button grouping */
.form-navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    flex-wrap: wrap;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    flex-wrap: wrap;
}

/* Form Messages - Semantic feedback */
.form-notice {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-blue);
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    text-align: center;
    display: none;
    width: 100%;
    box-sizing: border-box;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Button Colors - Consistent with design system */
.btn-blue {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    font-size: 14px;
    min-width: 120px;
    min-height: 44px; /* Better touch targets */
    font-family: inherit;
}

.btn-blue:hover,
.btn-blue:focus {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3);
}

.btn-green {
    background: #25D366;
    color: var(--white);
    border: none;
    cursor: pointer;
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    font-size: 14px;
    min-width: 120px;
    min-height: 44px; /* Better touch targets */
    font-family: inherit;
}

.btn-green:hover,
.btn-green:focus {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   FOOTER - Semantic & SEO Optimized
   ========================================================================== */

.site-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-4xl) var(--space-xl) var(--space-xl);
    font-family: 'Tajawal', sans-serif;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f5b400, #25D366, #f5b400);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: var(--space-3xl);
    width: 100%;
    align-items: start;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.footer-left h4 {
    font-size: clamp(18px, 3vw, 20px);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--white);
    line-height: 1.3;
}

.footer-left p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.footer-social span {
    margin-right: var(--space-sm);
    font-weight: 600;
    font-size: 14px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.footer-social a:hover,
.footer-social a:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-social a img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.footer-center h5,
.footer-right h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links li {
    margin: 0;
}

.footer-links li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-links li a:hover,
.footer-links li a:focus {
    opacity: 1;
    text-decoration: underline;
    transform: translateX(-4px);
}

.footer-right p {
    margin: var(--space-xs) 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: var(--space-md);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    grid-column: 1 / -1;
}

/* Footer Buttons - CTA optimization */
.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.btn.small {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    font-size: 14px;
    min-height: 40px;
}

.btn-whatsapp-group {
    background: #25D366;
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
    margin-top: var(--space-lg);
    border: 2px solid #25D366;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    font-size: 14px;
}

.btn-whatsapp-group:hover,
.btn-whatsapp-group:focus {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   RESPONSIVE DESIGN - Mobile First Enhancements
   ========================================================================== */

@media (max-width: 768px) {
    .map-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .svg-map {
        height: 300px;
        order: -1; /* Map first on mobile */
    }
    
    .country-marker {
        width: 40px;
        height: 40px;
    }
    
    .pulse-dot {
        width: 12px;
        height: 12px;
    }
    
    .quote-panel {
        padding: var(--space-xl) var(--space-lg);
        margin: 1rem auto;
    }
    
    .inputs-row {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .form-navigation,
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-navigation .btn,
    .form-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links li a {
        justify-content: center;
    }
    
    .footer-right p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .map-dark {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .office-card.featured {
        padding: var(--space-lg);
        margin: var(--space-lg) 0;
    }
    
    .step-indicator::before {
        width: 70%;
    }
    
    .step {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .footer-buttons {
        gap: var(--space-md);
    }
    
    .btn-whatsapp-group {
        padding: var(--space-md) var(--space-lg);
        font-size: 13px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .map-dark {
        background: #000080;
        border: 2px solid #fff;
    }
    
    .country-marker {
        border: 2px solid #fff;
    }
    
    .quote-panel {
        border: 2px solid #0033a0;
    }
}

/* Reduced motion for animations */
@media (prefers-reduced-motion: reduce) {
    .country-marker,
    .map-image,
    .office-card.featured,
    .step,
    .btn,
    .btn-whatsapp-group {
        transition: none;
        animation: none;
    }
    
    .pulse-dot {
        animation: none;
    }
}

/* Print styles for contact information */
@media print {
    .map-dark {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #000;
    }
    
    .country-marker,
    .pulse-dot,
    .marker-tooltip {
        display: none !important;
    }
    
    .quote-panel {
        box-shadow: none !important;
        border: 1px solid #000;
    }
    
    .site-footer {
        background: #f0f0f0 !important;
        color: #000 !important;
        border-top: 2px solid #000;
    }
    
    .footer-social a {
        display: none !important;
    }
}
/* ==========================================================================
   RESPONSIVE DESIGN - Mobile-First & Performance Optimized
   ========================================================================== */

/* =========================
   TABLET STYLES (1024px and below)
   ========================= */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .hero-title {
        font-size: clamp(28px, 4vw, 32px);
    }
    
    .logo-text {
        font-size: clamp(14px, 2vw, 18px);
    }
    
    /* Optimize grid layouts for tablet */
    .cards-row,
    .services-grid,
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
        gap: var(--space-lg);
    }
    
    /* Tablet map adjustments */
    .svg-map {
        height: 350px;
    }
    
    /* Tablet form optimizations */
    .quote-panel {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .inputs-row {
        gap: var(--space-md);
    }
}

/* =========================
   MOBILE STYLES (768px and below) - Mobile-First Optimized
   ========================= */
@media (max-width: 768px) {
    /* Header Mobile Styles - Enhanced for performance & accessibility */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .header-inner {
        padding: var(--space-sm) var(--space-md);
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: var(--space-md);
        min-height: 60px; /* Consistent header height */
    }
    
    .logo-container {
        flex: 1;
        min-width: 0;
        justify-content: flex-start;
        gap: var(--space-sm);
    }
    
    .logo {
        height: 50px;
        width: auto;
        aspect-ratio: 1;
    }
    
    .logo-texts {
        gap: var(--space-xs);
        min-width: 0;
    }
    
    .logo-text {
        font-size: clamp(12px, 3vw, 14px);
        line-height: 1.2;
        word-break: break-word;
    }
    
    /* Enhanced Mobile Navigation - Semantic and accessible */
    .nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border-light);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: var(--space-lg);
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .nav li {
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        display: block;
        padding: var(--space-md) var(--space-sm);
        font-size: 16px;
        min-height: 44px; /* Touch target */
        display: flex;
        align-items: center;
        transition: all var(--transition-fast);
    }
    
    .nav a:hover,
    .nav a:focus {
        background: var(--primary-blue);
        color: var(--white);
        transform: translateX(-8px);
    }
    
    /* Mobile Menu Toggle - Accessible button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0 var(--space-md);
        flex-shrink: 0;
        order: 2;
    }
    
    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: var(--primary-blue);
        border-radius: 3px;
        transition: all var(--transition-normal);
        transform-origin: center;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .menu-toggle:focus {
        outline: 2px solid var(--primary-blue);
        outline-offset: 2px;
    }
    
    /* Language Toggle Button - Mobile optimized */
    .header-cta {
        order: 1;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .header-cta .btn-header {
        padding: var(--space-sm) var(--space-md);
        font-size: 12px;
        white-space: nowrap;
        min-width: 80px;
        min-height: 36px; /* Touch target */
    }
    
    /* Hero Mobile Styles - Performance optimized */
    .hero {
        height: clamp(350px, 60vh, 400px);
        padding: var(--space-xl) var(--space-md);
    }
    
    .hero-overlay {
        padding: var(--space-3xl) var(--space-md);
    }
    
    .hero-title {
        font-size: clamp(20px, 5vw, 24px);
        margin-bottom: var(--space-lg);
    }
    
    .hero-sub {
        font-size: clamp(13px, 3vw, 14px);
        margin-bottom: var(--space-2xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: var(--space-sm);
    }
    
    .btn {
        width: 100%;
        margin: 0;
        min-height: 48px; /* Touch target */
    }
    
    /* Section Mobile Styles */
    .section {
        padding: var(--space-3xl) 0;
    }
    
    .section-title {
        font-size: clamp(18px, 4vw, 20px);
        margin-bottom: var(--space-2xl);
    }
    
    /* Cards Mobile Styles - Performance optimized */
    .cards-row {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .card-body {
        padding: var(--space-lg);
    }
    
    .card-body h3 {
        font-size: 16px;
        margin-bottom: var(--space-md);
    }
    
    /* Services Mobile Styles */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .service-card {
        padding: var(--space-xl) var(--space-lg);
        min-height: auto;
        gap: var(--space-md);
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-text {
        font-size: 16px;
    }
    
    /* Video Gallery Mobile Styles - Performance optimized */
    .video-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .video-thumb img {
        height: 160px;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
    }
    
    .video-title {
        padding: var(--space-lg);
        font-size: 14px;
        min-height: 50px;
    }
    
    /* Map Mobile Styles - Stack vertically */
    .map-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .map-dark {
        padding: var(--space-xl) var(--space-lg);
        margin-top: var(--space-lg);
    }
    
    .svg-map {
        height: 300px;
        order: -1; /* Map first on mobile for better content flow */
    }
    
    /* Map Markers - Mobile optimized */
    .country-marker {
        width: 40px;
        height: 40px;
    }
    
    .pulse-dot {
        width: 12px;
        height: 12px;
    }
    
    /* Consistent marker positioning on mobile */
    [data-country="yemen"] {
        top: 48%;
        right: 50%;
    }
    
    [data-country="djibouti"] {
        top: 55%;
        right: 54%;
    }
    
    [data-country="somalia"] {
        top: 62%;
        right: 40%;
    }
    
    [data-country="ethiopia"] {
        top: 75%;
        right: 60%;
    }
    
    [data-country="oman"] {
        top: 29%;
        right: 15%;
    }
    
    [data-country="saudi"] {
        top: 13%;
        right: 65%;
    }
    
    /* Form Mobile Styles - Accessible forms */
    .quote-panel {
        padding: var(--space-xl) var(--space-lg);
        margin: 1rem auto;
    }
    
    .inputs-row {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .form-navigation,
    .form-actions {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .btn-blue,
    .btn-green {
        width: 100%;
        min-width: auto;
        min-height: 48px; /* Touch target */
    }
    
    .step-indicator::before {
        width: 70%;
    }
    
    .step {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    /* Footer Mobile Styles - Semantic structure */
    .site-footer {
        padding: var(--space-3xl) var(--space-lg) var(--space-lg);
    }
    
    .footer-inner {
        flex-direction: column;
        gap: var(--space-2xl);
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-right p {
        justify-content: center;
    }
    
    /* WhatsApp Floating Button Mobile - Enhanced UX */
    .wa-floating {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }
    
    .wa-floating::before {
        width: 25px;
        height: 25px;
    }
}

/* =========================
   SMALL MOBILE STYLES (480px and below) - Enhanced for very small screens
   ========================= */
@media (max-width: 480px) {
    /* Enhanced mobile header for very small screens */
    .header-inner {
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-sm);
        min-height: 55px;
    }
    
    .logo {
        height: 45px;
    }
    
    .logo-text {
        font-size: clamp(11px, 2.5vw, 12px);
    }
    
    .menu-toggle {
        margin: 0 var(--space-sm);
        width: 28px;
        height: 20px;
    }
    
    .header-cta .btn-header {
        padding: var(--space-xs) var(--space-sm);
        font-size: 11px;
        min-width: 70px;
        min-height: 34px;
    }
    
    /* Hero optimizations for small screens */
    .hero {
        height: clamp(300px, 50vh, 350px);
    }
    
    .hero-title {
        font-size: clamp(18px, 4vw, 20px);
    }
    
    .hero-sub {
        font-size: clamp(12px, 2.5vw, 13px);
    }
    
    .section-title {
        font-size: clamp(16px, 3.5vw, 18px);
    }
    
    /* Card optimizations */
    .card-media img {
        height: 160px;
    }
    
    /* Map optimizations for small screens */
    .svg-map {
        height: 250px;
    }
    
    /* Video Gallery Small Mobile - Performance focused */
    .videos {
        padding: var(--space-3xl) var(--space-lg);
        margin: var(--space-3xl) 0;
    }
    
    .videos .section-title {
        font-size: clamp(20px, 4vw, 24px);
    }
    
    .video-thumb img {
        height: 140px;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
    }
    
    /* Map markers for very small screens */
    .country-marker {
        width: 35px;
        height: 35px;
    }
    
    .pulse-dot {
        width: 10px;
        height: 10px;
    }
    
    .marker-tooltip {
        font-size: 10px;
        padding: var(--space-xs) var(--space-sm);
    }
    
    /* Form optimizations for small screens */
    .quote-header {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
    }
    
    .step-title {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
    }
    
    /* Enhanced touch targets for very small screens */
    .btn,
    .btn-blue,
    .btn-green,
    .btn-header {
        min-height: 44px;
        padding: var(--space-md) var(--space-lg);
    }
    
    /* Optimize spacing for very small screens */
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
}

/* =========================
   LARGE DESKTOP STYLES (1200px and above) - Performance optimized
   ========================= */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Performance optimizations for large screens */
    .hero {
        background-attachment: fixed; /* Parallax effect for large screens only */
    }
    
    /* Enhanced grid layouts for large screens */
    .cards-row,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    /* Large screen typography enhancements */
    .hero-title {
        font-size: clamp(32px, 4vw, 42px);
    }
    
    .section-title {
        font-size: clamp(24px, 3vw, 32px);
    }
}

/* =========================
   HIGH DPI/ RETINA DISPLAY OPTIMIZATIONS
   ========================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* High-resolution background images */
    .hero {
        background-image: url('../assets/hero@2x.webp');
    }
    
    /* Ensure crisp icons and UI elements */
    .service-icon,
    .footer-social img,
    .wa-floating::before {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* =========================
   REDUCED MOTION PREFERENCES - Accessibility
   ========================= */
@media (prefers-reduced-motion: reduce) {
    .hero,
    .card,
    .service-card,
    .video-thumb,
    .country-marker,
    .step,
    .btn,
    .btn-header,
    .wa-floating {
        transition: none !important;
        animation: none !important;
    }
    
    .pulse-dot {
        animation: none !important;
    }
    
    .nav.active {
        animation: none !important;
    }
}

/* =========================
   HIGH CONTRAST MODE - Accessibility
   ========================= */
@media (prefers-contrast: high) {
    .site-header {
        background: #000;
        border-bottom: 2px solid #fff;
    }
    
    .nav a {
        border: 1px solid transparent;
    }
    
    .nav a:focus {
        border-color: #fff;
        outline: 2px solid #fff;
    }
    
    .card,
    .service-card,
    .quote-panel {
        border: 2px solid #000;
    }
    
    .btn,
    .btn-header {
        border: 2px solid #000;
    }
}

/* =========================
   PRINT STYLES - SEO & Usability Optimized
   ========================= */
@media print {
    /* Hide non-essential elements for printing */
    .site-header,
    .wa-floating,
    .hero-buttons,
    .video-modal,
    .map-dark .svg-map,
    .country-marker,
    .footer-social,
    .form-navigation {
        display: none !important;
    }
    
    /* Optimize hero for print */
    .hero {
        height: auto;
        background: none !important;
        page-break-after: avoid;
    }
    
    .hero-overlay {
        position: static;
        background: none;
        color: #000;
        padding: 0;
    }
    
    .hero-title {
        color: #000;
        font-size: 24pt;
        margin-bottom: 10pt;
    }
    
    .hero-sub {
        color: #000;
        font-size: 12pt;
    }
    
    /* Optimize content for print */
    .section {
        padding: 20pt 0;
        page-break-inside: avoid;
    }
    
    .section-title {
        color: #000;
        font-size: 18pt;
        border-bottom: 2pt solid #000;
    }
    
    .section-title::after {
        display: none;
    }
    
    /* Optimize cards and grids for print */
    .cards-row,
    .services-grid,
    .video-grid {
        display: block;
    }
    
    .card,
    .service-card,
    .video-thumb {
        break-inside: avoid;
        margin-bottom: 15pt;
        border: 1pt solid #000;
        box-shadow: none;
    }
    
    /* Optimize footer for print */
    .site-footer {
        background: #fff !important;
        color: #000 !important;
        border-top: 2pt solid #000;
        margin-top: 20pt;
    }
    
    .footer-bottom {
        border-top: 1pt solid #000;
    }
    
    /* Ensure good contrast for all text */
    * {
        color: #000 !important;
        background: #fff !important;
    }
    
    /* Optimize links for print */
    a::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666 !important;
    }
    
    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* =========================
   DARK MODE SUPPORT - Future Enhancement Ready
   ========================= */
@media (prefers-color-scheme: dark) {
    /* Base dark mode styles - can be enhanced further */
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .card,
    .service-card,
    .quote-panel {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .site-header {
        background: #2d2d2d;
        border-bottom-color: #404040;
    }
}

/* =========================
   ORIENTATION-SPECIFIC STYLES - Mobile UX
   ========================= */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: clamp(250px, 70vh, 300px);
    }
    
    .header-inner {
        min-height: 50px;
    }
    
    .nav {
        top: 50px;
        max-height: calc(100vh - 50px);
    }
    
    /* Optimize form for landscape */
    .inputs-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .inputs-row > * {
        flex: 1 1 calc(50% - var(--space-sm));
        min-width: 120px;
    }
}

/* =========================
   TOUCH DEVICE OPTIMIZATIONS
   ========================= */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects for touch devices */
    .card:hover,
    .service-card:hover,
    .video-thumb:hover,
    .country-marker:hover {
        transform: none;
    }
    
    /* Enhance touch targets */
    .nav a,
    .card-link,
    .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Larger touch targets for interactive elements */
    .play-btn,
    .country-marker,
    .step {
        min-width: 44px;
        min-height: 44px;
    }
}