:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-blue: #0066CC;
    --accent-orange: #FF6B35;
    --dark-color: #1A1A1A;
    --light-color: #F5F5F5;
    --text-color: #333;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-en);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px;
}

[dir="rtl"] body {
    font-family: var(--font-ar);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.brand-text {
    font-family: var(--font-ar);
}

.brand-text-en {
    font-family: var(--font-en);
    margin-left: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-description {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.project-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Client Slider */
.clients-slider {
    padding: 2rem 0;
}

.client-logo {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    transition: transform 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.05);
}

.client-logo img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.client-name {
    font-weight: 600;
    color: var(--dark-color);
}

/* Branch Cards */
.branch-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
}

.branch-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.branch-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.branch-info {
    color: #666;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-on-scroll {
    opacity: 0;
}

/* Footer */
footer {
    margin-top: auto;
}

footer h5 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* New Footer Design */
.footer-main {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.footer-company-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.footer-dot {
    color: var(--primary-color);
    font-size: 2rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-socials {
    margin-top: 30px;
}

.footer-socials-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-section {
    margin-bottom: 30px;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: var(--primary-color);
}

.footer-contact {
    margin-top: 10px;
}

.footer-newsletter {
    margin-top: 20px;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.3);
}

.newsletter-submit {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.newsletter-submit:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 40px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.scroll-to-top {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.footer-nav {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

/* RTL Support for Footer */
[dir="rtl"] .footer-list a:hover {
    padding-left: 0;
    padding-right: 5px;
}

[dir="rtl"] .footer-nav {
    justify-content: flex-start;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .footer-company-name {
        font-size: 1.5rem;
    }
    
    .footer-nav {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-bottom .row > div {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-submit {
        width: 100%;
    }
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #4A90E2;
    border-radius: 50%;
    color: #4A90E2;
    font-size: 2rem;
    background: rgba(74, 144, 226, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    background: rgba(74, 144, 226, 0.2);
    transform: scale(1.1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1;
    font-family: var(--font-en);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.4;
}

[dir="rtl"] .stat-label {
    font-family: var(--font-ar);
}

/* Responsive Statistics */
@media (max-width: 768px) {
    .statistics-section {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f7f7fa 0%, #f1f1f1 50%, #fdfdfd 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.testimonials-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 246, 246, 0);
    z-index: 1;
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
}

.testimonials-title-banner {
    background: linear-gradient(135deg, #ff7f08e3 0%, #ff7c02 100%);
    padding: 20px 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

.testimonials-title-banner::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.testimonials-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    position: relative;
    z-index: 1;
}

[dir="rtl"] .testimonials-title {
    font-family: var(--font-ar);
}

.testimonials-slider {
    padding: 20px 0 60px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-bubble {
    position: relative;
    background: white;
    padding: 25px;
    border-radius: 20px 20px 20px 5px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .testimonial-bubble {
    border-radius: 20px 20px 5px 20px;
}

.testimonial-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid white;
}

[dir="rtl"] .testimonial-bubble::after {
    left: auto;
    right: 30px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
}

.testimonial-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    text-align: start;
}

[dir="rtl"] .testimonial-text {
    font-family: var(--font-ar);
    text-align: right;
}

.testimonial-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #0066CC;
    background: #f0f0f0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066CC 0%, #004E89 100%);
    color: white;
    font-size: 2rem;
}

.testimonial-details {
    flex: 1;
}

.testimonial-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 5px 0;
}

[dir="rtl"] .testimonial-name {
    font-family: var(--font-ar);
}

.testimonial-title {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 10px 0;
}

[dir="rtl"] .testimonial-title {
    font-family: var(--font-ar);
}

.testimonial-rating {
    display: flex;
    gap: 3px;
}

.testimonial-rating i {
    font-size: 1rem;
    color: #ddd;
    transition: color 0.3s ease;
}

.testimonial-rating i.active {
    color: #FFD700;
}

.testimonials-pagination {
    position: relative;
    margin-top: 40px;
    bottom: 0 !important;
}

.testimonials-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

/* Responsive Testimonials */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-title-banner {
        padding: 15px 20px;
        margin-bottom: 40px;
    }
    
    .testimonials-title {
        font-size: 1.4rem;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-bubble {
        padding: 20px;
    }
    
    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-name {
        font-size: 1.1rem;
    }
}

/* About, Vision, Message Sections */
.about-content,
.vision-content,
.message-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.image-placeholder {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 4rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: #666;
    margin: 0;
}

/* Contact Section */
.contact-item {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-item p {
    color: #666;
    margin: 0.5rem 0;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .project-card,
    .branch-card {
        margin-bottom: 2rem;
    }
    
    .image-placeholder {
        min-height: 200px;
        padding: 2rem;
    }
}

