/* ===== COMPLETE CSS FILE - FIXED IMAGES ISSUE ===== */

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #7f8c8d;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --whatsapp-color: #25D366;
    --call-color: #075E54;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 10px;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== RUNNING STRIP ===== */
.running-strip {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.strip-content {
    display: inline-flex;
    animation: runningStrip 20s linear infinite;
    gap: 30px;
    padding: 0 20px;
}

.strip-content span {
    font-size: 14px;
    font-weight: 500;
}

@keyframes runningStrip {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

.desktop-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 50%;
    transform: translateX(50%);
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* ===== MOBILE MENU ===== */
.menu-card {
    display: none;
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.menu-sidebar {
    position: fixed;
    top: 0;
    right: auto;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 20px;
}

.menu-sidebar.active {
    left: 0;
}

.menu-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
    padding: 5px;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bubble-btn {
    display: block;
    padding: 15px 20px;
    background-color: var(--light-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.bubble-btn:hover,
.bubble-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateX(-10px);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-content {
    position: absolute;
    bottom: 50px;
    right: 50px;
    color: white;
    max-width: 600px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
}

.slider-prev,
.slider-next {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--dark-color);
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FIXED SERVICES GRID - IMAGES FIX ===== */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ===== CRITICAL FIX FOR IMAGES ===== */
.service-img {
    width: 100%;
    height: 220px; /* ثابت لجميع الشاشات */
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5; /* لون خلفية أثناء التحميل */
}

/* هذه الخاصية هي الحل الأساسي لمشكلة قص الصور */
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تغطي المساحة بدون تشويه */
    object-position: center; /* التركيز على وسط الصورة */
    display: block;
    transition: transform 0.5s ease;
}

/* تكبير الصورة عند التحويم */
.service-card:hover .service-img img {
    transform: scale(1.1);
}

/* محتوى البطاقة */
.service-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-content p {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

/* زر الخدمة */
.service-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
}

.service-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* بطاقة الخدمات الخاصة */
.special-card {
    position: relative;
}

.more-count {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 2;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    text-align: center;
}

.view-all-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.view-all-container {
    text-align: center;
    margin-top: 30px;
}

.view-all-services-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.view-all-services-btn:hover {
    background-color: var(--secondary-color);
    transform: translateX(-10px);
}

/* ===== ADDITIONAL INFO ===== */
.additional-info {
    background-color: #f8f9fa;
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.info-content h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.info-content p {
    color: var(--gray-color);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.features-list li {
    background-color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.features-list li:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
    color: white;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
    background-color: #f8f9fa;
}

.reviews-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.reviews-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: 350px;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.reviewer-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.reviewer-details h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stars {
    color: var(--warning-color);
    font-size: 18px;
}

.review-text {
    color: var(--gray-color);
    font-style: italic;
    line-height: 1.6;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.scroll-left {
    right: 20px;
}

.scroll-right {
    left: 20px;
}

.scroll-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* ===== OFFICIAL FLOATING BUTTONS ===== */
.float-btn {
    position: fixed !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
}

/* WhatsApp Button - RIGHT SIDE */
.float-btn.whatsapp-btn {
    background-color: #25D366 !important;
    color: white !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    top: auto !important;
}

/* WhatsApp Icon */
.float-btn.whatsapp-btn::before {
    content: '' !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20.5 3.5a12 12 0 0 0-19.8 9 11.7 11.7 0 0 0 1.6 5.9L.1 23.9l5.3-1.8a12 12 0 0 0 5.7 1.4h.1a12 12 0 0 0 8.6-20.5zm-8.5 18.4a10 10 0 0 1-5.1-1.4l-.4-.2-3.8 1 1-3.7-.2-.4a10 10 0 1 1 18.3-5.6 10 10 0 0 1-10 9.1zm5.5-7.5c-.3-.1-1.7-.8-2-.9-.2-.1-.4-.1-.6.1-.2.2-.7.9-.9 1.1-.2.2-.3.2-.6.1s-1.1-.4-2.1-1.3c-.8-.7-1.3-1.5-1.5-1.8-.2-.2 0-.4.1-.5.1-.1.2-.2.3-.3.1-.1.2-.2.3-.2.1-.1.2-.2.3-.2.1 0 .2 0 .3.1.1.1.5.7.6.9.1.2.2.3.3.4.1.1.2.2.3.2.1.1.2.1.3 0 .1-.1.5-.6.6-.8.1-.2.2-.2.3-.2h.3c.1 0 .2 0 .4.2.2.2.8.8.9 1 .1.2.2.4.2.6 0 .2 0 .4-.1.5-.1.2-.5 1.1-.7 1.5-.2.4-.4.7-.6.9-.2.2-.4.4-.6.5-.2.1-.4.3-.7.3-.3 0-.6-.1-.9-.3-.2-.2-.5-.4-.7-.6-.2-.2-.4-.4-.6-.6-.4-.4-.7-.9-1-1.3-.3-.4-.6-.9-.8-1.4-.2-.5-.4-1-.5-1.5 0-.5 0-1 .2-1.5.1-.5.4-1 .7-1.4.3-.4.7-.7 1.2-.9.5-.2 1-.2 1.5-.1.5.1 1 .4 1.4.8.4.4.7.9.9 1.5.2.6.2 1.2 0 1.8z'/%3E%3C/svg%3E") !important;
    width: 30px !important;
    height: 30px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    display: block !important;
}

/* Call Button - LEFT SIDE */
.float-btn.call-btn {
    background-color: #075E54 !important;
    color: white !important;
    bottom: 30px !important;
    left: 30px !important;
    right: auto !important;
    top: auto !important;
}

/* Call Icon */
.float-btn.call-btn::before {
    content: '' !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20 15.5c-1.2 0-2.4-.2-3.6-.6-.3-.1-.7 0-1 .2l-2.2 2.2c-2.8-1.5-5.2-3.8-6.6-6.6l2.2-2.2c.3-.3.4-.7.2-1-.3-1.1-.5-2.3-.5-3.5 0-.6-.4-1-1-1H4c-.6 0-1 .4-1 1 0 9.4 7.6 17 17 17 .6 0 1-.4 1-1v-3.5c0-.6-.4-1-1-1zM5 6h1.5c.1 1.2.3 2.4.7 3.5L5.3 11.8c-.9-1.7-1.4-3.6-1.5-5.6 0-.1 0-.2 0-.2zM19 20c-1.9-.1-3.8-.6-5.5-1.5l2.2-2.2c1.1.4 2.3.7 3.5.7v1.5c0 .1 0 .2-.1.3-.1.1-.2.2-.3.2z'/%3E%3C/svg%3E") !important;
    width: 30px !important;
    height: 30px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    display: block !important;
}

/* Hover Effects */
.float-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

/* WhatsApp Hover */
.float-btn.whatsapp-btn:hover {
    background-color: #128C7E !important;
}

/* Call Hover */
.float-btn.call-btn:hover {
    background-color: #054D44 !important;
}

/* Floating Animation */
@keyframes floating {
    0%, 100% {
        transform: translateY(0) !important;
    }
    50% {
        transform: translateY(-10px) !important;
    }
}

.float-btn {
    animation: floating 3s ease-in-out infinite !important;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-menu,
.services-list {
    list-style: none;
}

.footer-menu li,
.services-list li {
    margin-bottom: 12px;
}

.footer-menu a,
.services-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-menu a:hover,
.services-list a:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-icon {
    font-size: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
}

.copyright span {
    color: var(--secondary-color);
    font-weight: 600;
}

.footer-extra p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }
    
    .menu-card {
        display: block;
    }
}

@media (max-width: 768px) {
    /* تعديلات عامة */
    section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* تعديل ارتفاع الصور للتابلت */
    .service-img {
        height: 200px;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content {
        bottom: 30px;
        right: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* تعديل ارتفاع الصور للجوال */
    .service-img {
        height: 180px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .service-content p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slide-content {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .review-card {
        min-width: 280px;
        padding: 20px;
    }
    
    .reviewer-img {
        width: 50px;
        height: 50px;
    }
    
    .features-list li {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .float-btn {
        width: 50px !important;
        height: 50px !important;
    }
    
    .float-btn.whatsapp-btn {
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .float-btn.call-btn {
        bottom: 20px !important;
        left: 20px !important;
    }
}

/* شاشات صغيرة جداً */
@media (max-width: 375px) {
    .service-img {
        height: 160px;
    }
    
    .hero-slider {
        height: 250px;
    }
    
    .slide-content h1 {
        font-size: 1.2rem;
    }
    
    .service-content {
        padding: 15px;
    }
    
    .service-content h3 {
        font-size: 1.1rem;
    }
}

/* الوضع الأفقي للجوال */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 250px;
    }
    
    .float-btn {
        bottom: 10px !important;
    }
    
    .menu-sidebar {
        height: auto;
        overflow-y: auto;
        max-height: 90vh;
    }
}

/* منع التمرير الأفقي */
html, body {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* تحسينات إضافية للأداء */
.service-card {
    will-change: transform;
}

.service-img img {
    will-change: transform;
}