/* =====================================================
   شركة البراق المتميز - Landing Page Styles
   ===================================================== */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #e31837;
    --primary-dark: #b8132d;
    --primary-light: #ff2d4a;
    --secondary-color: #1a1a2e;
    --dark-color: #0f0f1a;
    --darker-color: #0a0a12;
    --light-color: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(180deg, var(--dark-color) 0%, var(--darker-color) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15, 15, 26, 0.95) 0%, rgba(26, 26, 46, 0.9) 100%);
    
    --font-family: 'Cairo', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(227, 24, 55, 0.3);
    
    --transition-base: 0.3s ease;
    --z-fixed: 300;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Utility Classes ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-color);
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(227, 24, 55, 0.1);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--light-color);
    border-color: var(--light-color);
}

.btn-outline:hover {
    background: var(--light-color);
    color: var(--secondary-color);
}

.btn-white {
    background: var(--light-color);
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--light-color);
    border-color: var(--light-color);
}

.btn-outline-white:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    transition: var(--transition-base);
    background: transparent;
}

.header.scrolled {
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--light-color);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    font-size: 16px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--gray-300);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.hamburger .bar {
    width: 22px;
    height: 2px;
    background: var(--light-color);
    border-radius: 50px;
    transition: var(--transition-base);
    margin: 3px 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary-color);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--gradient-dark);
    overflow: hidden;
    padding: 100px 0 40px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(227, 24, 55, 0.15);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(227, 24, 55, 0.3);
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--light-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 24px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-car-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(227, 24, 55, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.hero-car {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 16px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-lines {
    display: none;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    padding: 8px 16px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    color: var(--gray-400);
    font-size: 14px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* ===== About Section ===== */
.about {
    padding: 80px 0;
    background: var(--gray-100);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-2xl);
}

.about-img-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.about-img-wrapper:hover img {
    transform: scale(1.05);
}

.about-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.badge-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 12px;
}

.about-description {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    margin: 24px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--gray-700);
}

.about-features i {
    color: var(--primary-color);
    font-size: 18px;
}

/* ===== Services Section ===== */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--light-color);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(227, 24, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--light-color);
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.service-description {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.service-link:hover {
    gap: 12px;
}

/* ===== Why Us Section ===== */
.why-us {
    padding: 80px 0;
    background: var(--gray-100);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.why-us .section-subtitle {
    text-align: right;
    margin: 0;
}

.features-list {
    margin-top: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--light-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(227, 24, 55, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.feature-content p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

.why-us-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-2xl);
    width: 100%;
}

/* ===== Brands Section ===== */
.brands {
    padding: 60px 0;
    overflow: hidden;
}

.brands-slider {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-track {
    display: flex;
    animation: scroll-brands 30s linear infinite;
}

.brand-item {
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 24px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition-base);
}

.brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item img {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
}

@keyframes scroll-brands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== CTA Section ===== */
.cta {
    padding: 60px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    text-align: center;
    color: var(--light-color);
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== Contact Section ===== */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 12px;
    transition: var(--transition-base);
}

.info-card:hover {
    background: var(--light-color);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 18px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.info-content p {
    color: var(--gray-600);
    font-size: 14px;
}

.social-links {
    margin-top: 16px;
}

.social-links h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 42px;
    height: 42px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 18px;
    transition: var(--transition-base);
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: var(--light-color);
    transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary-color);
    color: var(--gray-300);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 280px;
    line-height: 1.8;
    font-size: 14px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--light-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact ul li i {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 4px;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: var(--light-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: var(--z-fixed);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    animation: bounce 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Large screens - 1024px */
@media screen and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text { order: 1; }
    .hero-image { order: 2; }
    
    .hero-description {
        margin: 0 auto 24px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-car-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets - 768px */
@media screen and (max-width: 768px) {
    /* Typography */
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 60px 30px;
        transition: all 0.4s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        font-size: 20px;
        font-weight: 700;
        padding: 16px 0;
        color: var(--gray-300);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color);
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .hero-stats {
        gap: 16px;
        padding: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-item {
        flex: 1 1 45%;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* About & Why Us */
    .about-content,
    .why-us-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-image { 
        order: 1; 
        width: 100%;
        max-width: 100%;
    }
    .about-text { order: 2; }
    .why-us-image { 
        order: 1;
        width: 100%;
        max-width: 100%;
    }
    .why-us-text { order: 2; }
    
    .about-img-wrapper img,
    .why-us-image img {
        height: 300px;
        width: 100%;
        object-fit: cover;
    }
    
    .why-us .section-subtitle {
        text-align: center;
    }
    
    .about-badge {
        bottom: -10px;
        right: 10px;
        padding: 12px 16px;
    }
    
    .badge-number {
        font-size: 24px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-map {
        min-height: 300px;
        order: 2;
    }
    
    .contact-info {
        order: 1;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .footer-brand p {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-contact ul li {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* Sections Padding */
    .about,
    .services,
    .why-us,
    .contact {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
}

/* Mobile phones - 480px */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero */
    .hero {
        padding: 90px 0 30px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-car-wrapper {
        max-width: 300px;
    }
    
    .hero-stats {
        padding: 16px;
    }
    
    .stat-item {
        flex: 1 1 40%;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Sections */
    .about,
    .services,
    .why-us,
    .contact {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    /* About Section - إصلاح مشكلة الصورة */
    .about-img-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .about-img-wrapper img {
        height: 250px;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
    
    .about-badge {
        bottom: -8px;
        right: -8px;
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .badge-number {
        font-size: 14px;
    }
    
    .badge-text {
        font-size: 9px;
    }
    
    /* Why Us Image */
    .why-us-image img {
        height: 250px;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
    
    /* Services */
    .service-card {
        padding: 24px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    /* Features */
    .feature-item {
        padding: 12px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .feature-content h4 {
        font-size: 14px;
    }
    
    .feature-content p {
        font-size: 13px;
    }
    
    /* CTA */
    .cta {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 22px;
    }
    
    .cta-content p {
        font-size: 14px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Contact */
    .info-card {
        padding: 12px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .contact-map {
        min-height: 250px;
    }
    
    /* Brands */
    .brands {
        padding: 40px 0;
    }
    
    .brand-item {
        width: 80px;
        height: 40px;
        margin: 0 12px;
    }
    
    .brand-item img {
        max-width: 70px;
        max-height: 35px;
    }
    
    /* Footer */
    .footer {
        padding-top: 40px;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 16px;
    }
    
    /* Floating buttons */
    .back-to-top,
    .whatsapp-float {
        left: 15px;
    }
    
    .back-to-top {
        bottom: 80px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .whatsapp-float {
        bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Very small screens - 360px */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    /* About Section - تحسينات إضافية للشاشات الصغيرة جداً */
    .about-img-wrapper img {
        height: 200px;
        border-radius: 8px;
    }
    
    .about-badge {
        bottom: -5px;
        right: -5px;
        padding: 8px 10px;
        font-size: 10px;
        border-radius: 8px;
    }
    
    .badge-number {
        font-size: 12px;
    }
    
    .badge-text {
        font-size: 8px;
    }
    
    /* Why Us Image */
    .why-us-image img {
        height: 200px;
        border-radius: 8px;
    }
    
    /* Services */
    .service-card {
        padding: 16px 12px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .service-title {
        font-size: 14px;
    }
    
    .service-description {
        font-size: 12px;
    }
}

/* ===== Additional Mobile Optimizations ===== */

/* Ensure images never overflow on any device */
@media screen and (max-width: 768px) {
    .about-image,
    .why-us-image {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }
    
    .about-img-wrapper,
    .why-us-image {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
        display: block;
    }
    
    .about-img-wrapper img,
    .why-us-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        min-height: 250px;
        object-fit: cover;
        display: block;
    }
}

/* Extra safety for very small screens */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    .about-img-wrapper img,
    .why-us-image img {
        height: 180px;
        min-height: 180px;
    }
    
    .about-badge {
        bottom: -3px;
        right: -3px;
        padding: 6px 8px;
        font-size: 9px;
    }
    
    .badge-number {
        font-size: 10px;
    }
    
    .badge-text {
        font-size: 7px;
    }
}

/* ===== Image Loading Optimization ===== */
.about-img-wrapper img,
.why-us-image img,
.hero-car {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimizeQuality;
}

/* ===== Prevent horizontal scroll ===== */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}
