* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'roboto', sans-serif !important;
    overflow-x: hidden;
}



.navbar-dark .navbar-nav .nav-link {
    color: white !important;
    font-family: 'roboto', sans-serif;
    font-weight: 700;
    font-size: 15px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    border-bottom: 1px solid rgba(238, 87, 35, 0.8);
}


.parent {
    display: grid;
    gap: 8px;
}

.img1 {
    grid-row: span 5 / span 5;
      overflow: hidden; 
}

.img2 {
    grid-row: span 3 / span 3;
      overflow: hidden; 
}

.img3 {
    grid-row: span 2 / span 2;
    grid-column-start: 2;
    grid-row-start: 4;
      overflow: hidden; 
}

.img4 {
    grid-row: span 5 / span 5;
    grid-column-start: 3;
    grid-row-start: 1;
      overflow: hidden; 
}

.img5 {
    grid-row: span 2 / span 2;
    grid-column-start: 4;
    grid-row-start: 1;
      overflow: hidden; 
}

.img6 {
    grid-row: span 3 / span 3;
    grid-column-start: 4;
    grid-row-start: 3;
      overflow: hidden; 
}

.location-container {
    max-width: 900px;

    display: grid;
    gap: 0px 0px;
    grid-template-areas:
        "google_maps company_info ."
        ". . ."
        ". . .";
    margin-top: 40px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.google_maps {
    grid-area: google_maps;
}

.company_info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1.6fr 0.4fr;
    gap: 0px 0px;
    grid-template-areas:
        "serena_desc serena_desc serena_desc"
        "serena_desc serena_desc serena_desc"
        ". . see_more";
    grid-area: company_info;
}

.see_more {
    grid-area: see_more;
    display: flex;
    color: white;
    background-color: #ee5723;
    text-align: center;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.see_more a {
    color: white;
    text-decoration: none;
    padding: 10px;
    font-size: large;
    font-weight: bold;
}

.serena_desc {
    grid-area: serena_desc;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: start;
    padding: 40px;
    font-size: larger;
    font-weight: bold;
}

#about-us {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F4F4F4;

}

.about-us .about-us-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 800px;
    position: relative;
    max-width: 1500px;
}

.about-us .about-us-container .a_propos {
    text-align: center;
    color: #292c2e;
}

.a_propos h2 {
    font-size: 2.5rem;
    font-family: 'roboto', sans-serif;
    font-weight: bold;
}

.about-us .about-us-container .a_propos p {
    font-size: 20px;
    padding: 20px;
    text-align: left;
    max-width: 800px;
    font-family: 'roboto', sans-serif;
}

.about-us .about-us-container .a_propos button {
    position: absolute;
    background-color: #ee5723;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    top: 75%;
    left: 48%;
    border-radius: 10px;
    /* transform: translate(-50%, -50%); */
}

.about-us .about-us-container .about-us-image {
    position: relative;
    background: linear-gradient(135deg, #F4F4F4, #f5f5f5);
    padding: 0;
    overflow: hidden;
}

.about-us .about-us-container .about-us-image img {
    height: auto;
    display: block;
    /* fade edges */
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-size: cover;
    opacity: 0.75;
    border-radius: 1%;

}

.about-us .about-us-container .a_propos button a {
    color: white;
    text-decoration: none;
}



.about-us-design {
    display: flex;
    flex-direction: row;
    gap: 50px;
}

.about-us-design div {
    background-color: rgba(238, 87, 35, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    gap: 10px;
    width: 250px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.about-us-design p {
    font-family: 'roboto', sans-serif;
    font-size: 18px;
    padding: 20px;
}

.about-us-design h4 {
    font-family: 'roboto', sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.about-us-design a svg {
    color: white;
    width: 50px;
    height: auto;
}

.about-us-design a {
    margin-top: 20px;
    border: solid white 1px;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.about-us .container h1 {
    color: #292c2e;
    text-align: center;
    text-justify: distribute-all-lines;
    font-size: 55px;
    font-family: 'roboto', sans-serif;
}

/* .contact-section {
    background-color: rgb(14, 79, 113, 0.2);
} */

/* .contact-section .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 700px;
}

.contact-section .contact-form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-section .container .section-title h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 40px;
    padding: 20px;
    text-align: center;
    color: #292c2e;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    height: 56px;
    padding: 0 23px;
    font-size: 14px;
    color: #3a3a3a;
    border: none;
    margin-bottom: 28px;
    background: #fff;
}

.contact-form textarea {
    height: 100px;
}

.site-btn.sb-big {
    font-weight: 700;
    font-family: "roboto", sans-serif;
    padding: 21px 48px;
}

.contact-form .site-btn {
    min-width: 335px;

}

.contact-form {
    text-align: center;

}

.site-btn {
    display: inline-block;
    border: none;
    padding: 21px 44px;
    min-width: 156px;
    font-size: 16px;
    background: #ee5723;
    color: #fff;
    line-height: normal;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
} */

/* --- Base Contact Section Styling (Dark Background) --- */
.contact-section {
    background: rgb(14, 79, 113, 0.2);
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: #fff;
    font-family: Arial, sans-serif;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    border-radius: 5px;
    overflow: hidden; 
    background-color: rgba(0, 0, 0, 0.5); 
}

.contact-info-panel {
    flex: 1;
    padding: 60px;
    background-color: rgb(14, 79, 113, 0.2); 
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider */
}

.contact-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: 2px;
    color: #ee5723;
}

.info-group {
    margin-bottom: 30px;
}

.info-heading {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ccc;
}

.info-content {
    font-size: 1em;
    line-height: 1.6;
    color: #fff;
    margin: 0;
}

.info-content a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.info-content a:hover {
    color: #f7a833;
}

.contact-form-panel {
    flex: 1;
    padding: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    margin-bottom: 15px;
    gap: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.half-width {
    flex: 1;
}

.full-width {
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    color: #fff;
    font-size: 1em;
    transition: border-bottom 0.3s;
}

.form-control:focus {
    border-bottom: 1px solid #f7a833;
    outline: none;
}


.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-label {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}


.submit-btn-container {
    margin-top: 30px;
    text-align: center;
}

.submit-btn {
    background-color: #ee5723;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s, opacity 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #ee5624c9;
}


@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 40px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .form-row {
        flex-direction: column; 
        gap: 0;
    }

    .half-width {
        width: 100%;
    }
}

footer {
    background-color: #1F2224;
    padding-top: 50px;
}

footer .copyright_text {
    color: #797979;
    text-align: center;
    margin-top: 0;
}

footer .vertical-line {
    border-left: 2px solid rgb(255, 255, 255);
    height: 150px;
    margin-top: 10px;
}

footer .footer-builtek-info {
    display: flex;
    gap: 150px;
    align-items: center;
}

footer .services-contact {
    display: flex;
    justify-content: center;
    gap: 50px;
    color: white;
}

footer .services-contact ul>li {
    list-style-type: none;
}

footer div.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-message {
    margin: 30px 10px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
    transition: all 0.3s ease;
    max-width: 600px;
    text-align: left;
    position: relative;
    padding-left: 45px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.form-message::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.form-message.success {
    margin-bottom: 36px !important;
    color: #0a7c3e;
    background-color: #e8f7f0;
    border-left: 4px solid #0a7c3e;
}

.form-message.success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a7c3e'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}

.form-message.error {
    margin-bottom: 36px !important;
    color: #d63031;
    background-color: #fee8e8;
    border-left: 4px solid #d63031;
}

.form-message.error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d63031'%3E%3Cpath d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z'/%3E%3C/svg%3E");
}

#serena_garden a {
    border: 1px solid white;
    /* color: white; */
    font-size: 10px;
    color: #292c2e;
    padding: 2px;
    margin-left: 2px;
}

#back-btn {
    position: absolute;
    background-color: #ee5723;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
}

#serena-garden-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 4%;
}

#carouselExampleIndicators {
    position: relative;
}

.image-overlay-container {
    position: relative;
}

.image-overlay-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* .carousel-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem 3rem;
    border-radius: 10px;
} */

/* .carousel-overlay h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.carousel-overlay p {
    font-size: 1.2rem;
    margin: 0.5rem 0 1rem 0;
} */

#voirPlusBtn {
    background-color: #ee5723;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

#voirPlusBtn a {
    color: white;
    text-decoration: none;
}

#voirPlusBtn:hover {
    background-color: #c0392b;
}

#projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 2%;
}

#projects .serena-info {
    display: flex;
    gap: 30px;
    flex-direction: row;
    margin-top: 40px;
    margin-bottom: 40px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #292c2e;
    justify-content: center;
    text-align: justify;
}

.project-section {
    padding: 80px 0;
    background: #F4F4F4;
    font-family: "roboto", sans-serif;
    color: #292c2e;
}

.project-title {
    text-align: center;
    font-size: 2.5rem;
    color: #292c2e;
    font-weight: 700;
    margin-top: 30px;
    position: relative;
}

.project-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #ee5723;
    margin: 10px auto 0;
    border-radius: 2px;
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 30px;
}

.map-container iframe {
    border-radius: 12px;
    height: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.serena-info {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.info-block {
    margin-bottom: 25px;
}

.project-info {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #292c2e;
}

.project-info svg {
    margin-right: 8px;
}

#projects .projects-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 100px auto;
    padding: 0 100px;
}

#projects .projects-container img {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.info-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-block ul {
    padding-left: 20px;
    list-style-type: disc;
    color: #292c2e;
    font-size: 0.95rem;
}

.info-value {
    display: inline-block;
    background: #ee5723;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}



@media (max-width: 767px) {
    nav ul.navbar-nav {
        display: block;
    }

    .image-overlay-container img {
        height: 500px;
        width: auto;
    }

    /* .carousel-overlay {
        top: 65%;
        padding: 1.5rem 2rem;
        width: 300px;
        height: 288px;
    }

    .carousel-overlay h1 {
        font-size: 1.8rem;
    } */

    .about-us .about-us-container .a_propos button {
        top: 85%;
        left: 45%;
    }

    .about-us .about-us-container .about-us-image {
        display: none;
    }

    .about-us-design {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto;
    }

    .about-us {
        width: 100%;
        height: auto;
    }

    .location-container {
        display: inline-block;
    }

    .about-us .about-us-container {
        padding: 10px;
    }

    #serena-garden-content {
        padding: 10px;
        flex-direction: column;
        align-items: center;
        width: 400px;
    }

    #serena-garden-content .more_info {
        padding: 10px;
        flex-direction: column;
        align-items: center;
        width: 400px;
    }

    .parent {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 350px;
    }

    .parent .img1 img,
    .parent .img2 img,
    .parent .img3 img,
    .parent .img4 img,
    .parent .img5 img,
    .parent .img6 img {
        grid-column-start: auto;
        grid-row-start: auto;
        grid-row: auto;
        object-fit: cover;
        object-position: center;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    footer .footer-builtek-info {
        display: flex;
        flex-direction: column;
    }

    footer .footer-logo,
    div.vertical-line {
        display: none;
    }

    div.services-contact {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* .contact-section .container {
        height: auto;
    } */

    .navbar-light .navbar-toggler {
        color: rgba(14, 79, 113, 1);
        border-color: rgba(238, 87, 35, 1);
    }

    .builtek-persons{
        flex-direction: column;
        gap: 2px;
    }

    .horizonta-bar{
        display: none;
    }
}

/* Modal gallery styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal.open {
    display: flex;
}
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}
.modal-content-wrapper {
    position: relative;
    z-index: 2100;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-gallery {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    /* Thin scrollbar styles */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255,255,255,0.3) transparent; /* Firefox */

}
/* Webkit (Chrome, Safari, Edge) scrollbar styles */
.modal-gallery::-webkit-scrollbar {
    height: 6px; /* Thin horizontal scrollbar */
}
.modal-gallery::-webkit-scrollbar-track {
    background: transparent;
}
.modal-gallery::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
    border-radius: 3px;
}
.modal-gallery::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255,255,255,0.5);
}
.modal-gallery img {
    height: 100%;
    width: auto;
    max-width: none;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    display: inline-block;
}
.modal-close,
.modal-prev,
.modal-next {
    position: absolute;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 28px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 2200;
}
.modal-close { top: 12px; right: 12px; }
.modal-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.modal-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Hide prev/next on very small screens and let user swipe/scroll */
@media (max-width: 480px) {
    .modal-prev, .modal-next { display: none; }
    .modal-gallery img { height: 70vh; }
}