:root {
    --primary-color: #2C3E50;    /* أزرق داكن */
    --secondary-color: #3498DB;  /* أزرق فاتح */
    --accent-color: #E74C3C;     /* أحمر طبي */
    --light-gray: #ECF0F1;       /* رمادي فاتح */
    --white: #FFFFFF;
}

body {
    font-family: 'Cairo', sans-serif;
}

/* Header Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: var(--white) !important;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    background: var(--light-gray);
    color: var(--secondary-color) !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-image1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* تقليل قيمة alpha من 0.85 إلى 0.7 لزيادة الشفافية */
    background: linear-gradient(135deg, 
        rgba(44,62,80,0.7) 0%, 
        rgba(52,152,219,0.7) 100%
    );
    z-index: -1;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hero-section p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-section .btn-primary {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    background: var(--accent-color);
    color: var(--white);
}

.hero-section .col-md-6 img {
    max-width: 80%;  /* تقليل عرض الصورة في القسم الرئيسي */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Services Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Card Images */
.card-img-top {
    height: 250px;
    width: 100%;
    object-fit: contain; /* تغيير من cover إلى contain لعرض الصورة كاملة */
    padding: 1rem;    /* إضافة padding للصور */
    background: var(--light-gray); /* خلفية فاتحة للصور */
    transition: all 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    color: var(--accent-color);
    font-weight: 700;
}

/* Enhanced Services Section */
.service-box {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.service-box:hover::before {
    opacity: 0.1;
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* About Section */
.about-section {
    background: var(--light-gray);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52,152,219,0.1) 0%, rgba(44,62,80,0.1) 100%);
}

/* About Image */
.about-image {
    position: relative;
    padding: 1rem;
    max-width: 250px;  /* تحديد الحد الأقصى لعرض الصورة */
    margin: 0 auto;    /* توسيط الصورة */
}

.about-image img {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;      /* جعل الصورة تأخذ عرض الحاوية */
    height: 300px;    /* تحديد ارتفاع ثابت */
    object-fit: cover; /* ضمان تغطية الصورة للمساحة المحددة */
}

.about-image:hover img {
    transform: translate(5px, 5px);
}

/* تحسين التجاوب على الشاشات الصغيرة */
@media (max-width: 768px) {
    .about-image {
        max-width: 100%;
        margin-top: 2rem;
    }

    .about-image img {
        height: 250px; /* تقليل الارتفاع على الشاشات الصغيرة */
    }

    .hero-section .col-md-6 img {
        max-width: 100%;
        margin-top: 2rem;
    }

    .card-img-top {
        height: 200px;
    }
}

/* Contact Section */
.contact-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-btn i {
    font-size: 1.2rem;
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.instagram {
    background: var(--accent-color);  /* استخدام اللون الأحمر الطبي */
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--white);
}

/* Map Container */
.map-container {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.map-container iframe {
    display: block;
}

/* Custom Buttons */
.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #2c3e50;
}

footer a:hover {
    color: #fff;
    opacity: 0.8;
}

/* Logo */
.logo {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    padding: 1rem 0;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    transition-delay: calc(var(--delay) * 0.1s);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Language Switcher */
.lang-switch {
    margin-right: 1rem;
}

.lang-switch .btn {
    margin: 0 0.2rem;
    min-width: 70px;
}

.lang-switch .btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* RTL/LTR Support */
.ltr {
    direction: ltr;
    text-align: left;
}

.rtl {
    direction: rtl;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info-card {
        margin-bottom: 2rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .about-image {
        margin-top: 2rem;
    }
}