:root {
    --dark-blue: #000a53;
    --dark-orange: #d94307;
}

body {
    font-family: 'Almarai', sans-serif;
    font-size: calc(14px + 0.3vw);
}

/* Prevent horizontal overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* RTL Layout Containment */
[dir="rtl"] .container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Mobile Viewport */
@media (max-width: 768px) {
    .row {
        margin-right: 0;
        margin-left: 0;
    }

    .col-md-4, .col-lg-6 {
        padding-right: 15px;
        padding-left: 15px;
    }
}


[dir="rtl"] .service-card {
    text-align: right;
}

[dir="rtl"] .contact-info i {
    margin-left: 10px;
    margin-right: 0;
}

/* Whatsapp button  */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: white;
    font-size: 28px;
    border: 2px solid var(--dark-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s ease;
    animation: jump-pulse 1.5s infinite;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #1ebe5d;
    box-shadow: 0 0 15px var(--dark-orange);
}

/* Jump + Pulse animation */
@keyframes jump-pulse {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-8px); }
    50%  { transform: translateY(0); }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}


/* Navbar */
.navbar {
    transition: all 0.2s ease-in-out;
    background: #000000;
}

.navbar nav {
    padding-right: 0;
}

.nav-link {
    position: relative;
    margin: 0 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--dark-orange);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* For all h2 headings */
h2 {
    border-bottom: 2px solid var(--dark-orange);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    /* dark overlay */
    z-index: 2;
}

.hero-slider .container {
    position: relative;
    z-index: 3;
}

/* Slideshow Backgrounds */
.bg-fader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

.bg-fader.active {
    opacity: 1;
}


.hero-title {
    border-bottom: 3px solid var(--dark-orange);
    display: inline-block;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: auto;
        padding: 100px 0;
    }

    .slide-bg {
        height: auto;
        padding: 100px 0;
    }

    .navbar-collapse {
        background: var(--dark-blue);
        padding: 15px;
        margin-top: 10px;
    }
}

/* About section  */
.signature-img {
    border: 3px solid var(--dark-orange);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 150px;
    transition: transform 0.3s ease;
}

.signature-img:hover {
    transform: scale(1.05);
}




/* Cards */
.service-card {
    transition: all 0.3s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 10px 15px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-card .card-icon {
    background: var(--dark-blue);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.service-card:hover .card-icon {
    background: var(--dark-orange);
}

/* Bus Gallery styling */
#bus-gallery {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url('./images/gallery/gallery-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    padding: 80px 0;
    z-index: 1;
}

#bus-gallery h2 {
    color: #fff;
    /* white title */
}

.gallery-title {
    color: #fff;
}


.gallery-card {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 230px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}


/* Client Section  */
/*.client-logo img {*/
/*    max-height: 80px;*/
/*    opacity: 0.8;*/
/*    transition: transform 0.3s, opacity 0.3s;*/
/*    filter: grayscale(100%);*/
/*}*/

/*.client-logo img:hover {*/
/*    transform: scale(1.05);*/
/*    opacity: 1;*/
/*    filter: grayscale(0%);*/
/*}*/


/* Orange Accents */
.btn-orange {
    background: var(--dark-orange);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-orange:hover {
    background: #b43507;
    color: white;
    transform: translateY(-3px);
}

.text-orange {
    color: var(--dark-orange);
}

.bg-orange {
    background: var(--dark-orange);
}

/* Section Padding */
section {
    padding: 80px 0;
}