﻿/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --primary: #0A1B4D;
    --accent: #FF9E1B;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
    /* Spacing Variables */
    --section-padding: 80px;
    --section-padding-large: 100px;
    --container-padding: 20px;
    --container-padding-mobile: 15px;
    /* Animation Variables */
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    color: var(--dark);
    line-height: 1.6;
}

img {
    loading: lazy;
}

/* ===== GLOBAL COMPONENTS ===== */

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all var(--transition-base);
    border: 2px solid var(--accent);
    cursor: pointer;
    text-align: center;
}

    .btn:hover {
        background-color: #e68a00;
        border-color: #e68a00;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 158, 27, 0.4);
    }

    .btn.outline {
        background-color: transparent;
        color: var(--accent);
    }

        .btn.outline:hover {
            background-color: var(--accent);
            color: white;
        }

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity var(--transition-slow);
}

    .loading-overlay.hidden {
        opacity: 0;
        pointer-events: none;
    }

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 158, 27, 0.3);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Section Styling */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-alt {
    background-color: var(--light);
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

    .section-heading h2 {
        font-size: 40px;
        color: var(--primary);
        margin-bottom: 15px;
        font-weight: 700;
    }

    .section-heading p {
        font-size: 18px;
        color: var(--gray);
        max-width: 700px;
        margin: 0 auto;
    }

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    border: none;
    outline: none;
}

    .scroll-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top:hover {
        background: #e68a00;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 158, 27, 0.6);
    }

/* ===== LAYOUT COMPONENTS ===== */

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
    border: none;
}

    header.scrolled {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding var(--transition-base);
}

header.scrolled .header-content {
    padding: 15px 0;
}

.logo {
    height: 50px;
    transition: height var(--transition-base);
}

header.scrolled .logo {
    height: 40px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 8px;
    border-radius: 4px;
}

    .menu-toggle:hover {
        color: var(--accent);
        background-color: rgba(255, 158, 27, 0.1);
    }

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

    nav ul li {
        margin-left: 30px;
    }

        nav ul li a {
            text-decoration: none;
            color: var(--primary);
            font-weight: 600;
            transition: all var(--transition-base);
            position: relative;
            padding: 8px 0;
        }

            nav ul li a::after {
                content: '';
                position: absolute;
                width: 0;
                height: 2px;
                bottom: 0;
                left: 0;
                background-color: var(--accent);
                transition: width var(--transition-base);
            }

            nav ul li a:hover::after,
            nav ul li a.active::after {
                width: 100%;
            }

            nav ul li a:hover,
            nav ul li a.active {
                color: var(--accent);
            }

    /* Dropdown Menu */
    nav ul .dropdown {
        position: relative;
    }

        nav ul .dropdown .dropdown-menu {
            display: none;
            position: absolute;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            min-width: 200px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            border-radius: 10px;
            padding: 15px 0;
            z-index: 1001;
            margin-top: 10px;
            border: 1px solid rgba(0,0,0,0.1);
        }

        nav ul .dropdown:hover .dropdown-menu,
        nav ul .dropdown:focus-within .dropdown-menu,
        nav ul .dropdown.open .dropdown-menu {
            display: block;
            animation: fadeInDown var(--transition-base);
        }

        nav ul .dropdown .dropdown-menu li {
            margin: 0;
            padding: 0;
        }

            nav ul .dropdown .dropdown-menu li a {
                display: block;
                padding: 12px 25px;
                color: var(--primary);
                background: none;
                font-weight: 500;
                text-align: left;
                white-space: nowrap;
                border-bottom: none;
                transition: all var(--transition-base);
            }

                nav ul .dropdown .dropdown-menu li a:hover {
                    background: linear-gradient(90deg, rgba(255, 158, 27, 0.1), transparent);
                    color: var(--accent);
                    transform: translateX(5px);
                }

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

    .footer-column h3 {
        font-size: 22px;
        color: white;
        margin-bottom: 25px;
        font-weight: 700;
        position: relative;
    }

        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--accent);
        }

    .footer-column ul {
        list-style: none;
    }

        .footer-column ul li {
            margin-bottom: 12px;
        }

            .footer-column ul li a {
                text-decoration: none;
                color: rgba(255, 255, 255, 0.8);
                transition: all var(--transition-base);
                display: flex;
                align-items: center;
            }

                .footer-column ul li a:hover {
                    color: var(--accent);
                    transform: translateX(5px);
                }

                .footer-column ul li a i {
                    margin-right: 10px;
                    width: 20px;
                }

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ===== MANUFACTURING PAGE STYLES ===== */

/* Problem-Solution Section */
.problem-solution {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1a2d5a 100%);
    color: white;
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.problem-side h3 {
    color: #ff6b6b;
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.solution-side h3 {
    color: var(--accent);
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.problem-list,
.solution-list {
    list-style: none;
}

    .problem-list li,
    .solution-list li {
        margin-bottom: 15px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

        .problem-list li i {
            color: #ff6b6b;
            margin-top: 5px;
            flex-shrink: 0;
        }

        .solution-list li i {
            color: #4CAF50;
            margin-top: 5px;
            flex-shrink: 0;
        }

/* Benefits Section */
.benefits {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, rgba(10, 27, 77, 0.05) 0%, rgba(10, 27, 77, 0.1) 100%);
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.benefits-content {
    flex: 1;
    min-width: 300px;
}

.benefits-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
}

    .benefits-image img {
        max-width: 100%;
        border-radius: 15px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        transition: transform var(--transition-base);
    }

    .benefits-image:hover img {
        transform: scale(1.05);
    }

.benefits-content h2 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 700;
}

.benefits-content p {
    margin-bottom: 25px;
    color: var(--gray);
    font-size: 18px;
    line-height: 1.7;
}

.benefits-list {
    list-style: none;
    margin-top: 30px;
}

    .benefits-list li {
        margin-bottom: 20px;
        display: flex;
        align-items: flex-start;
        padding: 15px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        transition: transform var(--transition-base);
        cursor: pointer;
    }

        .benefits-list li:hover {
            transform: translateX(10px);
        }

        .benefits-list li i {
            color: var(--accent);
            margin-right: 15px;
            font-size: 24px;
            flex-shrink: 0;
            margin-top: 3px;
        }

.benefit-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
}

.benefit-text p {
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* Solutions Section */
.solutions {
    padding: var(--section-padding) 0;
}

.solutions-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.solutions-tab {
    padding: 15px 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    border-radius: 50px;
    transition: all var(--transition-base);
    flex: 1;
    text-align: center;
}

    .solutions-tab.active {
        color: white;
        background-color: var(--accent);
        box-shadow: 0 5px 15px rgba(255, 158, 27, 0.4);
    }

.solutions-content {
    max-width: 1000px;
    margin: 0 auto;
}

.solution-item {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .solution-item.active {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 50px;
    }

.solution-info {
    flex: 1;
    min-width: 300px;
}

.solution-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

    .solution-image img {
        max-width: 100%;
        border-radius: 15px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

.solution-info h3 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.solution-info p {
    margin-bottom: 25px;
    color: var(--gray);
    font-size: 18px;
    line-height: 1.7;
}

.solution-features {
    list-style: none;
    margin-top: 25px;
}

    .solution-features li {
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        font-size: 16px;
    }

        .solution-features li i {
            color: var(--accent);
            margin-right: 12px;
            font-size: 18px;
        }

/* Demo Video Section */
.demo-video {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    transition: transform var(--transition-base);
}

    .video-container:hover {
        transform: scale(1.02);
    }

    .video-container iframe,
    .video-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 15px;
    }

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 158, 27, 0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

    .video-overlay:hover {
        background: var(--accent);
        transform: translate(-50%, -50%) scale(1.1);
    }

    .video-overlay i {
        color: white;
        font-size: 30px;
        margin-left: 4px;
    }

.video-caption {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
    font-style: italic;
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
}

/* Fix the broken feature card icon in manufacturing.html */
.feature-card .fas.fa-boxes {
    display: block;
}

/* Ensure proper icon display */
.feature-icon i {
    display: block;
}

/* Responsive styles for manufacturing page elements */
@media (max-width: 992px) {
    .problem-solution-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .benefits-container {
        flex-direction: column;
    }

    .solution-item.active {
        flex-direction: column;
    }

    .solution-info,
    .solution-image {
        width: 100%;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(10, 27, 77, 0.9) 0%, rgba(10, 27, 77, 0.8) 100%), url('/images/manufacturing-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 158, 27, 0.1) 70%);
        animation: shimmer 3s ease-in-out infinite;
    }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-cta {
    margin-top: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

/* Trust Indicators */
.trust-indicators {
    background-color: white;
    padding: 40px 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.trust-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--primary);
}

.trust-icon {
    font-size: 24px;
    color: var(--accent);
}

/* Features Section */
.features {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    will-change: transform;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--accent), var(--primary));
    }

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

.feature-icon {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 25px;
    transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary) 0%, #2a4fa8 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

    .cta::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 158, 27, 0.1) 50%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn.outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

    .cta-btn.outline:hover {
        background-color: white;
        color: var(--primary);
    }

/* Testimonials */
.testimonials {
    padding: var(--section-padding) 0;
    background: var(--primary);
    color: white;
}

    .testimonials .section-heading h2 {
        color: white;
    }

    .testimonials .section-heading p {
        color: rgba(255, 255, 255, 0.8);
    }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-base);
    text-align: center;
    cursor: pointer;
}

    .testimonial-card:hover {
        transform: translateY(-5px);
        background-color: rgba(255, 255, 255, 0.15);
    }

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.author-info h4 {
    color: white;
    margin-bottom: 5px;
    font-weight: 600;
}

.author-company {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ===== PAGE-SPECIFIC STYLES ===== */

/* ===== INDEX/HOME PAGE STYLES ===== */
/* Override hero layout for index page */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Ensure text-only hero pages still work */
.hero:not(.home-hero) .hero-content {
    display: block;
    text-align: center;
}

.hero-text {
    width: 50%;
}

    .hero-text h1 {
        font-size: 48px;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 18px;
        margin-bottom: 30px;
        opacity: 0.9;
    }

.hero-image {
    width: 45%;
}

    .hero-image img {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

.solutions {
    padding: var(--section-padding-large) 0;
}

.solutions-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.solutions-image {
    width: 45%;
}

    .solutions-image img {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

.solutions-text {
    width: 50%;
}

    .solutions-text h2 {
        font-size: 36px;
        color: var(--primary);
        margin-bottom: 20px;
    }

.solutions-list {
    list-style: none;
}

    .solutions-list li {
        margin-bottom: 15px;
        padding-left: 30px;
        position: relative;
    }

        .solutions-list li:before {
            content: "✓";
            color: var(--accent);
            font-weight: bold;
            position: absolute;
            left: 0;
        }

/* ===== ABOUT PAGE STYLES ===== */
.about-section {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

    .about-section.reverse {
        flex-direction: row-reverse;
    }

.about-text {
    flex: 1;
}

    .about-text h2 {
        font-size: 36px;
        color: var(--primary);
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .about-text p {
        margin-bottom: 20px;
        color: var(--gray);
        font-size: 17px;
        line-height: 1.7;
    }

.about-image {
    flex: 0 0 45%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform var(--transition-slow);
    }

    .about-image:hover img {
        transform: scale(1.03);
    }

.mission-vision {
    display: flex;
    gap: 30px;
    margin-bottom: 80px;
}

.mission-vision-card {
    flex: 1;
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base);
}

    .mission-vision-card:hover {
        transform: translateY(-10px);
    }

    .mission-vision-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background-color: var(--accent);
    }

    .mission-vision-card h3 {
        font-size: 24px;
        color: var(--primary);
        margin-bottom: 20px;
        position: relative;
        padding-left: 20px;
    }

        .mission-vision-card h3::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 10px;
            height: 10px;
            background-color: var(--accent);
            border-radius: 50%;
        }

    .mission-vision-card p {
        color: var(--gray);
        font-size: 16px;
        line-height: 1.7;
    }

.why-choose-us {
    background-color: var(--light);
    padding: var(--section-padding) 0;
    margin-bottom: 80px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all var(--transition-base);
    text-align: center;
}

    .why-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

.why-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 158, 27, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.why-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.why-card p {
    color: var(--gray);
    line-height: 1.7;
}

.team-section {
    margin-bottom: 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all var(--transition-base);
    cursor: pointer;
}

    .team-member:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

.team-member-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

    .team-member-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--transition-slow);
    }

.team-member:hover .team-member-image img {
    transform: scale(1.1);
}

.team-member-info {
    padding: 25px;
    text-align: center;
}

    .team-member-info h3 {
        font-size: 20px;
        color: var(--primary);
        margin-bottom: 5px;
    }

    .team-member-info p.position {
        color: var(--accent);
        font-weight: 600;
        margin-bottom: 15px;
    }

    .team-member-info p.bio {
        color: var(--gray);
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

    .team-social a {
        color: var(--gray);
        font-size: 18px;
        transition: color var(--transition-base);
    }

        .team-social a:hover {
            color: var(--accent);
        }

/* ===== FEATURES PAGE STYLES ===== */
.features-category {
    margin-bottom: 80px;
}

.features .feature-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 158, 27, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features .feature-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-highlight {
    padding: var(--section-padding) 0;
    background-color: var(--light);
}

.highlight-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.highlight-text {
    flex: 1;
}

.highlight-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

    .highlight-image img {
        width: 100%;
        height: auto;
        display: block;
    }

/* ===== PRICING PAGE STYLES ===== */
.pricing {
    padding: var(--section-padding) 0;
    background-color: var(--light);
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 15px;
}

.toggle-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray);
    transition: color var(--transition-base);
}

    .toggle-label.active {
        color: var(--primary);
    }

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray);
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: var(--accent);
}

    input:checked + .slider:before {
        transform: translateX(30px);
    }

.save-badge {
    background-color: var(--accent);
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: 600;
}

.pricing-plans {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.plan {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    cursor: pointer;
}

    .plan:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    .plan.popular {
        border: 2px solid var(--accent);
    }

.popular-badge {
    position: absolute;
    top: 20px;
    right: -40px;
    background-color: var(--accent);
    color: white;
    padding: 8px 40px;
    font-size: 14px;
    font-weight: 600;
    transform: rotate(45deg);
}

.plan-name {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 42px;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 5px;
}

    .plan-price span {
        font-size: 20px;
        vertical-align: super;
    }

.plan-duration {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 30px;
}

.annual-price {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 30px;
}

.plan-divider {
    height: 1px;
    background-color: #eee;
    margin: 20px 0;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

    .plan-features li {
        padding: 10px 0;
        display: flex;
        align-items: center;
    }

        .plan-features li i {
            color: var(--accent);
            margin-right: 10px;
            flex-shrink: 0;
        }

        .plan-features li.not-included {
            color: var(--gray);
            text-decoration: line-through;
        }

.plan-btn {
    display: block;
    text-align: center;
    width: 100%;
}

.comparison {
    padding: var(--section-padding) 0;
    overflow-x: auto;
}

.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 40px;
}

.comparison-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

    .comparison-table thead {
        background-color: var(--primary);
        color: white;
    }

    .comparison-table th {
        padding: 15px;
        text-align: left;
    }

        .comparison-table th:first-child {
            width: 30%;
        }

        .comparison-table th:not(:first-child) {
            text-align: center;
        }

    .comparison-table tbody tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    .comparison-table td {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

        .comparison-table td:not(:first-child) {
            text-align: center;
        }

    .comparison-table i.fa-check {
        color: var(--accent);
    }

    .comparison-table i.fa-xmark {
        color: var(--gray);
    }

.highlight-cell {
    position: relative;
}

.highlight-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.add-ons {
    padding: var(--section-padding) 0;
}

.add-ons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.add-on-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

    .add-on-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--accent), var(--primary));
    }

    .add-on-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    .add-on-card h3 {
        color: var(--primary);
        font-size: 24px;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        font-weight: 600;
    }

        .add-on-card h3 i {
            color: var(--accent);
            margin-right: 15px;
            font-size: 28px;
            flex-shrink: 0;
        }

    .add-on-card p {
        margin-bottom: 25px;
        color: var(--gray);
        line-height: 1.7;
    }

.add-on-price {
    font-weight: 600;
    color: var(--dark);
    font-size: 18px;
}

.faq {
    padding: var(--section-padding) 0;
    background-color: var(--light);
}

.accordion {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all var(--transition-base);
}

    .accordion-item:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

.accordion-header {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    transition: background-color var(--transition-base);
}

    .accordion-header:hover {
        background-color: #f8f9fa;
    }

    .accordion-header h3 {
        font-size: 18px;
        color: var(--primary);
        font-weight: 600;
    }

    .accordion-header i {
        color: var(--accent);
        transition: transform var(--transition-base);
        flex-shrink: 0;
        margin-left: 15px;
    }

.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

    .accordion-content p {
        padding-bottom: 25px;
        color: var(--gray);
        line-height: 1.7;
    }

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-section {
    padding: var(--section-padding) 0;
    background-color: var(--light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    min-width: 300px;
}

.contact-form {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    min-height: 650px;
}

    /* Form header styling */
    .contact-form::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--accent), var(--primary));
        border-radius: 15px 15px 0 0;
    }

.iframe-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    border-radius: 15px;
}

    .iframe-loader.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity var(--transition-base);
    }

.loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loader-text {
    color: var(--primary);
    font-weight: 600;
}

.contact-form iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
}

.contact-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all var(--transition-base);
    border-left: 4px solid var(--accent);
}

    .contact-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    }

    .contact-card h3 {
        font-size: 20px;
        color: var(--primary);
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        font-weight: 600;
    }

        .contact-card h3 i {
            color: var(--accent);
            margin-right: 12px;
            font-size: 22px;
            width: 28px;
            flex-shrink: 0;
        }

    .contact-card p,
    .contact-card a {
        margin-bottom: 8px;
        color: var(--gray);
        text-decoration: none;
        transition: color var(--transition-base);
        display: block;
        margin-left: 35px;
        font-size: 15px;
        line-height: 1.5;
    }

        .contact-card a:hover {
            color: var(--accent);
        }

.social-icons {
    display: flex;
    margin-top: 20px;
    margin-left: 40px;
    gap: 15px;
}

    .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: var(--primary);
        color: white;
        border-radius: 50%;
        transition: all var(--transition-base);
    }

        .social-icons a:hover {
            background-color: var(--accent);
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(255, 158, 27, 0.3);
        }

.map-section {
    padding: 0 0 var(--section-padding);
}

.map-container {
    height: 450px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: transform var(--transition-base);
}

    .map-container:hover {
        transform: scale(1.01);
    }

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== UTILITY CLASSES ===== */
.fade-in {
    animation: fadeInUp 0.8s ease both;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .highlight-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .footer-column {
        flex: 1 1 45%;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 28px;
    }

    .section-heading h2 {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-section,
    .about-section.reverse,
    .mission-vision {
        flex-direction: column;
    }

    .about-image {
        flex: none;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .mission-vision-card {
        padding: 30px;
    }

    .about-text h2 {
        font-size: 28px;
    }

    .highlight-content {
        flex-direction: column;
    }

    .highlight-text, .highlight-image {
        flex: none;
        width: 100%;
    }

    .highlight-image {
        order: -1;
    }

    .add-ons-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-slow);
    }

        nav.active {
            max-height: 400px;
        }

        nav ul {
            flex-direction: column;
            padding: 20px 0;
        }

            nav ul li {
                margin: 0;
                width: 100%;
                text-align: center;
            }

                nav ul li a {
                    display: block;
                    padding: 15px 20px;
                    border-bottom: 1px solid rgba(0,0,0,0.1);
                }

            nav ul .dropdown .dropdown-menu {
                position: static;
                min-width: 100%;
                box-shadow: none;
                background: rgba(248, 249, 250, 0.95);
                margin-top: 0;
                border-radius: 0;
                padding: 0;
                border: none;
                border-top: 1px solid rgba(0,0,0,0.1);
            }

                nav ul .dropdown .dropdown-menu li a {
                    padding: 15px 40px;
                    border-bottom: 1px solid rgba(0,0,0,0.05);
                }

    .hero {
        padding: 120px 0 60px;
    }

        .hero h1 {
            font-size: 32px;
        }

        .hero p {
            font-size: 18px;
        }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .trust-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .solutions-content {
        flex-direction: column;
    }

    .hero-text,
    .hero-image,
    .solutions-text,
    .solutions-image {
        width: 100%;
    }

    .hero-image,
    .solutions-image {
        margin-top: 40px;
        order: 2;
    }

    .solutions-text {
        order: 1;
    }

        .solutions-text h2 {
            font-size: 28px;
        }

    .features,
    .solutions {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta h2 {
        font-size: 32px;
    }

    .cta p {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .pricing-plans {
        flex-direction: column;
        align-items: center;
    }

    .plan {
        width: 100%;
        max-width: 400px;
    }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--container-padding-mobile);
    }

    .hero {
        padding: 120px 0 60px;
    }

        .hero h1 {
            font-size: 28px;
        }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p,
    .solutions-text p {
        font-size: 16px;
    }

    .solutions-list li {
        font-size: 15px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .section {
        padding: 60px 0;
    }

    .footer-column {
        flex: 1 1 100%;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .mission-vision-card {
        padding: 25px 20px;
    }

        .mission-vision-card h3 {
            font-size: 20px;
        }

    .add-ons-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 25px 20px;
        min-height: 600px;
    }

    .map-container {
        height: 300px;
    }
}

/* ===== RTL (ARABIC) SUPPORT ===== */

/* RTL Body and HTML direction */
html[dir="rtl"] {
    direction: rtl;
}

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* RTL Navigation */
html[dir="rtl"] nav ul li {
    margin-left: 0;
    margin-right: 30px;
}

html[dir="rtl"] nav ul .dropdown .dropdown-menu {
    left: auto;
    right: 0;
}

    html[dir="rtl"] nav ul .dropdown .dropdown-menu li a {
        text-align: right;
    }

        html[dir="rtl"] nav ul .dropdown .dropdown-menu li a:hover {
            transform: translateX(-5px);
        }

/* RTL Hero Section */
html[dir="rtl"] .hero-content {
    direction: rtl;
}

html[dir="rtl"] .hero-text {
    text-align: right;
}

/* RTL Features and Cards */
html[dir="rtl"] .feature-card,
html[dir="rtl"] .contact-card,
html[dir="rtl"] .plan,
html[dir="rtl"] .add-on-card {
    text-align: right;
}

html[dir="rtl"] .feature-icon,
html[dir="rtl"] .why-icon {
    margin-left: 0;
    margin-right: auto;
}

/* RTL Lists and Icons */
html[dir="rtl"] .benefits-list li i,
html[dir="rtl"] .solution-features li i,
html[dir="rtl"] .solutions-list li i,
html[dir="rtl"] .plan-features li i {
    margin-left: 10px;
    margin-right: 0;
    cursor: pointer;
}

html[dir="rtl"] .contact-card h3 i {
    margin-left: 12px;
    margin-right: 0;
}

html[dir="rtl"] .contact-card p,
html[dir="rtl"] .contact-card a {
    margin-left: 0;
    margin-right: 35px;
}

html[dir="rtl"] .add-on-card h3 i {
    margin-left: 15px;
    margin-right: 0;
}

/* RTL Solutions List */
html[dir="rtl"] .solutions-list li {
    padding-left: 0;
    padding-right: 30px;
}

    html[dir="rtl"] .solutions-list li:before {
        left: auto;
        right: 0;
    }

/* RTL Problem-Solution Lists */
html[dir="rtl"] .problem-list li,
html[dir="rtl"] .solution-list li {
    flex-direction: row-reverse;
}

/* RTL Footer */
html[dir="rtl"] .footer-column ul li a {
    flex-direction: row-reverse;
}

    html[dir="rtl"] .footer-column ul li a i {
        margin-left: 10px;
        margin-right: 0;
    }

    html[dir="rtl"] .footer-column ul li a:hover {
        transform: translateX(5px);
    }

/* RTL Testimonials */
html[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
}

html[dir="rtl"] .author-image {
    margin-left: 15px;
    margin-right: 0;
}

/* RTL Team Social */
html[dir="rtl"] .team-social {
    flex-direction: row-reverse;
}

/* RTL Benefits List Hover */
html[dir="rtl"] .benefits-list li:hover {
    transform: translateX(-10px);
}

/* RTL About Section */
html[dir="rtl"] .about-section.reverse {
    flex-direction: row;
}

html[dir="rtl"] .about-section:not(.reverse) {
    flex-direction: row-reverse;
}

/* RTL Mission Vision Card */
html[dir="rtl"] .mission-vision-card::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .mission-vision-card h3 {
    padding-left: 0;
    padding-right: 20px;
}

    html[dir="rtl"] .mission-vision-card h3::before {
        left: auto;
        right: 0;
    }

/* RTL Scroll Top Button */
html[dir="rtl"] .scroll-top {
    left: 30px;
    right: auto;
}

/* RTL Pricing Toggle */
html[dir="rtl"] .save-badge {
    margin-left: 0;
    margin-right: 10px;
}

/* RTL Accordion */
html[dir="rtl"] .accordion-header i {
    margin-left: 0;
    margin-right: 15px;
}

/* RTL Social Icons */
html[dir="rtl"] .social-icons {
    margin-left: 0;
    margin-right: 40px;
    flex-direction: row-reverse;
}

/* RTL Mobile Responsive */
@media (max-width: 768px) {
    html[dir="rtl"] nav ul .dropdown .dropdown-menu li a {
        text-align: center;
    }

    html[dir="rtl"] .scroll-top {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 576px) {
    html[dir="rtl"] .scroll-top {
        left: 20px;
        right: auto;
    }
}

/* ===== ARABIC TYPOGRAPHY 'Tajawal', ===== */
html[dir="rtl"] {
    font-family: 'Cairo', 'Almarai', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    /* Adjust line height for Arabic text */
    html[dir="rtl"] body {
        line-height: 1.8;
    }

    html[dir="rtl"] h1,
    html[dir="rtl"] h2,
    html[dir="rtl"] h3,
    html[dir="rtl"] h4,
    html[dir="rtl"] h5,
    html[dir="rtl"] h6 {
        line-height: 1.4;
    }

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.hero,
.cta,
.features {
    will-change: transform;
}




/* ===== ABOUT PAGE SPECIFIC STYLES ===== */

/* Enhanced Animations */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(10, 27, 77, 0.95) 0%, rgba(10, 27, 77, 0.85) 100%), url('/images/about-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,158,27,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        animation: float 6s ease-in-out infinite;
    }

.hero-content {
    position: relative;
    z-index: 3;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2d5a 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

    .stats-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 158, 27, 0.1) 50%, transparent 70%);
        animation: shimmer 4s ease-in-out infinite;
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .stat-card:hover::before {
        left: 100%;
    }

    .stat-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.15);
    }

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.stat-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 15px;
}

/* Enhanced Journey Section */
.journey-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.journey-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
    transform: translateX(-50%);
    border-radius: 2px;
}

/* RTL Timeline adjustments */
html[dir="rtl"] .timeline-line {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    cursor: pointer;
}

    .timeline-item:nth-child(even) {
        flex-direction: row-reverse;
    }

.timeline-content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 0 40px;
    position: relative;
    transition: all 0.3s ease;
}

    .timeline-content:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    .timeline-content::before {
        content: '';
        position: absolute;
        top: 50%;
        width: 0;
        height: 0;
        border: 15px solid transparent;
        transform: translateY(-50%);
    }

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: white;
}

/* RTL Timeline content arrows */
html[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content::before {
    left: -30px;
    right: auto;
    border-right-color: white;
    border-left-color: transparent;
}

html[dir="rtl"] .timeline-item:nth-child(even) .timeline-content::before {
    right: -30px;
    left: auto;
    border-left-color: white;
    border-right-color: transparent;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    z-index: 3;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.timeline-year {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-desc {
    color: var(--gray);
    line-height: 1.6;
}

/* Enhanced Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .value-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--accent), var(--primary));
    }

    .value-card:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    }

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), #e68a00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    animation: pulse 1s ease-in-out;
}

/* Enhanced Team Section */
.team-enhanced .team-member {
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 158, 27, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.team-member:hover::before {
    left: 100%;
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 27, 77, 0.9));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.team-member:hover .team-overlay {
    transform: translateY(0);
}

.team-quote {
    font-style: italic;
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Innovation Section */
.innovation-section {
    background: var(--primary);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.innovation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.innovation-text h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 36px;
}

.innovation-features {
    list-style: none;
    margin-top: 30px;
    cursor: pointer;
}

    .innovation-features li {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        transition: all 0.3s ease;
    }

        .innovation-features li:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(10px);
        }

    .innovation-features i {
        color: var(--accent);
        margin-right: 15px;
        font-size: 20px;
        width: 30px;
    }

/* RTL Innovation features */
html[dir="rtl"] .innovation-features i {
    margin-left: 15px;
    margin-right: 0;
}

html[dir="rtl"] .innovation-features li:hover {
    transform: translateX(-10px);
}

.innovation-visual {
    position: relative;
    text-align: center;
}

.floating-elements {
    position: relative;
    display: inline-block;
}

.floating-icon {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
    border: 2px solid rgba(255, 158, 27, 0.3);
}

    .floating-icon:nth-child(1) {
        top: -30px;
        left: -40px;
        animation-delay: 0s;
    }

    .floating-icon:nth-child(2) {
        top: 20px;
        right: -50px;
        animation-delay: 1s;
    }

    .floating-icon:nth-child(3) {
        bottom: -20px;
        left: 20px;
        animation-delay: 2s;
    }

    .floating-icon:nth-child(4) {
        bottom: 40px;
        right: 10px;
        animation-delay: 0.5s;
    }

/* RTL Floating icons */
html[dir="rtl"] .floating-icon:nth-child(1) {
    top: -30px;
    right: -40px;
    left: auto;
    animation-delay: 0s;
}

html[dir="rtl"] .floating-icon:nth-child(2) {
    top: 20px;
    left: -50px;
    right: auto;
    animation-delay: 1s;
}

html[dir="rtl"] .floating-icon:nth-child(3) {
    bottom: -20px;
    right: 20px;
    left: auto;
    animation-delay: 2s;
}

html[dir="rtl"] .floating-icon:nth-child(4) {
    bottom: 40px;
    left: 10px;
    right: auto;
    animation-delay: 0.5s;
}

/* Responsive Enhancements */
@media (max-width: 992px) {
    .timeline-line {
        display: none;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .timeline-content {
        margin: 20px 0;
    }

        .timeline-content::before {
            display: none;
        }

    .innovation-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .floating-elements .floating-icon {
        position: relative;
        display: inline-flex;
        margin: 10px;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 32px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

    .fade-in-left.visible {
        opacity: 1;
        transform: translateX(0);
    }

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

    .fade-in-right.visible {
        opacity: 1;
        transform: translateX(0);
    }