/* common */
body {
    background-image: url(images/bodybg.svg);
    background-size: cover;
    background-repeat: repeat-x;
    background-repeat: repeat-y;
    overflow-x: hidden;
    /* Hides horizontal overflow */
    margin: 0;
    /* Optional: Remove default margin */
    padding: 0;
    /* Optional: Remove default padding */
}

/* to hide any div using props called "showcase" */
.dnone {
    display: none;
}

.MainFont {
    /* font-family: "Righteous", sans-serif; */
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400;
    font-style: normal;
}

/* ======================================================================================= */

/* section 1 navbar */
.logo {
    height: 50px;
    width: 50px;
    background-color: white;
    margin: 0px 25px 0px 5px;
    border-radius: 10px;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.686);
}

.navbar-brand {
    text-wrap: wrap;
    font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
}

.navbar a {
    color: white !important;
}

/* Ensure dropdown menu items have white text */
.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.8);
}

.dropdown-menu .dropdown-item {
    color: white;
}

/* Change the hover effect color for better visibility */
.dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Light hover background */
    color: white;
    /* Keep text white on hover */
}


.nav-link:hover {
    font-size: larger;
}

/* ====================================================================================== */

/* section 2 */
.carousel img {
    height: 500px;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.785);
    /* White with 50% transparency */
}

/* ======================================================================================== */

/* section 3  Services */

.allbtn {
    /* background-color: #4C4D50; */
    background-color: rgb(202, 202, 202);
    /* color: black;
    outline: solid 3px black; */
    width: 250px;
    font-weight: bolder;
    font-family: 'Times New Roman', Times, serif;
    font-size: larger;
    margin-top: 30px;

}


.allbtn:hover {
    color: white;
    background-color: #4C4D50;
}

.Homepage .ServicesContainer {
    margin: 10px 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
}

.Homepage .partition {
    margin: 10px 10px;
    height: 350px;
    width: 350px;
    cursor: pointer;
    /* outline: red solid 3px; */
}


.Homepage .sertitle {
    margin-top: 5px;
    font-family: 'Times New Roman', Times, serif;
}

.Homepage .imagecont {
    position: relative;
    overflow: hidden;
    height: 75%;
}

.Homepage .partition img {
    height: 100%;
    width: 100%;
}

.Homepage .imagecont img {
    transition: transform 0.8s ease;
    /* Smooth transition for the scaling */
}

.Homepage .imagecont:hover img {
    transform: scale(1.1);
    /* Scale the image to 1.2 times its size on hover */
}

.Homepage .outbord {
    position: absolute;
    /* Position the overlay absolutely */
    top: 10%;
    /* Adjust top to center the border */
    left: 10%;
    /* Adjust left to center the border */
    width: 80%;
    /* Cover 80% width of the container */
    height: 80%;
    /* Cover 80% height of the container */
    outline: white solid 1px;
    /* Border style */
    opacity: 0;
    /* Initially hidden */
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.498);
    color: white;

    transition: opacity 0.3s ease, transform 0.8s ease-out;
    /* Smooth transitions */
    transform: translateX(-20px);
    /* Initial position slightly off to the left */
}

.Homepage .imagecont:hover .outbord {
    opacity: 1;
    /* Show the border on hover */
    transform: translateX(0);
    /* Move to the center on hover */
}

/* ============================================================================================== */

/* Section 5: Partners */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.client-logos img {
    max-width: 100px;
    /* Adjust size as necessary */
    margin: 10px;
    opacity: 0.7;
    /* Slight transparency for a modern look */
    transition: opacity 0.3s ease;
}

.client-logos img:hover {
    opacity: 1;
    /* Highlight on hover */
}

/* ============================================================================================= */

/* Section 6: Contact */


.map {
    border: #202C36 solid 1px;
}

.map iframe {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0px 0px;
}


.ContactLinks .card {
    /* From https://css.glass */
    background: #090a10c3;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(0.7px);
    -webkit-backdrop-filter: blur(0.7px);
    border: 1px solid rgba(150, 125, 179, 0.41);

    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 5px 10px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    list-style: none;

    a {
        text-decoration: none;
        color: white;
    }

    i {
        font-size: 30px;
        margin-right: 20px;
    }
}

.ContactLinks .card:hover {
    /* font-size: larger; */
    transform: translateY(-5px);
    /* Lift the card on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    /* Deeper shadow */
    background-color: rgb(191, 98, 75);
    color: white;
}

/* ============================================================================================== */


/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Footer Styles */
.footer {
    min-height: 350px;
    max-height: fit-content;
    background-color: #202C36;
    color: #fff;
    padding: 10px 20px 40px 20px;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    margin: 0 10px;
    min-width: 250px;
    /* Ensures columns don't shrink too much */
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: yellow;
    font-size: larger;
}

.footer-brand {
    margin-bottom: 20px;
}

.brand-logo {
    width: 150px;
    border-radius: 10px;
    /* Adjust size as needed */
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-contact a {
    font-size: 30px;
}

.contact-icon img {
    width: 30px;
    /* Adjust size as needed */
    transition: opacity 0.3s;
}

.contact-icon img:hover {
    opacity: 0.8;
    /* Slight transparency on hover */
}


.footercards .card {
    background-color: rgb(91, 93, 93);
    border: 1px solid #dee2e6;
    /* Light border */
    border-radius: 8px;
    /* Rounded corners */
    padding: 15px;
    width: 100%;
    max-width: 350px;
    /* Adjust as needed */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    transition: transform 0.3s, box-shadow 0.3s;
    list-style: none;
    /* Remove default list styling */
}

.footercards .card:hover {
    transform: translateY(-5px);
    /* Lift the card on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    /* Deeper shadow */
    background-color: rgb(191, 98, 75);
}

.card-link {
    text-decoration: none;
    color: white;
}

.footercards {
    width: 100%;
    height: 250px;
}

.footercards::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar */
}

.card-content {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Space between image and text */
}

.card-image {
    width: 80px;
    /* Adjust size as needed */
    height: 80px;
    /* Adjust size as needed */
    border-radius: 8px;
    /* Rounded corners for the image */
    object-fit: cover;
    /* Ensure the image covers the area */
}

.card-text {
    margin: 0;
    font-size: 16px;
}

.footer-contact a:hover {
    transition: all 0.1s;
    transform: translate(5px, -10px);
}


/* footer clients logos */

.footer-container {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.footer-client-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Space between images */
    max-width: 500px;
    /* Adjust to fit between other divs */
}

.footer-client-logos img {
    width: 80px;
    /* Very small width */
    height: 80px;
    object-fit: contain;
    /* Ensure images maintain aspect ratio */
    opacity: 0.8;
    /* Optional: adjust opacity for a faded effect */
    transition: opacity 0.3s ease;
    border-radius: 50%;
    background-color: white;

}

.footer-client-logos img:hover {
    opacity: 1;
    /* Full opacity on hover */
}


/* ============================================================================== */

/* Section 8 : Copy right */

.copyright {
    background-color: black;
    color: white;
    font-family: 'Times New Roman', Times, serif;
    padding: 0px 10px;
    min-height: 50px;
    max-height: fit-content;
}


/* =================================================== */

/* AllservicesPage styles */

@keyframes premiumFlicker {

    0%,
    100% {
        border: 4px solid #1e90ff;
        /* Vivid blue color */
        box-shadow: 0 0 8px rgba(30, 144, 255, 0.8);
        /* Glowing effect */
    }

    25% {
        border: 4px solid transparent;
        /* Invisible */
        box-shadow: 0 0 0 rgba(30, 144, 255, 0);
        /* No glow */
    }

    50% {
        border: 4px solid #1e90ff;
        /* Vivid blue color */
        box-shadow: 0 0 8px rgba(30, 144, 255, 0.8);
        /* Glowing effect */
    }

    75% {
        border: 4px solid transparent;
        /* Invisible */
        box-shadow: 0 0 0 rgba(30, 144, 255, 0);
        /* No glow */
    }
}

.vivid-animation {
    animation: premiumFlicker 1s infinite;
    /* Adjust duration and iteration as needed */
}





.AllservicesPage {
    padding: 20px;
}

.AllservicesPage .ServicesContainer {
    margin-top: 100px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.AllservicesPage .partition {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    /* max-width: 100%; */
    /* max-height: fit-content; */
    /* Set a max-width for large screens */
    /* box-sizing: border-box; */
    position: relative;
    padding-bottom: 20px;


    border: 2px solid #b8b8b8;
    border-radius: 80px 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.AllservicesPage .imagecont {
    /* position: relative; */
    width: 100%;
    text-align: center;
    padding: 20px 20px;

}

.AllservicesPage .imagecont img {
    border-radius: 50px;
    width: 300px;
    height: 300px;
}

.AllservicesPage .sertitle {
    font-size: 1.5em;
    margin: 10px 0 0 10px;
    width: 50%;
    color: #003366;
    text-decoration: underline;
    text-underline-offset: 5px;
    font-weight:bold;
}

.AllservicesPage .description {
    width: 100%;
    padding: 10px 20px;
    margin: 0px 0;
    text-wrap: wrap;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    text-align: left;
    float: left;
    /* position: relative; */
    /* outline: red solid 2px; */
}

@media (min-width: 768px) {
    .AllservicesPage .partition {
        flex-direction: row-reverse;
        max-width: 1000px;
        height: auto;
        justify-content: space-between;
        /* Ensure height adjusts based on content */
    }

    .AllservicesPage .imagecont {
        flex: 1;
        max-width: 350px;
    }

    .AllservicesPage .imagecont img {
        width: 300px;
        height: 300px;
    }

    .AllservicesPage .sertitle {
        position: absolute;
        top: 20px;
        left: 20px;
        flex: 1;
        margin-left: 20px;
    }

    .AllservicesPage .description {
        width: 100%;
        margin-left: 20px;
        margin-top: 80px;
    }


}

@media (max-width: 767px) {
    .AllservicesPage .partition {
        flex-direction: column;
        /* height: fit-content; */
        height: auto;
        /* Ensure height adjusts based on content */
    }

    .AllservicesPage .imagecont img {
        width: 90%;
        height: 250px;
    }

    .AllservicesPage .description {
        width: 100%;
        margin-left: 20px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* ================================================================= */

.AllProjects {
    /* margin-left: 50px; */
    /* margin-right: 50px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    /* outline: solid red 2px; */
}

.marginspec {
    margin-top: 100px;
}

.AllProjects .projectContainer {
    width: 85%;
    min-height: 400px;
    /* outline: solid red 2px; */

    border-bottom: 3px solid #202C36;
    /* padding: 10px; */
    box-shadow: 0 9px 20px #202C36;
    margin: 20px 0px;

}

.AllProjects .procardcontect {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

@media (max-width: 767px) {
    .AllProjects .procardcontect {
        flex-direction: column;
    }
}

.AllProjects .PROdescription {
    position: relative;
    /* Make the container relative for absolute positioning of children */
    margin-top: 30px;
    margin-left: 20px;
    margin-right: 10px;
    width: 90%;
    font-family: 'Times New Roman', Times, serif;
    /* padding: 20px; */
    overflow: hidden;
    text-align: start;
}

.AllProjects .PROdescription ul {
    /* font-size: 24px; */
    font-size: 3vb;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.AllProjects .PROdescription img {
    display: block;
    /* Ensure image behaves as a block element */
    margin: 0 auto;
    opacity: 30%;
    /* Set opacity for the image */
    position: absolute;
    /* Position absolutely within the container */
    top: 50%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    /* Adjust for exact center */
    z-index: 1;
    /* Ensure image is below text */
    width: 100%;
    height: 100%;
}

.AllProjects .card-body {
    position: relative;
    /* Position text content relative to the container */
    z-index: 2;
    /* Ensure text is above the image */
    color: #000;
    /* Text color */
    background-color: rgba(255, 255, 255, 0.5);
    /* Optional: semi-transparent background for readability */
    font-size: 10px18px;
    /* Font size relative to viewport width */
    padding: 10px;
    /* Adjust padding as needed */
    text-align: start;
}



.card-title {
    margin-left: 30px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bolder;
    text-decoration: underline;
    text-underline-offset: 5px;
    color:#003366;
}

.inline-gallery-container {
    width: 100%;
    height: 60%;
    height: 0;
    padding-bottom: 65%;
}

/* projects gallery */
.AllProjects .thumbnail-images img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.AllProjects .thumbnail-images img:hover {
    opacity: 0.7;
}

.AllProjects .large-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 15px;
}

.AllProjects .thumbnail-images {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.AllProjects .thumbnail-images img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    border: 2px solid transparent;
}

.AllProjects .thumbnail-images img.active {
    border-color: #007bff;
}

.AllProjects #mainImage {
    padding: 0px 0px;
    width: 500px;
    height: 300px;
}

/* ====================================================================== */


/* About section */
.about-us {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 70px;
}

.about-us section {
    margin-bottom: 40px;
}

.about-us h2 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 15px;
    border-bottom: 2px solid #003366;
    padding-bottom: 5px;
}

.about-us p {
    font-size: 18px;
    color: #555;
}

.about-us ul {
    list-style-type: none;
    padding: 0;
}

.about-us ul li {
    font-size: 18px;
    background-color: #003366;
    color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-us ul li:not(:last-child) {
    margin-bottom: 10px;
}

.about-us ul li:hover {
    background-color: #0055a5;
    transition: background-color 0.3s ease;
}

/* ========================================================= */
/* Branches */
.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
    /* Adjust as needed */
}

.map-container {
    position: relative;
    width: 80%;
    /* Adjust width as needed */
    margin: 0 auto;
    /* Center horizontally */
    text-align: center;
    /* Center text within the container */
}

.map-image {
    width: 100%;
    min-height: auto;
    /* Maintain aspect ratio */
    max-height: 400px;
    border: solid #000 2px;
    border-radius: 50px;
}

.location {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 20px;
    /* Adjust icon size */
    color: #bd0000;
    transition: transform 0.3s ease, color 0.3s ease;
}

.location .iconStyle {
    font-size: 2.5vb;
}

.location:hover .iconStyle {
    transform: scale(1.2);
    color: #0000bd;
}

.location .county {
    font-family: Arial, Helvetica, sans-serif;
    display: block;
    font-size: 1.5vb;
    /* Adjust text size */
    color: #000;
    /* Text color */
    margin-top: 0.5rem;
    /* Space between icon and text */
}


/* Adjust positions for different locations */
.egypt {
    top: 48%;
    /* Adjust position as needed */
    left: 34%;
    /* Adjust position as needed */
}

.saudi-arabia {
    top: 48%;
    /* Adjust position as needed */
    left: 41%;
    /* Adjust position as needed */
}

.emirates {
    top: 53%;
    /* Adjust position as needed */
    left: 52%;
    /* Adjust position as needed */
}

.kuwait {
    top: 42%;
    /* Adjust position as needed */
    left: 47%;
    /* Adjust position as needed */
}