/* Website home page (place in wwwroot/css/home.css) */

/* 1. Global Variables & Layout */
:root {
    --primary-color: #0056b3; /* اللون الأساسي */
    --secondary-color: #f8f9fa; /* لون الخلفيات الفاتحة */
    --text-dark: #333;
    --text-muted: #6c757d;
    --transition-speed: 0.3s;
}

section {
    padding: 80px 0;
    overflow: hidden; /* لمنع ظهور Scroll عرضي بسبب الأنيميشن */
}

.section-title {
    margin-bottom: 50px;
    position: relative;
}

    .section-title span {
        color: var(--primary-color);
        font-weight: 700;
        text-transform: uppercase;
        display: block;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .section-title h2, .section-title h3 {
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--text-dark);
    }

/* 2. Banner Section Styles */
.banner-slider {
    position: relative;
    overflow: hidden;
    direction: ltr; /* OwlCarousel يعمل بشكل أفضل هكذا ويتم عكسه بالـ JS */
}

.banner-item {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 85vh; /* ارتفاع ملء الشاشة تقريباً */
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45); /* تعتيم الخلفية */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
}

    .banner-content h1 {
        font-size: 3rem; /* تكبير الخط */
        font-weight: 800;
        margin-bottom: 30px;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    }

.banner-btn-group {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* تنسيق الأزرار (عام) */
.default-btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

    .default-btn:hover {
        background: #fff;
        color: var(--primary-color);
        border-color: var(--primary-color);
        transform: translateY(-3px);
    }

    .default-btn.outline {
        background: transparent;
        border-color: #fff;
        box-shadow: none;
    }

        .default-btn.outline:hover {
            background: #fff;
            color: var(--text-dark);
        }

/* 3. Services Section Styles */
.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-speed);
    height: 100%;
    border: 1px solid #eee;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        border-color: var(--primary-color);
    }

.service-img-wrapper {
    height: 220px;
    overflow: hidden;
}

    .service-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.service-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

    .service-content h3 {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .service-content p {
        color: var(--text-muted);
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 20px;
        height: 80px; /* توحيد ارتفاع النص */
        overflow: hidden;
    }

/* 4. Get Quote Section Styles */
.quote-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/img/bg-quote.jpg');
    background-attachment: fixed;
    background-size: cover;
    color: white;
    position: relative;
}

.quote-content .offer-badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: bold;
}

/* 5. About & Why Us Styles */
.nav-pills .nav-link {
    color: #555;
    border-radius: 50px;
    padding: 10px 25px;
    margin: 0 5px;
    font-weight: 600;
}

    .nav-pills .nav-link.active {
        background-color: var(--primary-color);
    }

.why-us-bg {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* 6. Clients Section Styles */
.client-logo-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: var(--transition-speed);
}

    .client-logo-item:hover {
        border-color: var(--primary-color);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .client-logo-item img {
        max-width: 100%;
        max-height: 80px;
        object-fit: contain;
        filter: grayscale(100%);
        transition: var(--transition-speed);
    }

    .client-logo-item:hover img {
        filter: grayscale(0%);
        transform: scale(1.05);
    }

/* 7. Animations & Modal */
.animate-up {
    animation: fadeInUp 1s ease-in-out;
}

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

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

.modal-header {
    background-color: var(--primary-color);
    color: white;
}

    .modal-header .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%); /* لجعل زر الإغلاق أبيض */
    }
