/* Digital Alef Custom Styles for MVC - FIXED VERSION */

:root {
    /* Digital Alef Brand Colors */
    --primary-blue: #1E88E5;
    --primary-green: #4CAF50;
    --accent-cyan: #00BCD4;
    --light-gray: #f8f9fa;
    --dark-gray: #2c3e50;
    --text-dark: #333333;
    --text-light: #666666;
    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-bold: 700;
    --font-black: 900;
    /* Font Families */
    --font-english: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-arabic: 'Cairo', 'Noto Sans Arabic', 'Arial Unicode MS', sans-serif;
}

/* Base Styles - Default to English Font */
* {
    font-family: var(--font-english);
}

/* Base Styles */
body {
    font-family: var(--font-english);
    font-weight: var(--font-regular);
    line-height: 1.6;
    color: var(--text-dark);
    direction: ltr;
}

/* RTL Support - FIXED: More specific selectors and Font Awesome protection */
.rtl {
    direction: rtl;
    text-align: right;
}

/* SOLUTION 1: Language-specific content classes for mixed content */
.text-arabic {
    font-family: var(--font-arabic) !important;
}

.text-english {
    font-family: var(--font-english) !important;
}

/* SOLUTION 2: Protect Font Awesome and other icon fonts from being overridden */
.fa, .fas, .far, .fal, .fab, .fad, .fak,
[class^="fa-"], [class*=" fa-"],
.fontawesome-i2svg-active .fa,
.fontawesome-i2svg-pending .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
}

/* Bootstrap Icons protection */
.bi::before,
[class^="bi-"], [class*=" bi-"] {
    font-family: "bootstrap-icons" !important;
}

/* Material Icons protection */
.material-icons, .material-icons-outlined, .material-icons-round, .material-icons-sharp, .material-icons-two-tone {
    font-family: 'Material Icons', 'Material Icons Outlined', 'Material Icons Round', 'Material Icons Sharp', 'Material Icons Two Tone' !important;
}

/* RTL Default Font Override - FIXED: Exclude icon fonts */
.rtl *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fad):not(.fak):not([class^="fa-"]):not([class*=" fa-"]):not(.bi):not([class^="bi-"]):not([class*=" bi-"]):not(.material-icons):not(.material-icons-outlined):not(.material-icons-round):not(.material-icons-sharp):not(.material-icons-two-tone):not(.text-english) {
    font-family: var(--font-arabic);
}

/* Navigation RTL adjustments - FIXED: Enhanced RTL support */
.rtl .navbar {
    direction: rtl;
}

.rtl .navbar-nav {
    flex-direction: row;
    direction: rtl;
}

.rtl .navbar-brand {
    font-family: var(--font-arabic);
    margin-left: auto;
    margin-right: 0;
}

.rtl .navbar-collapse {
    direction: rtl;
}

.rtl .navbar-nav .nav-tab {
    margin-left: 4px;
    margin-right: 4px;
}

/* Specific RTL Elements - FIXED: More targeted selectors */
.rtl .navbar-brand:not(.text-english),
.rtl .brand-text:not(.text-english),
.rtl .nav-tab:not(.text-english),
.rtl .btn:not(.text-english):not(.btn-icon-only),
.rtl .hero-title:not(.text-english),
.rtl h1:not(.text-english), .rtl h2:not(.text-english), .rtl h3:not(.text-english),
.rtl h4:not(.text-english), .rtl h5:not(.text-english), .rtl h6:not(.text-english),
.rtl .display-1:not(.text-english), .rtl .display-2:not(.text-english), .rtl .display-3:not(.text-english),
.rtl .display-4:not(.text-english), .rtl .display-5:not(.text-english), .rtl .display-6:not(.text-english),
.rtl .form-label:not(.text-english),
.rtl .form-control:not(.text-english),
.rtl .lead:not(.text-english) {
    font-family: var(--font-arabic);
}

/* Navigation - English (Lato) */
.navbar-brand {
    font-family: var(--font-english);
    font-weight: var(--font-bold);
    color: var(--primary-blue) !important;
}

.brand-text {
    font-family: var(--font-english);
    font-size: 1.1rem;
    font-weight: var(--font-bold);
}

/* Typography Classes for Both Languages */
.font-light {
    font-weight: var(--font-light);
}

.font-regular {
    font-weight: var(--font-regular);
}

.font-bold {
    font-weight: var(--font-bold);
}

.font-black {
    font-weight: var(--font-black);
}

/* Headings - English (Lato) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-english);
    font-weight: var(--font-bold);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-english);
    font-weight: var(--font-black);
}

/* Headings - Arabic (Cairo) Override */
.rtl h1:not(.text-english), .rtl h2:not(.text-english), .rtl h3:not(.text-english),
.rtl h4:not(.text-english), .rtl h5:not(.text-english), .rtl h6:not(.text-english) {
    font-family: var(--font-arabic);
    font-weight: var(--font-bold);
}

.rtl .display-1:not(.text-english), .rtl .display-2:not(.text-english), .rtl .display-3:not(.text-english),
.rtl .display-4:not(.text-english), .rtl .display-5:not(.text-english), .rtl .display-6:not(.text-english) {
    font-family: var(--font-arabic);
    font-weight: var(--font-black);
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 50%, var(--primary-green) 100%);
}

.hero-bg {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

    .hero-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        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.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
        opacity: 0.3;
    }

/* Navigation Styles */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-tab {
    font-family: var(--font-english);
    font-weight: var(--font-bold);
    position: relative;
    padding: 12px 24px;
    margin: 0 4px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid transparent;
}

    .nav-tab.home {
        background: linear-gradient(135deg, #4CAF50, #66BB6A);
        color: white;
        border-color: #4CAF50;
    }

    .nav-tab.about {
        background: linear-gradient(135deg, #2196F3, #42A5F5);
        color: white;
        border-color: #2196F3;
    }

    .nav-tab.services {
        background: linear-gradient(135deg, #FF9800, #FFB74D);
        color: white;
        border-color: #FF9800;
    }

    .nav-tab.contact {
        background: linear-gradient(135deg, #9C27B0, #BA68C8);
        color: white;
        border-color: #9C27B0;
    }

    .nav-tab:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        text-decoration: none;
        color: white;
    }

.language-toggle {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-green));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .language-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
    }

/* Buttons - English (Lato) */
.btn, .btn-hero, .btn-hero-outline, .btn-language, .btn-submit, .btn-whatsapp {
    font-family: var(--font-english);
    font-weight: var(--font-bold);
}

    /* Buttons with icons should not change font for the icon part */
    .btn-icon-only, .btn .fa, .btn .fas, .btn .far, .btn .fab {
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
    }

/* Buttons - Arabic (Cairo) Override - FIXED: Exclude icon-only buttons */
.rtl .btn:not(.btn-icon-only):not(.text-english),
.rtl .btn-hero:not(.text-english),
.rtl .btn-hero-outline:not(.text-english),
.rtl .btn-language:not(.text-english),
.rtl .btn-submit:not(.text-english),
.rtl .btn-whatsapp:not(.text-english) {
    font-family: var(--font-arabic);
}

/* Forms - English (Lato) */
.form-label {
    font-family: var(--font-english);
    font-weight: var(--font-bold);
}

.form-control {
    font-family: var(--font-english);
    font-weight: var(--font-regular);
}

/* Forms - Arabic (Cairo) Override */
.rtl .form-label:not(.text-english) {
    font-family: var(--font-arabic);
}

.rtl .form-control:not(.text-english) {
    font-family: var(--font-arabic);
}

/* Hero Section - English (Lato) */
.hero-title {
    font-family: var(--font-english);
    font-weight: var(--font-black);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Section - Arabic (Cairo) Override */
.rtl .hero-title:not(.text-english) {
    font-family: var(--font-arabic);
    font-weight: var(--font-black);
}

/* Content - English (Lato) */
.lead {
    font-family: var(--font-english);
    font-weight: var(--font-light);
    font-size: 1.1rem;
}

/* Content - Arabic (Cairo) Override */
.rtl .lead:not(.text-english) {
    font-family: var(--font-arabic);
    font-weight: var(--font-light);
}

/* Cards - English (Lato) */
.highlight-card h5,
.service-card h4,
.benefit-card h5,
.mission-card h4,
.contact-info h4,
.whatsapp-card h5 {
    font-family: var(--font-english);
    font-weight: var(--font-bold);
}

/* Cards - Arabic (Cairo) Override */
.rtl .highlight-card h5:not(.text-english),
.rtl .service-card h4:not(.text-english),
.rtl .benefit-card h5:not(.text-english),
.rtl .mission-card h4:not(.text-english),
.rtl .contact-info h4:not(.text-english),
.rtl .whatsapp-card h5:not(.text-english) {
    font-family: var(--font-arabic);
}

/* Special Arabic Letter Styling */
.arabic-letter {
    font-family: var(--font-arabic) !important;
    font-size: 2.5rem;
    font-weight: var(--font-black);
}

/* Language Toggle - Always English Font */
.btn-language {
    font-family: var(--font-english) !important;
    font-weight: var(--font-bold);
}

/* RTL Layout Adjustments */
.rtl {
    direction: rtl;
    text-align: right;
}

    .rtl .navbar-nav {
        direction: rtl;
    }

    .rtl .me-2 {
        margin-right: 0 !important;
        margin-left: 0.5rem !important;
    }

    .rtl .me-3 {
        margin-right: 0 !important;
        margin-left: 1rem !important;
    }

    .rtl .language-toggle {
        margin-left: 0;
        margin-right: 1rem;
    }

    .rtl .contact-icon {
        margin-right: 0;
        margin-left: 1rem;
    }

    .rtl .service-features {
        text-align: right;
    }

    .rtl .contact-item {
        direction: rtl;
    }

/* Hero Section */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.btn-hero {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

/* Highlights Section */
.highlights {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: -50px;
    position: relative;
    z-index: 3;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

    .highlight-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

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

/* Benefits Section */
.services-section {
    padding: 7rem 0 3rem 0;
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 136, 229, 0.1);
    height: 100%;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(30, 136, 229, 0.2);
        border-color: rgba(30, 136, 229, 0.3);
    }

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

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
}

    .service-features li {
        padding: 0.5rem 0;
        position: relative;
        padding-left: 2rem;
        color: var(--text-dark);
    }

        .service-features li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--primary-green);
            font-weight: bold;
            font-size: 1.2rem;
        }

/* RTL Fix for Service Features Checkmarks */
.rtl .service-features li {
    padding-left: 0;
    padding-right: 2rem;
    text-align: right;
}

    .rtl .service-features li::before {
        left: auto;
        right: 0;
    }

/* About Section */
.about-section {
    padding: 7rem 0;
    background: var(--light-gray);
}

.company-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.mission-cards {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.mission-card {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

    .mission-card.digital {
        border-top: 4px solid var(--primary-blue);
    }

    .mission-card.alef {
        border-top: 4px solid var(--primary-green);
    }

.mission-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.mission-card.digital .mission-icon {
    background: linear-gradient(135deg, var(--primary-blue), #42A5F5);
}

.mission-card.alef .mission-icon {
    background: linear-gradient(135deg, var(--primary-green), #66BB6A);
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

    .benefit-card:hover {
        transform: translateY(-5px);
    }

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

/* Contact Section */
.contact-section {
    background: var(--light-gray);
    padding: 6rem 0;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
    }

.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(30, 136, 229, 0.3);
        background: linear-gradient(135deg, #1976D2, #00ACC1);
    }

.contact-info {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .contact-item:hover {
        background: rgba(30, 136, 229, 0.05);
    }

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.rtl .contact-icon {
    margin-right: 0;
    margin-left: 1rem;
}

.whatsapp-card {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.whatsapp-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.btn-whatsapp {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-whatsapp:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        color: white;
        text-decoration: none;
    }

/* Enhanced Contact Form Styles */
.contact-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.contact-hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white !important;
    padding: 80px 0;
}

    .contact-hero .highlight-item {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

        .contact-hero .highlight-item i {
            color: white !important;
            margin-right: 0.75rem;
            font-size: 1.2rem;
        }

.rtl .contact-hero .highlight-item i {
    margin-left: 0.75rem;
}

.contact-hero[dir="rtl"] .highlight-item i {
    margin-right: 0;
    margin-left: 0.75rem;
}

.contact-form-section {
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.contact-form-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.contact-info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
}

    .form-label.required::after {
        content: " *";
        color: #dc3545;
    }

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

    .form-control:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        background-color: white;
    }

    .form-control.is-valid {
        border-color: #28a745;
        background-color: white;
    }

    .form-control.is-invalid {
        border-color: #dc3545;
        background-color: #fff5f5;
    }

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Contact Method Options */
.contact-method-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.form-check-inline {
    margin-right: 0;
}

.form-check-label {
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-check-input:checked + .form-check-label {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.form-check-label:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Character Counter */
.character-count {
    text-align: right;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

[dir="rtl"] .character-count {
    text-align: left;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

    .btn-submit:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    }

    .btn-submit:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.btn-loading {
    display: none;
}

/* Contact Info Styles */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

    .contact-item:hover {
        background-color: #e9ecef;
        transform: translateY(-2px);
    }

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

[dir="rtl"] .contact-icon {
    margin-right: 0;
    margin-left: 1rem;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h6 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

    .contact-details a:hover {
        text-decoration: underline;
    }

/* WhatsApp Card */
.whatsapp-card {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 1.5rem;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

    .whatsapp-icon i {
        font-size: 1.8rem;
    }

.btn-whatsapp {
    background: white;
    color: #25d366;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

    .btn-whatsapp:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        color: #25d366;
    }

/* Social Media Card */
.social-media-card {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 16px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

    .social-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .social-link.linkedin {
        background: #0077b5;
    }

    .social-link.twitter {
        background: #1da1f2;
    }

    .social-link.facebook {
        background: #1877f2;
    }

    .social-link.instagram {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    }

    .social-link.youtube {
        background: #ff0000;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 0;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .contact-method-options {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-info-card {
        position: static;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* RTL Specific Styles */
[dir="rtl"] .contact-method-options {
    direction: rtl;
}

[dir="rtl"] .form-check-inline {
    margin-left: 0;
    margin-right: 1.5rem;
}

[dir="rtl"] .btn-submit i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d1edff;
    color: #0c5460;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

[dir="rtl"] .alert-success,
[dir="rtl"] .alert-danger {
    border-left: none;
    border-right: 4px solid;
}

[dir="rtl"] .alert-success {
    border-right-color: #28a745;
}

[dir="rtl"] .alert-danger {
    border-right-color: #dc3545;
}

/* Social Media */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .social-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        text-decoration: none;
        color: white;
    }

    .social-link.linkedin {
        background: linear-gradient(135deg, #0077B5, #005885);
    }

    .social-link.twitter {
        background: linear-gradient(135deg, #000000, #333333);
    }

    .social-link.facebook {
        background: linear-gradient(135deg, #1877F2, #166fe5);
    }

    .social-link.instagram {
        background: linear-gradient(135deg, #E4405F, #C13584);
    }

    .social-link.youtube {
        background: linear-gradient(135deg, #FF0000, #CC0000);
    }

/* Footer */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* CAPTCHA Styles */
.captcha-container {
    margin-top: 0.5rem;
}

.g-recaptcha {
    margin-bottom: 1rem;
    display: inline-block;
}

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

    .captcha-notice small {
        font-style: italic;
    }

/* RTL Support for CAPTCHA */
[dir="rtl"] .g-recaptcha {
    direction: ltr;
    text-align: center;
}

[dir="rtl"] .captcha-container {
    text-align: center;
}

/* Submit button disabled state */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6c757d;
}

    .btn-submit:disabled:hover {
        transform: none;
        box-shadow: none;
    }

/* Rate limit warning */
.rate-limit-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* CAPTCHA error styling */
.captcha-error {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 0.5rem;
}

/* Loading overlay for form submission */
.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 20px;
}

    .form-loading-overlay .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #007bff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile responsiveness for CAPTCHA */
@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }

    [dir="rtl"] .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center 0;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Slightly smaller font sizes on mobile for better readability */
    .hero-title {
        font-size: 2rem !important;
    }

    .rtl .hero-title {
        font-size: 2rem !important;
    }

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

    .nav-tab {
        padding: 8px 16px;
        margin: 2px;
        font-size: 0.9rem;
    }

    .mission-cards {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .service-card,
    .contact-form,
    .contact-info,
    .whatsapp-card {
        padding: 1.5rem;
    }

    .highlights {
        margin-top: -30px;
    }

    .highlight-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fad):not(.fak):not([class^="fa-"]):not([class*=" fa-"]) {
        font-family: var(--font-english) !important;
    }

    .rtl *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fad):not(.fak):not([class^="fa-"]):not([class*=" fa-"]) {
        font-family: var(--font-arabic) !important;
    }
}

/* Cookie Consent Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, #34495e 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

    .cookie-consent-banner.show {
        transform: translateY(0);
    }

    .cookie-consent-banner.hide {
        transform: translateY(100%);
    }

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

    .cookie-banner-text h4 {
        margin: 0 0 0.5rem 0;
        font-size: 1.2rem;
        font-weight: 600;
        color: white;
    }

    .cookie-banner-text p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.5;
        opacity: 0.9;
    }

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

    .cookie-banner-actions .btn {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .cookie-banner-actions .btn-outline-light {
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: white;
        background: transparent;
    }

        .cookie-banner-actions .btn-outline-light:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-1px);
        }

    .cookie-banner-actions .btn-secondary {
        background: #6c757d;
        border: 2px solid #6c757d;
        color: white;
    }

        .cookie-banner-actions .btn-secondary:hover {
            background: #5a6268;
            border-color: #5a6268;
            transform: translateY(-1px);
        }

    .cookie-banner-actions .btn-light {
        background: white;
        border: 2px solid white;
        color: var(--dark-gray);
    }

        .cookie-banner-actions .btn-light:hover {
            background: #f8f9fa;
            border-color: #f8f9fa;
            transform: translateY(-1px);
        }

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .cookie-settings-modal.show {
        opacity: 1;
        visibility: visible;
    }

    .cookie-settings-modal.hide {
        opacity: 0;
        visibility: hidden;
    }

.cookie-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    padding: 2rem 2rem 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

    .cookie-modal-header h3 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--dark-gray);
    }

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .cookie-modal-close:hover {
        background: #f8f9fa;
        color: var(--dark-gray);
    }

.cookie-modal-body {
    padding: 0 2rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.cookie-category-header {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f8f9fa;
}

    .cookie-category-header h5 {
        margin: 0 0 0.5rem 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--dark-gray);
    }

.cookie-description {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Cookie Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

    .cookie-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

    .cookie-slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--primary-blue);
}

    .cookie-switch input:checked + .cookie-slider:before {
        transform: translateX(22px);
    }

.cookie-switch input:disabled + .cookie-slider {
    background-color: var(--primary-green);
    cursor: not-allowed;
}

    .cookie-switch input:disabled + .cookie-slider:before {
        transform: translateX(22px);
    }

.cookie-modal-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: #f8f9fa;
}

    .cookie-modal-footer .btn {
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .cookie-modal-footer .btn-outline-secondary {
        border: 2px solid #6c757d;
        color: #6c757d;
        background: transparent;
    }

        .cookie-modal-footer .btn-outline-secondary:hover {
            background: #6c757d;
            color: white;
            transform: translateY(-1px);
        }

    .cookie-modal-footer .btn-primary {
        background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
        border: 2px solid var(--primary-blue);
        color: white;
    }

        .cookie-modal-footer .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
        }

/* Cookie Settings Link */
#cookieSettingsLink {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

    #cookieSettingsLink:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-2px);
    }

/* RTL Support for Cookie Consent */
.rtl .cookie-banner-content {
    direction: rtl;
}

.rtl .cookie-banner-actions {
    order: -1;
}

.rtl .cookie-modal-content {
    direction: rtl;
}

.rtl .cookie-category-header {
    direction: rtl;
}

.rtl .cookie-modal-footer {
    justify-content: flex-start;
}

.rtl #cookieSettingsLink {
    right: auto;
    left: 20px;
}

/* Responsive Cookie Consent */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-banner-text {
        min-width: auto;
    }

    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }

        .cookie-banner-actions .btn {
            flex: 1;
            min-width: 120px;
        }

    .cookie-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cookie-category-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cookie-switch {
        align-self: flex-start;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

        .cookie-modal-footer .btn {
            width: 100%;
        }

    #cookieSettingsLink {
        bottom: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .rtl #cookieSettingsLink {
        right: auto;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
    }

        .cookie-banner-actions .btn {
            width: 100%;
        }

    .cookie-modal-header h3 {
        font-size: 1.2rem;
    }
}
