/* Base Styles & Resets */
:root {
    --bg-light: #F8F9FA;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-light: #4b5563;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --border-radius: 16px;
    
    /* Enhanced colors for better contrast */
    --primary-dark: #0b2447;
    --primary-base: #1a3a5f;
    --secondary-dark: #d4af37;
    --secondary-bright: #e5c158;
    --text-on-dark: #f3f4f6;
}

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

/* Global overflow prevention */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Large screens: wider container */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.bg-secondary {
    background-color: var(--secondary);
}

.text-white {
    color: var(--white);
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 10px;
}

.title-line {
    height: 4px;
    width: 60px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    font-weight: 700;
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    max-height: 60px; /* Increased to accommodate the logo better */
}

.logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

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

.nav-menu a {
    font-weight: 600;
    color: var(--primary);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

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

.nav-menu .btn-contact {
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
}

.nav-menu .btn-contact::after {
    display: none;
}

.nav-menu .btn-contact:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.lang-switch-desktop {
    display: block !important;
}

.lang-switch-mobile {
    display: none !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    width: 100%;
    max-width: 100vw;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11,36,71,0.85) 0%, rgba(11,36,71,0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero h1 {
    font-size: clamp(1.4rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: keep-all;
    max-width: 100%;
    line-height: 1.4;
}

.hero .subtitle {
    font-size: clamp(0.85rem, 2.5vw, 1.2rem);
    margin-bottom: 40px;
    color: #e0e0e0;
    line-height: 1.8;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 0 10px;
}

.hero-buttons .btn {
    min-width: 0;
    white-space: nowrap;
}

.hero .small-text {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
    overflow-wrap: break-word;
}

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

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

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), #1a365d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.1);
}

.about-experience {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Vision & Mission */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-top: 30px;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

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

.service-row.row-reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    min-width: 40%;
    height: 350px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-content {
    flex: 1;
    padding: 40px;
}

.service-content .service-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-content h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 800;
}

.service-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* Modern Grid for remaining services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-card-modern {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-modern:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.service-card-modern .service-image {
    height: 200px;
    width: 100%;
    min-width: 100%;
    flex: none;
}

.service-card-modern .service-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-modern .service-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card-modern h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.service-card-modern p {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .service-row, .service-row.row-reverse {
        flex-direction: column;
    }
    .service-image {
        width: 100%;
        height: 220px;
    }
    .service-content {
        padding: 25px 20px;
    }
    .service-content h3 {
        font-size: 1.5rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card-modern .service-image {
        height: 180px;
    }
    .service-card-modern .service-content {
        padding: 20px;
    }
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vm-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    z-index: -1;
    transition: var(--transition);
}

.vm-card:hover::before {
    height: 100%;
}

.vm-card:hover h3, .vm-card:hover p, .vm-card:hover .vm-icon {
    color: var(--white);
}

.vm-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.vm-card h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--primary);
    margin-bottom: 15px;
    transition: var(--transition);
}

.vm-card p {
    color: var(--text-muted);
    transition: var(--transition);
}

/* Sector Card Icon (used in sectors slider) */
.sector-card .service-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

/* Features - Dark Background Redesign */
.features {
    background: linear-gradient(135deg, var(--primary) 0%, #1a365d 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0; /* Double the normal section padding */
}

.features::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 8s infinite ease-in-out;
}

.features::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 10s infinite ease-in-out reverse;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.features .container {
    position: relative;
    z-index: 1;
}

.features .section-title h2 {
    color: var(--white);
}

.features .title-line {
    background-color: var(--secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 40px;
    margin-top: 60px;
}

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

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 35px 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    border: 1px solid rgba(212,175,55,0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(212,175,55,0.15);
    border-color: var(--secondary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    background: linear-gradient(135deg, var(--secondary) 0%, #c9a961 100%);
    color: var(--primary);
    width: 75px;
    height: 75px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(212,175,55,0.3);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(212,175,55,0.5);
}

.feature-icon img {
    max-width: 35px;
    max-height: 35px;
    object-fit: contain;
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 700;
}

.feature-text p {
    color: #e5e7eb;
    font-size: 1rem;
    line-height: 1.7;
}

/* Sectors Slider */
.sectors-slider {
    overflow-x: auto;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.sectors-slider::-webkit-scrollbar {
    display: none;
}

.sectors-track {
    display: flex;
    gap: 20px;
}

.sector-card {
    min-width: 200px;
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    transition: var(--transition);
    cursor: pointer;
}

.sector-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.sector-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.sector-card h4 {
    font-size: 1.1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 5px;
}

.info-item h4 {
    color: var(--secondary);
    margin-bottom: 5px;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(11,36,71,0.1);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 400px;
}

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

#formMessage {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

/* Footer */
.footer {
    background: #06152b;
    color: #e0e0e0;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand img {
    max-height: 80px;
    margin-bottom: 15px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-right: 5px;
}

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: var(--secondary, #D4AF37);
    color: var(--primary, #0B2447);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary, #0B2447);
    color: var(--secondary, #D4AF37);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

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

/* --- Tablet (max-width: 992px) --- */
@media (max-width: 992px) {
    .container {
        width: 92%;
    }

    .about-grid, .vm-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        background-attachment: scroll; /* Fix iOS performance */
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-content {
        padding: 0 20px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

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

    .features {
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .feature-item {
        padding: 25px 20px;
    }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 0;
    }

    /* Header Mobile */
    .mobile-menu-btn {
        display: block;
    }

    .lang-switch-desktop {
        display: none !important;
    }

    .lang-switch-mobile {
        display: flex !important;
    }

    .header-container {
        height: 65px;
        padding: 0 5px;
    }

    .logo img {
        max-height: 45px;
    }

    .logo span {
        font-size: 1.1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        display: flex !important;
        flex-direction: column;
        padding: 80px 0 30px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        text-align: right;
        padding: 0 25px;
    }

    .nav-menu ul li {
        border-bottom: 1px solid #f0f0f0;
    }

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

    .nav-menu a {
        display: block;
        padding: 15px 10px;
        font-size: 1.05rem;
    }

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

    .nav-menu .btn-contact {
        margin: 15px 10px 0;
        text-align: center;
        border-radius: 10px;
    }

    /* Mobile menu overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 998;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 80px 0 30px;
    }

    .hero-content {
        padding: 0 15px;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 1.65rem;
        line-height: 1.5;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero .subtitle {
        font-size: 0.92rem;
        margin-bottom: 25px;
        line-height: 1.7;
        padding: 0 5px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        padding: 0 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    .hero .small-text {
        font-size: 0.8rem;
        margin-top: 15px;
        padding: 0 10px;
    }

    /* About Section Mobile */
    .about-text {
        order: 1;
    }

    .about-image {
        order: 2;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .about-experience {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 15px;
        display: inline-block;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Vision & Mission Mobile */
    .vm-grid {
        gap: 20px;
    }

    .vm-card {
        padding: 30px 20px;
    }

    .vm-card h3 {
        font-size: 1.3rem;
    }

    .vm-icon {
        font-size: 2.2rem;
    }

    /* Services Mobile */
    .services-list {
        gap: 30px;
    }

    .service-row,
    .service-row.row-reverse {
        flex-direction: column;
    }

    .service-image {
        width: 100%;
        height: 200px;
        min-width: 100%;
    }

    .service-content {
        padding: 25px 20px;
    }

    .service-content h3 {
        font-size: 1.3rem;
    }

    .service-content p {
        font-size: 0.95rem;
    }

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

    .service-card-modern .service-image {
        height: 180px;
    }

    .service-card-modern .service-content {
        padding: 20px;
    }

    /* Features Mobile */
    .features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .feature-item {
        padding: 25px 20px;
        gap: 18px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        border-radius: 14px;
        font-size: 1.8rem;
    }

    .feature-text h4 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .feature-text p {
        font-size: 0.9rem;
    }

    /* Sectors Mobile */
    .sectors-track {
        gap: 12px;
    }

    .sector-card {
        min-width: 160px;
        padding: 22px 15px;
    }

    .sector-card i {
        font-size: 2rem;
    }

    .sector-card h4 {
        font-size: 0.95rem;
    }

    /* Contact Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-info {
        padding: 30px 20px;
    }

    .info-item {
        gap: 15px;
        margin-bottom: 22px;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    .map-container {
        height: 280px;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-brand img {
        max-height: 60px;
    }

    .footer-brand h3 {
        font-size: 1.4rem;
    }

    .footer-links h4::after {
        right: auto;
        left: auto;
        margin: 10px auto 0;
        display: block;
        position: relative;
    }

    .footer-links ul {
        text-align: center;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* Section Headers Mobile */
    .section-title {
        margin-bottom: 35px;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .title-line {
        margin: 0 auto;
    }

    /* Buttons Mobile */
    .btn {
        padding: 11px 22px;
        font-size: 0.95rem;
    }

    .section-padding {
        padding: 45px 0;
    }

    /* Floating Buttons Mobile */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        bottom: 20px;
        left: 15px;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        bottom: 20px;
        right: 15px;
    }
}

/* --- Small Phones (max-width: 480px) --- */
@media (max-width: 480px) {
    .container {
        width: 92%;
    }

    .header-container {
        height: 60px;
    }

    .logo img {
        max-height: 40px;
    }

    .logo span {
        font-size: 1rem;
    }

    /* Hero - Extra small screens */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 1.45rem;
        line-height: 1.55;
        margin-bottom: 12px;
    }

    .hero .subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.75;
    }

    .hero-buttons {
        gap: 10px;
        padding: 0 5px;
    }

    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 25px;
    }

    .hero .small-text {
        font-size: 0.75rem;
    }

    /* About on small screens */
    .about-text p {
        font-size: 0.95rem;
    }

    .image-placeholder {
        height: 250px;
        font-size: 3rem;
    }

    /* VM Cards */
    .vm-card {
        padding: 25px 15px;
    }

    .vm-card h3 {
        font-size: 1.2rem;
    }

    .vm-icon {
        font-size: 2rem;
    }

    /* Services small */
    .service-image {
        height: 180px;
    }

    .service-content {
        padding: 20px 15px;
    }

    .service-content h3 {
        font-size: 1.2rem;
    }

    /* Features small */
    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
        padding: 25px 18px;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
    }

    .feature-text h4 {
        font-size: 1.1rem;
    }

    .feature-text p {
        font-size: 0.88rem;
    }

    /* Sectors small */
    .sector-card {
        min-width: 140px;
        padding: 20px 12px;
    }

    .sector-card i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .sector-card h4 {
        font-size: 0.9rem;
    }

    /* Contact small */
    .contact-info {
        padding: 25px 15px;
    }

    .info-item i {
        font-size: 1.2rem;
    }

    .contact-form-wrapper {
        padding: 20px 15px;
    }

    .map-container {
        height: 220px;
    }

    /* Section padding */
    .section-padding {
        padding: 35px 0;
    }

    .section-title h2 {
        font-size: 1.45rem;
    }

    .section-title {
        margin-bottom: 25px;
    }

    /* Footer small */
    .footer-brand h3 {
        font-size: 1.2rem;
    }

    .footer-brand img {
        max-height: 50px;
    }
}

/* --- Fix for very small devices (max-width: 360px) --- */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    .hero .subtitle {
        font-size: 0.82rem;
    }

    .hero-buttons .btn {
        padding: 11px 18px;
        font-size: 0.85rem;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }
}

/* --- LTR Override --- */
html[dir="ltr"] .about-experience {
    left: -20px;
    right: auto;
}

html[dir="ltr"] .nav-menu {
    right: auto;
}

@media (max-width: 768px) {
    html[dir="ltr"] .nav-menu {
        right: auto;
        left: -100%;
    }
    html[dir="ltr"] .nav-menu.active {
        left: 0;
    }
    html[dir="ltr"] .nav-menu ul {
        text-align: left;
    }
}
