* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #00509E;
    --secondary-color: #DC143C;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    transition: font-family 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--white);
    border-radius: 25px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 5px;
    padding: 5px;
}

body[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

.language-switcher button {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.language-switcher button.active {
    background: var(--primary-color);
    color: var(--white);
}

.language-switcher button:hover:not(.active) {
    background: var(--bg-light);
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.logo img {
    height: 50px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

nav a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #0066CC);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

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

.btn-primary:hover {
    background: #b8102b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

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

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

/* Quick Actions Mobile Bar */
.quick-actions-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 998;
    justify-content: space-around;
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--bg-light);
    border-radius: 12px;
    flex: 1;
    min-height: 60px;
    justify-content: center;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.quick-action-btn svg {
    width: 24px;
    height: 24px;
}

.quick-action-btn span {
    font-size: 0.75rem;
    font-weight: 600;
}

.call-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: var(--white);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
}

.message-btn {
    background: linear-gradient(135deg, var(--primary-color), #003d7a);
    color: var(--white);
}

.quick-action-btn:active {
    transform: scale(0.95);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature p {
    color: var(--text-light);
}

/* Coverage Section */
.coverage {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.coverage h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.coverage > p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.cities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.city {
    background: var(--white);
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    border: none;
    cursor: pointer;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

body[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

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

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:active {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        z-index: 998;
    }

    body[dir="rtl"] nav {
        left: auto;
        right: -100%;
        transition: right 0.3s ease;
    }

    nav.active {
        left: 0;
    }

    body[dir="rtl"] nav.active {
        right: 0;
    }

    nav a {
        padding: 15px 30px;
        border-bottom: 1px solid var(--bg-light);
    }

    /* Hero adjustments */
    .hero {
        padding: 60px 0 40px;
    }

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

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

    /* Show mobile quick actions */
    .quick-actions-mobile {
        display: flex;
    }

    /* Hide floating WhatsApp on mobile (we have bottom bar) */
    .whatsapp-float {
        display: none;
    }

    /* Add padding to sections for bottom bar */
    .contact {
        padding-bottom: 100px;
    }

    .services h2,
    .about h2,
    .coverage h2,
    .contact h2 {
        font-size: 1.75rem;
    }

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

    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 3px;
    }

    .language-switcher button {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    body[dir="rtl"] .language-switcher {
        right: auto;
        left: 10px;
    }

    /* Larger touch targets for mobile */
    .service-card {
        padding: 30px 20px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
        padding: 12px;
    }

    .city {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 12px 30px;
        font-size: 1rem;
    }

    .services h2,
    .about h2,
    .coverage h2,
    .contact h2 {
        font-size: 1.5rem;
    }

    .service-card h3,
    .feature h3 {
        font-size: 1.2rem;
    }

    .service-icon,
    .feature-icon {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .quick-action-btn {
        padding: 8px 10px;
        min-height: 55px;
    }

    .quick-action-btn span {
        font-size: 0.7rem;
    }
}

/* Desktop Only - Hide mobile elements */
@media (min-width: 769px) {
    .quick-actions-mobile {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }
}
