/* ===============================
   GLOBAL RESET & THEME
================================ */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--modern-bg);
    color: var(--modern-dark);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* Owl spacing fix */
.owl-item {
    padding: 15px;
}

/* ===============================
   HERO SECTION
================================ */
.hero-dark {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.hero-dark img,
.hero-dark video {
    width: 100%;
    height: 85vh;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(var(--modern-primary-rgb), 0.05) 0%,
            rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, .85) 0%,
            rgba(0, 0, 0, .6) 50%,
            rgba(0, 0, 0, .9) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 650px;
    margin-right: 250px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    opacity: .85;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* ===============================
   BUTTONS
================================ */
.btn-primary-dark {
    background: linear-gradient(135deg, var(--modern-primary), var(--modern-primary-dark));
    color: #fff;
    padding: 14px 30px;
    border-radius: 14px;
    font-weight: 700;
    transition: .3s;
}

.btn-primary-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(var(--modern-primary-rgb), 0.4);
}

.btn-outline-dark {
    border: 1px solid rgba(255, 255, 255, .7);
    color: #fff;
    padding: 14px 30px;
    border-radius: 14px;
    transition: .3s;
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, .1);
}

/* ===============================
   SECTIONS
================================ */
.dark-main {
    background: var(--modern-bg);
}

.dark-section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
}

.section-header p {
    opacity: .7;
}

/* ===============================
   PRODUCT CARD
================================ */
.dark-card {
    background: var(--modern-bg);
    border: 1px solid var(--modern-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--modern-shadow-md);
    transition: .3s;
}

[data-theme="dark"] .dark-card {
    background: rgba(25, 25, 25, .85);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
}

.dark-card:hover {
    transform: translateY(-6px);
}

.card-image {
    position: relative;
}

.card-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.price {
    position: absolute;
    bottom: 15px;
    inset-inline-start: 15px;
    background: var(--modern-primary);
    color: white;
    /* Contrast against green or orange background */
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(var(--modern-primary-rgb), 0.3);
}

.card-body {
    padding: 22px;
}

.card-body h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.card-body p {
    font-size: 14px;
    opacity: .7;
}

.card-features {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 13px;
    opacity: .85;
}

/* ===============================
   IMAGE CARDS (ACHIEVEMENTS)
================================ */
.dark-image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.dark-image-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.overlay-title {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
    font-size: 18px;
    font-weight: 700;
}

/* ===============================
   SERVICES
================================ */
.dark-service-card {
    background: var(--modern-bg-light);
    border: 1px solid var(--modern-border);
    padding: 35px 25px;
    border-radius: 22px;
    text-align: center;
    height: 170px;
    transition: .3s;
}

[data-theme="dark"] .dark-service-card {
    background: rgba(30, 30, 30, .9);
}

.dark-service-card:hover {
    transform: translateY(-5px);
    color: var(--modern-primary-dark);
}

.dark-service-card img {
    width: 70px;
    margin: 0 auto 15px;
}

.dark-service-card h4 {
    margin-bottom: 10px;
    text-align: center;

}

.dark-service-card p {
    font-size: 14px;
    opacity: .7;
}

/* ===============================
   SPLIT WHY CHOOSE
================================ */
/* ===============================
   MODERN WHY CHOOSE US
================================ */
.modern-why {
    background: var(--modern-bg-light);
    position: relative;
    padding: 100px 0;
    border-top: 1px solid var(--modern-border);
    border-bottom: 1px solid var(--modern-border);
}

[data-theme="dark"] .modern-why {
    background: url('../../images/why-bg-dark.jpg') center/cover no-repeat fixed;
}

.modern-why::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(var(--modern-primary-rgb), 0.02);
    z-index: 1;
}

[data-theme="dark"] .modern-why::before {
    background: rgba(13, 15, 18, 0.85);
}

.modern-why .container {
    position: relative;
    z-index: 2;
}

.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-feature-card {
    background: var(--modern-bg);
    border: 1px solid var(--modern-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--modern-shadow);
}

[data-theme="dark"] .glass-feature-card {
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--modern-border);
    transition: .3s;
    height: 100%;
}

[data-theme="dark"] .glass-feature-card {
    background: linear-gradient(135deg, rgba(var(--modern-primary-rgb), 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(var(--modern-primary-rgb), 0.2);
}

.glass-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--modern-shadow-lg);
    background: var(--modern-bg);
}

[data-theme="dark"] .glass-feature-card:hover {
    background: linear-gradient(135deg, rgba(var(--modern-primary-rgb), 0.2), rgba(255, 255, 255, 0.1));
}

.glass-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(var(--modern-primary-rgb), 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--modern-primary-rgb), 0.2);
    transition: 0.3s;
}

.glass-feature-card:hover .glass-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(var(--modern-primary-rgb), 0.2), rgba(255, 255, 255, 0.1));
}

.glass-icon-wrapper img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* Make icons white */
}

.glass-feature-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--modern-dark);
    text-align: center;
}

[data-theme="dark"] .glass-feature-card h4 {
    color: #fff;
}

.glass-feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--modern-text-muted);
    margin: 0;
}

[data-theme="dark"] .glass-feature-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* ===============================
   ABOUT
================================ */
.about-text {
    max-width: 900px;
    margin: auto;
    opacity: .75;
    font-size: 17px;
    line-height: 1.8;
}

/* ===============================
   PARTNERS
================================ */
.partners-carousel img {
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .7;
    transition: .3s;
}

.partners-carousel img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 992px) {
    .navbar-nav {
        margin-left: 100px !important;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .content-side {
        padding: 40px 20px;
    }
}

@media (max-width: 576px) {

    .hero-dark {
        height: 70vh;
        padding-top: 100px;
    }

    .hero-dark img,
    .hero-dark video {
        height: 70vh;
    }

    .hero-content,
    .hero-overlay {
        display: none !important;
    }

    .card-image img {
        height: 220px;
    }
}




.slider-caption p {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    margin: 0;
    animation: slideFadeUp 1s ease forwards;
}

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

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

.hero-text h1 {
    color: #fff !important;
}