:root {
    --primary: rgb(16, 185, 129);
    --secondary: #64748B;
    --light: #f8f9fa;
    --orange: #ffa500;
    --dark: #212529;
    --transition: .1s ease;
    --boxShadow: rgba(100, 116, 139, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--secondary);
}

[dir="rtl"] body {
    font-family: "Tajawal", sans-serif;
    text-align: right;
}

.card {
    color: inherit
}

/* ====================  NavBar Styles =========================*/
header {
    background-color: var(--light) !important;
    box-shadow: 0px 2px 3px 2px var(--secondary);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--light);

}

.navbar-brand img {
    height: 70px;
}

/*language switch button EN / FR */
.language-switcher .form-select {
    display: flex;
    justify-content: center;
    align-items: center;
    --bs-form-select-bg-img: url("");
    width: 45px;
    height: 35px;
    text-align: center;
    padding: 0 0 2px 0;
    margin-left: 20px;
    color: var(--primary);
    border: 1px solid var(--primary);
}

[dir="rtl"] .language-switcher .form-select {
    margin-right: 20px
}

.language-switcher .form-select:hover {
    cursor: pointer;
    background-color: var(--secondary) !important;
    color: var(--orange);
    border: none;
    outline: none;
    font-weight: bolder;
}

.form-select:focus {
    border-radius: none;
    box-shadow: none;
    outline: none;
}


@media(max-width: 991.98px) {
    .language-switcher {
        order: 2
    }
    .navbar-toggler {
        order:3
    }
}

.navbar {
    --bs-navbar-padding-y:0px
}

.nav-link {
    font-weight: 500;
    margin-right:10px;
    color: var(--secondary) !important;
}

.nav-link:hover {
    border-bottom: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    padding-top: 3px
} 

.nav-link.active {
    color: var(--light) !important;
    font-weight: 600;
    background-color: var(--orange);
    font-weight: bolder;
    border-radius: 10px;
    border: none
    
}


/* ==============   MAIN SECTION  ( Home PAGE  ====================*/

/* Hero Section */
.hero-section {
    background-color: var(--primary);
    color: var(--light);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
}

/* header of each Section */

.section-header {
    position: relative;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-divider {
    width: 90px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background-color: var(--light);
}

.about-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}


/* Contact Section */
.contact-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 20px var(--boxShadow);
}

.contact-card .form-control:focus,
.contact-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.contact-info {
    background: var(--primary);
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--boxShadow);
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon .fas {
    color: var(--light);
    width: 30px;
    height: 30px;
    text-align: center;
}

[dir="rtl"] .contact-icon {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}


/* Cards for NOS REALISATIONS*/
.card {
    border: none;
    transition: var(--transition);
    height: 100%;
    position: relative; /* Needed for pseudo-element positioning */
    overflow: hidden;
}

/* Creates the folded corner effect at the top of the cards */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50px; 
    height: 50px;
    background: var(--orange); 
    clip-path: circle(50px at 0 0); 
    z-index: 1; 
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--boxShadow);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .about-section .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* styling of all Buttons */
.btn-success {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.5rem 1.5rem;
}

.btn-success:hover {
    background-color: var(--orange);
    border:none;
    color: var(--light);
    font-weight: bolder;

}

.btn-outline-success {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-success:hover {
    background-color: var(--orange);
    color: var(--light);
    border: none;
    transition: var(--transition)
}

.text-success {
    color: var(--primary) !important
}

.text-bg-success, .bg-success {
    background-color: var(--primary) !important;
}



/* Services Cards  */
.service-card .icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute; 
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    background: var(--light);
    border-radius: 50%;
    box-shadow: 0 3px 10px var(--boxShadow);
    transition: all 0.3s ease;
}

.service-card .icon-box i {
    color: var(--primary);
}

.service-card:hover .icon-box {
    transform: scale(0.8);
    box-shadow: 0 5px 15px var(--boxShadow);
    background-color: var(--orange);
}

.service-card {
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    margin-bottom: 30px;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--boxShadow);
}

.service-card .card-img-top {
    height: 180px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.service-card .card-img-top img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}


.service-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-card .card-body {
    text-align: center;
    z-index: 15;
    position: relative;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--secondary) !important;
    margin-bottom: 0;
}

@media (max-width: 1199.98px) {
    .service-card .icon-box {
        top: -45px;
    }
    }
    @media (max-width: 991.98px) {
    .service-card .card-img-top {
        height: 160px;
        margin-bottom: 0;
    }

    .service-card .icon-box {
        width: 60px;
        height: 60px;
        top: -34px;

    }
}

@media (max-width: 767.98px) {
    .service-card {
        margin-bottom: 25px;
    }

    .service-card .card-img-top {
        height: 150px;
    }

    .service-card .icon-box {
        width: 55px;
        height: 55px;
        bottom: -30px ;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .service-card .card-img-top {
        height: 140px;
    }

    .service-card .icon-box {
        width: 50px; 
        height: 50px;
        top: -27px ;
        
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .service-card p {
        font-size: 0.85rem;
    }
}
@media (max-width: 400px) {
    .service-card .card-img-top {
        height: 130px;
    }
}
/*##############################################################################*/

/* Footer */
footer {
    background: var(--primary);
    color: var(--light);
}

.footer-top {
    background: rgba(0, 0, 0, 0.2);
}

.footer-link {
    text-decoration: none;
    color: var(--light);
    transition: var(--transition);
    padding: 5px 0;
    display: inline-block;
}

.footer-link:hover {
    color: var(--light);
    transform: translateX(5px);
}

.social-icons a {
    color: var(--light);
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--light);
    color: var(--primary);
    transform: translateY(-5px);
}

.fas {
    color: var(--orange)
}

.footer-bottom {
    background: var(--orange);
}


/* ===========  Project Details Page ====================*/

.project-details .project-image {
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.project-details .features-list {
    columns: 2;
}

@media (max-width: 768px) {
    .project-details .features-list {
        columns: 1;
    }
}




