html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
}


main {
}

header {
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
}


/* Universal container for full width */
.container-full {
    width: 100%;
    margin: 0 auto;
}

.container-margin {
    margin: 0 auto;
    padding: 0 6%;
}

/* Top bar styles */
.top-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 6%;
    background-color: transparent;
    box-sizing: border-box;
    overflow: hidden;
    transition: background-color 0.3s;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 35%;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 0;
    transform: skewX(-20deg);
    transform-origin: top left;
}

.top-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: #ffffff00;
    z-index: -1;
}

.top-bar .logo img {
    max-height: 49px;
}

.top-bar .contact-info {
    text-align: left;
    display: flex;
}

.top-bar .contact-info-item {
    margin-right: 60px;
    position: relative;
    padding-right: 35px; /* Add some padding to the right */

}

.contact-info-item:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 37px;
    text-shadow: 1px 1px 4px rgb(0 0 0 / 18%);
}

.top-bar .contact-info p {
    margin: 0;
    line-height: 22px;
}

/* Navbar styles */
.navbar {
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    max-width: 100vw;
    width: 65%;
    padding: 5px 0;
    margin: 0;
}
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-evenly;
    color: white;
}

.navbar ul li {
    margin: 0 38px;
    text-transform: uppercase;
    font-weight: 900;
    position: relative;
}

.navbar ul li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -58px;
    top: 45%;
    transform: translateY(-50%);
    color: #ffffff14;
    font-size: 21px;
    font-weight: 100;
    text-shadow: 1px 1px 1px rgb(255 255 255 / 46%);
}

.navbar ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 2px 7px;
    display: block;
    font-weight: 300;
    position: relative;
    transition: all 0.5s ease-in-out;
}

.navbar ul li.active a {
    font-weight: 500;
    border-bottom: 2px solid #ffffff;
    border-top: 2px solid #ffffff;
}


.navbar ul li a::before,
.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #202020;
    left: 0;
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

.navbar ul li a::before {
    top: 0;
}

.navbar ul li a::after {
    bottom: 0;
}

.navbar ul li a:hover::before,
.navbar ul li a:hover::after {
    opacity: 1;
}

.navbar ul li a:hover {
    font-weight: 500;
}

/* hero background part*/
.full-width-background {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 0;
    overflow: hidden;
    margin-top: 0;
    background-image: url('../asset/img/background.png');
    background-size: cover;
    background-position: center;
}

.full-width-background .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../asset/img/bg.jpg');
    background-size: cover;
    background-position: center 59%;
    filter: brightness(50%);
    z-index: 0;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.arrow-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.arrow-button {
    background-color: transparent;
    color: black;
    border: black 2px solid;
    padding: 14px 20px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
    display: flex;
    font-size: 21px;
    transition: background-color 0.3s ease;
    align-content: center;
    align-items: stretch;
    border-radius: 7px;
}

.arrow-button:hover {
    background-color: #555;
}

.page-counter {
    margin-top: 44px;
    margin-left: 3px;
    font-size: 1.3rem;
    font-weight: 100;
    line-height: 26px;
    letter-spacing: 0.6em;
    color: #04202f;
    animation: fadeInUp 1.5s ease-in-out forwards;
    animation-delay: 4.6s;
    opacity: 0;
}

.hero-right {
    position: relative;
    width: 76%;
    height: 600px;
    border-radius: 30px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
    background: white;
}

.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-right .text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
    /* width: 250px; */
    text-transform: uppercase;
}

.hero-right .text-overlay .project-text {
    font-size: 1.9rem;
    font-weight: bold;
    text-align: left;
}

.hero-right .text-overlay .project-name-text {
    font-size: 4.5rem;
    font-weight: bold;
    text-align: center;
    line-height: 4.3rem;
}

.hero-right .text-overlay .project-type-text {
    font-size: 1.5rem;
    font-weight: normal;
    text-align: right;
}

.view-project-button {
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: transparent;
    color: #ffffff;
    border: 5px solid;
    border-left: none;
    border-bottom: 0;
    padding: 21px 33px;
    font-weight: 900;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.3rem;
    text-transform: uppercase;
    border-top-right-radius: 18px;
}

.view-project-button:hover {
    background-color: #555;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


.project-title h1 {
    text-transform: uppercase;
    font-size: 3rem;
    color: #8099a7;
    font-weight: 100;
    animation: fadeInUp 1s ease-in-out forwards;
    opacity: 0;
    animation-delay: 3.8s;
}

.project-title span {
    color: #073147;
    font-weight: 900;
}

.horizontal {
    display: flex;
    flex-direction: row;
    position: relative;
}



.horizontal-line {
    position: absolute;
    top: 65%;
    left: 29px;
    margin-left: 80px;
    height: 2px;
    background-color: #cbd5e1;
    width: 0;
    transition: width 1s ease-in-out;
    transition-delay: 4.3s;
    z-index: -1;
    transform: translateY(-50%);
}

/* partners */
.partners {
    position: relative;
    width: 100%;
    padding: 100px 0;
    overflow: hidden;
}

.partners-title {
    /* text-align: center; */
    font-size: 2.3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 100;
    color: #227293;
    padding: 0 6%;
}

.partners-background {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('asset/img/hero2.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    margin-top: 3%;
}

.partners-background::before {
    content: 'CERTIFICATIONS';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9rem;
    color: #0074ff1a;
    text-transform: uppercase;
    z-index: 1;
    pointer-events: none;
}

.partners-content {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 2; /* Ensure logos are above the background and text */
}

.partner-logo {
    max-width: 200px;
    width: 100%;
    max-width: 200px;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    padding: 10px;
    background-color: rgb(255 255 255 / 0%);
    border-radius: 5px;
}   



/* banner*/

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

.banner {
    background-color: #ffffff;
    padding: 0 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.banner-content {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to right, white, #8099a7);
    color: #4f4f4f;
    overflow: hidden;
    position: relative;
    align-items: center;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 30px;
}

.banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 59%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #002941, #000000);
    z-index: 0;
    transform: skewX(-20deg);
    transform-origin: top left;
}

.cta-button {
    background-color: white;
    color: #676767;
    padding: 7px 27px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    /* border: 1px solid white; */
    font-size: 0.9rem;
    /* border-radius: 3px; */
    transition: background-color 0.3s ease;
    z-index: 1;
    border-radius: 3px;
}


.banner-content p {
    position: relative;

    margin: 0;
    font-size: 1rem; /* Adjust font size as needed */
    font-weight: bold;
}


.cta-button:hover {
    background-color: #0056b3; /* Adjust hover color as needed */
}


/* services */

.services {
    margin-bottom: 5%;
}
.service-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.service-item {
    background-color: #fff;
    /* padding: 20px; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    text-align: left;
    width: 100%;
    color: #474747;
}

.service-item img {
    max-width: 100%;
    width: 100%;
    height: 190px;
    object-fit: cover;
    filter: brightness(0.6);
    border-radius: 10px;
}

.service-item h3 {
    margin: 15px 0;
    font-size: 1.2rem;
    color: #474747;
}

.service-item p {
    font-size: 1rem;
    color: #858585;
}


/* learn more button onthe service section */
.learn-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #2d2d2d; /* Adjust the color as needed */
    font-weight: bold;
    transition: color 0.3s ease;
}

.learn-button .icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border-radius: 50%;
    background-color: transparent;
    border: solid 2px;
    color: #2d2d2d;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.learn-button:hover .icon-circle {
    background-color: #0056b3; /* Adjust the hover background color as needed */
}



/* about*/
.about {
    background-color: white;
    padding: 40px 6%;
    margin-bottom: 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #052735;
    padding: 36px 69px;
    padding-bottom: 15%;
    border-radius: 10px;
}

.about-content h1 {
    color: white;
}

.about-content-left {
    flex: 0 0 54%; /* Make the left side 54% */
    max-width: 54%;
    position: relative;
}

.about-image {
    width: 228px;
    height: auto;
    display: block;
    margin-bottom: 2px;
    border-radius: 7px;
    object-fit: cover;
    filter: brightness(0.9);
}

.about-image-1 {
    position: absolute;
    top: 0;
    left: 0;
    height: 223.77px;
}

.about-image-2 {
    position: absolute;
    top: 222px;
    left: 0;
    margin-top: 22px;
    height: 118.22px;
}

.about-image-3 {
    position: absolute;
    top: 30px; /* 30px below the first image */
    left: 250px; /* Fixed position to the right of the first image */
    height: 291.33px;
}

.about-content-right {
    flex: 0 0 40%; /* Make the right side 70% */
    max-width: 60%;
}


.about-content-right h2 {
    font-size: 3.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    margin-top: 0;
    text-transform: uppercase;
    font-weight: 900;
}

.about-content-right p {
    font-size: 1rem;
    color: #dedede;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-content-right .cta-button {
    padding: 10px 20px;
    margin-top: 9px;
    position: absolute;
}

.about-content-right .cta-button:hover {
    background-color: #0056b3; /* Adjust hover background color as needed */
}

.about-content h3 {
    margin-top: 150px;
    color:white;

}

.about-content h4 {
    color:white;
}

.bih {
    width: 150px;
    height: 150px;
}


/* projects */


.projects {
    margin-bottom: 5%;
}
.projects-title {
    /* text-align: center; */
    font-size: 2.3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 100;
    color: #227293;
}

.projects-collage {
    display: flex;
    gap: 30px;
    margin-bottom: 24px;
}

.project-box {
    position: relative;
    overflow: hidden;
    flex: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    border-radius: 15px;
    transform: translateY(20px);
}

.project-box img {
    width: 100%;
    height: 100%;
    max-height: 229px;
    object-fit: cover;
}

.project-box-1 {
    position: relative;
    background-image: url('../asset/img/enfield1.jpg');
    background-size: cover;
    background-position: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    height: 229px;
}

.project-box-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darker filter */
    z-index: 1; /* Ensure the filter is above the background image */
}

.project-box-1 .project-content {
    position: absolute;
    bottom: 15%;
    left: 9%;
    color: white;
    font-weight: 900;
    z-index: 2;
}

.project-box-1 .project-content h3 {
    margin: 0;
    font-size: 3.5rem;
}

.project-box-1 .project-content p {
    margin: 5px 0 0;
    font-weight: 400;
}

.project-box-2 {
    flex: 1;
}

.project-box-3 {
    flex: 1;
}

.project-box-4 {
    flex: 2;
}

.project-box-5 {
    flex: 1.5;
}

.project-box:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.project-box:hover .project-content {
    z-index: 2;
}

.projects-cta {
    text-align: center;
    margin-top: 24px;
    display: flex;
    flex-direction: row-reverse;
}

.projects-cta .cta-button {
    background-color: #073147;
    color: white;
    padding: 17px 50px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 300;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.projects-cta .cta-button:hover {
    background-color: #555;
}

.project-content p {
    text-transform: uppercase;
}



/*project page */
.projects-page-title {
    font-size: 4.3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 100;
    color: #a0abaf;
    padding: 7% 3% 0;
    max-width: 1400px;
}

.projects-page-title span {
    color: #ffffff;
    font-weight: 700;
}

.projects-page-subtitle {
    font-size: 1.3rem;
    color: #ffffff;
    padding: 0 3% 4%;
    width: 76%;
}

.projects-header-container {
    background-color: #073147;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.projects-list {
    margin-bottom: 5%;
}

.project-item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    /* background-color: #f9f9f9; */
    /* padding: 20px; */
    border-radius: 10px;
}

.project-image {
    flex: 1 1 45%;
    max-width: 45%;
}

.project-image img {
    width: 100%;
    height: 370px;
    border-radius: 10px;
    object-fit: cover;
}

.project-details {
    flex: 1 1 45%;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project-details h3 {
    margin: 0 0 40px;
    font-size: 2.4rem;
    color: #454545;
    font-weight: 900;
    text-transform: uppercase;
}

.project-details p {
    margin: 0 0 10px;
    color: #666;
}

.project-details .cta-button {
    align-self: flex-start;
    background-color: transparent;
    color: #073147;
    padding: 10px 20px;
    padding-left: 0;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}




/*footer*/
/* Footer styles */
.footer {
    background-color: #073147;
    color: white;
    padding: 40px 0;
    margin-top: 0px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 10px;
}

.footer-left p {
    margin: 5px 0;
}

.footer-middle {
    flex: 1;
    min-width: 200px;
}

.footer-middle h4 {
    margin-bottom: 10px;
}

.footer-middle ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-middle ul li {
    margin-bottom: 5px;
}

.footer-middle ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-middle ul li a:hover {
    color: #f7b731;
}

.footer-right {
    flex: 1;
    min-width: 200px;
}

.footer-right h4 {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #f7b731;
}

/* contact form */
/* Contact section styles */
.contact {
    background-color: #ffffff;
    padding: 40px 6%;
    /* margin: 20px 0; */
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust gap as needed */
}

.contact-left,
.contact-right {
    flex: 1;
    min-width: 300px; /* Ensure the sections don't get too narrow */
}

.contact-left iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px; /* Optional: Add rounded corners to the iframe */
}

.contact-right h2 {
    font-size: 2.3rem;
    color: #227293;
    margin-bottom: 20px;
    margin-top: 0;
    text-transform: uppercase;
    font-weight: 100;
}

.contact-right .form-group {
    margin-bottom: 15px; /* Adjust margin as needed */
}

.contact-right .form-group label {
    display: block;
    margin-bottom: 5px; /* Adjust margin as needed */
    font-weight: bold;
    color: #073147; /* Adjust color as needed */
}

.contact-right .form-group input,
.contact-right .form-group select,
.contact-right .form-group textarea {
    width: 100%;
    padding: 14px 0;
    border: solid 2px #0731476e;
    border-radius: 20px;
    font-size: 1rem;
    background-color: transparent;
}

.contact-right .form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.contact-right .cta-button {
    background-color: #073147;
    color: white;
    padding: 13px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 19px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.contact-right .cta-button:hover {
    background-color: #0056b3; /* Adjust hover background color as needed */
}

iframe {
    filter: grayscale(48%);
}


/* Loading screen */
/* Loading screen styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loading-logo {
    opacity: 0;
    animation: fadeIn 2s forwards;
    width: 150px;
}
#loading-text {
    display: flex;
    gap: 2px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInText 1s 1s forwards;
    color: #227293;
    justify-content: center;
}

.space-span {
    width: 10px;
}

#loading-text span {
    color: #227293;
    font-size: 3rem;
    line-height: 1; /* Adjust the line height as needed */
    letter-spacing: -0.3rem; /* Adjust the letter spacing as needed */
    opacity: 0;
    transform: translateY(20px);
    animation: riseUp 0.3s forwards;
}

#loading-text span:nth-child(1) { animation-delay: 1.1s; }
#loading-text span:nth-child(2) { animation-delay: 1.2s; }
#loading-text span:nth-child(3) { animation-delay: 1.3s; }
#loading-text span:nth-child(4) { animation-delay: 1.4s; }
#loading-text span:nth-child(5) { animation-delay: 1.5s; }
#loading-text span:nth-child(6) { animation-delay: 1.6s; }
#loading-text span:nth-child(7) { animation-delay: 1.7s; }
#loading-text span:nth-child(8) { animation-delay: 1.8s; }
#loading-text span:nth-child(9) { animation-delay: 1.9s; }
#loading-text span:nth-child(10) { animation-delay: 2s; }
#loading-text span:nth-child(11) { animation-delay: 2.1s; }
#loading-text span:nth-child(12) { animation-delay: 2.2s; }
#loading-text span:nth-child(13) { animation-delay: 2.3s; }

#loading-screen {
    animation: curtainUp 3s 2.8s forwards; /* Adjust the delay for curtainUp */
    display:flex;
    flex-direction: column;
    align-items: stretch;
}

#loading-subtext {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInDown 0.4s 2s forwards; /* Adjust the delay for the subtext */
    color: #BBBAB8;
    font-size: 1rem;
    text-align: center;
    margin-top: 0px;
    margin-left:7px;
    letter-spacing: 0.23rem;
    top: -20px;
    position: relative;

}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

@keyframes riseUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes curtain {
    to {
        opacity: 1;
    }
}

@keyframes curtainUp {
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* dynamic box selector */

/* Services Detail Section */
/* Services Detail Section */
.services-detail {
    margin: 70px 0;
}

.services-detail h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.services-detail p {
    font-size: 1rem;
    margin-bottom: 30px;
}

.service-selector {
    display: flex;
    justify-content: space-around;
    position: relative;
}

.selector-box {
    text-align: center;

    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 25%;
    height: 98px;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.5rem;
    align-content: center;
}

.selector-box.active {
    background-color: #f0f0f0;
}

.service-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}



.service-info-box img {
    width: 25%;
    height: 300px;
    margin-right: 20px;
    border-bottom-left-radius: 10px;
}

.service-info-box .info-text {
    flex: 1;
}

.service-info-box .info-text h3 {
    margin: 0 0 10px;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.service-info-box .info-text p {
    margin: 0;
}

.service-info-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #073147 transparent;
    display: none;
    transition: left 0.3s ease; /* Add transition for smooth animation */
}

.service-info-box.active::before {
    display: block;
}
.service-info-box.active::before {
    display: block;
}


.service-info-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #073147 transparent;
    display: none;
}

.service-info-box.active::before {
    display: block;
}


/* Accordian FAQ */
.faq-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.faq-accordion {
    flex: 0 0 60%;
    width: 100%;
}

.faq-item {
    border: 2px solid #878787;
    background-color: transparent;
    padding: 12px 20px;
    margin: 12px 0;
    border-radius: 27px;
    color: #3f3f3f;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.faq-number {
    margin-right: 10px;
    font-weight: bold;
    color: #227293;
}

.faq-text {
    flex-grow: 1;
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.7rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust this value based on the expected maximum height of the answer */
}

.faq-item.active .faq-question {
    color: #203c4d;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-image {
    flex: 0 0 35%;
}

.faq-image img {
    width: 100%;
    height: auto;
    display: block;
}


/*hamburger menu*/ 
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    top: 20px;
    right: 20px;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 5px);
    background-color: rgb(255, 255, 255) !important;
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
    background-color: rgb(255, 255, 255) !important;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 90%;
    background-color: #073147f0;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-nav.open {
    transform: translateX(20%);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 52%;
}

.mobile-nav ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav ul li.show {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav .social-media {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav .social-media.show {
    opacity: 1;
    transform: translateY(0);
}




/* contact form radio button  */

.checkbox-group {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}
.checkbox-label input[type="radio"] {
    accent-color: #0d2137;
    cursor: pointer;
    width: auto;
}


/* mcontact form move in date calendar */
.move-in-date {
    padding: 10px !important;
    border-radius: 5px;
    width: 97% !important;
}



/* individual project */

.amenity svg {
    padding: 12px;
    background-color: white;
    border-radius: 27px;
}

hr {
    background-color: #0c567d;

}

/* scrolled */

.scrolled {
    background-color: white;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s, border-radius 0.5s, box-shadow 0.5s;
}

.scrolled .navbar ul li.active a {
    color: #0c567d;
    font-weight: 700;
    border-bottom: 2px solid #0c567d;
    border-top: 2px solid #0c567d;
}

.scrolled .navbar ul li a {
    color: #0c567d;
}





@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .move-in-date {
        width: 95% !important;
        padding: 10px !important;
        border-radius: 5px;
    }

    .projects-page-subtitle {
        padding: 0px 6% 4% 6%;
        width: 87%;
        font-size: 1.1rem;
    }

    .projects-page-title {
        font-size: 3.1rem;
        padding: 12% 6% 0 6%;
    }

    .project-item-first {
        margin-top: calc(35vh + (100vh - 100%) * 0.5) !important;
    }
    .project-item {
        display: flex;
        flex-direction: column;
    }

    .project-image {
        flex: auto;
        max-width: 100%;
        filter: brightness(0.7);
    }

    .project-details {
        flex: auto;
        max-width: 79%;
        display: flex;
        position: absolute;
        padding: 19px;
        /* top: -3px; */
        height: 320px;
        justify-content: space-between;
        flex-direction: column;
    }

    .project-details p {
        margin: 0 0 10px;
        color: #ffffff;
    }

    .project-details h3 {
        margin: 0 0 0px;
        color: white;
        font-size: 2.2rem;

    }

    .project-detail-description {
        display: none;
    }

    .project-details .cta-button {
        color: white;
        border: 1px white solid;
        padding: 10px 20px;

    }


    /* individual projects */

    .individual-projects-gallery {
        margin-top: calc(19vh + (100vh - 100%) * 0.5) !important;
    }

}

/* Responsive design */



/* Mobile (max 440px) */
@media (max-width: 440px) {


    /*FAQ */
    .faq-container {
        flex-direction: column;
    }

    .faq-image {
        display: none;
    }

    .service-info-box {
        flex-direction: column;
        text-align: center;
    }

    .service-info-box img {
        margin-bottom: 20px;
    }

    .service-info-box::before {
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
    }
    #loading-screen {
        width: 100vw;
        align-items: center;
    }
    #loading-text {
        margin-top: 0;
    }
    #loading-subtext {
        margin-bottom: 40%;
    }
    .navbar {
        display: none;
    }
    .full-width-background {
        height: auto;
        margin-top: 0;
    }
    .hero-container {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        position: relative;
        flex-direction: column-reverse;
    }
    .hero-right {
        position: relative;
        width: 100%;
        height: 55vh;
        border-radius: 50px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        overflow: hidden;
        background: white;
    }
    .view-project-button {
        /* border-top-right-radius: 15px; */
        width: 100%;
        border: none;
        /* border-top: 2px solid; */
        /* border-right: none; */
        /* border: none; */
        border-radius: 0;
        background-color: #0000009c;
        font-weight: 500;
        font-size: 0.8rem;
        padding: 23px;
    }
    .hero-right .text-overlay .project-name-text {
        font-size: 4rem;
        font-weight: bold;
        text-align: center;
        line-height: 4.3rem;
    }
    .hero-container {
        padding: 0;
    }
    .hero-left {
        width: 100%;
        padding: 0 6%;
        margin-bottom: 10%;
    }
    .project-title h1 {
        font-size: 2.5rem;
        margin: 10px 0;
        margin-top: 40px;
    }
    .arrow-buttons {
        margin-top: 0;
    }
    .arrow-button {
        background-color: #073147;
        color: #ffffff;
    }
    .page-counter {
        margin-top: 14px;
        margin-left: 3px;
        font-size: 1.25rem;
    }
    .horizontal-line {
        top: 57%;
    }

    .banner {
        padding-left: 0;
        background-color: #e5e5e5;
        display: none;
    }
    .banner-content {
        background: linear-gradient(to right, #e5e5e5, #8099a7);
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        background-color: transparent;
    }

    .top-bar .contact-info {
        text-align: left;
    }

    .navbar ul {
        flex-direction: column;
    }

    .navbar ul li {
        margin: 5px 0;
    }

    .top-bar::after {
        background-color: transparent;
    }

    .logo img {
        content: url('https://www.bedfordwebservices.com/siravista/asset/img/logo-white.png');
        transition: content 1s ease;
    }

    .scrolled .logo img {
        content: url('https://www.bedfordwebservices.com/siravista/asset/img/logo.png');
    }
    .scrolled header {
        background-color: white;
    }
    .scrolled {
        background-color: white;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }
    header {
        transition:  1s ease;
    }


    main {
        background-color: #cbd5e163;
        z-index: -2;
        position: absolute;
    }

    .about {
        background-color: #052735;
        border-radius: 25px;
    }

    .about-content {
        display: flex;
        flex-wrap: wrap;
        gap: 100px;
        padding: 0;
        padding-bottom: 15%;
        border-radius: 10px;
        flex-direction: column-reverse;
        align-content: flex-start;
    }
    .about-content-right {
        flex: 0 0 40%;
        max-width: 100%;
    }
    
    .about-content-right h1 {
        font-size: 2.3rem;
        margin-bottom: 20px;
        margin-top: 0;
        text-transform: uppercase;
        font-weight: 600;
    }

    .about-content-right h2 {
        font-size: 1.5rem;
        margin-bottom: 0px;
        margin-top: 0;
        text-transform: uppercase;
        font-weight: 100;
    }
    .about-content-right .cta-button {
        width: 78%;
        border-radius: 20px;
        text-align: center;
    }
    .about-image {
        width: 40vw;

    }
    
    .about-image-2 {
        position: absolute;
        top: 222px;
        left: 0;
        margin-top: 22px;
    }

    .about-image-3 {
        position: relative;
        top: 45px;
        left: 188px;
    }   



    .about-content-left {
        flex: 0 0;
        max-width: 100%;
        position: relative;
        /* display: none; */
    }


    /* project */
    .project-box-1 .project-content h3 {
        margin: 0;
        font-size: 2.2rem;
    }
    .project-box-1 .project-content {
        position: absolute;
        bottom: 15%;
        left: 5%;
        color: white;
        font-weight: 900;
        z-index: 2;
    }
    .projects-collage {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
    }
    .project-box-1 {
        height: 173px;
    }
    .projects-title {
        font-size: 2.3rem;
        color: #073147;
        margin-bottom: 20px;
        margin-top: 0;
        text-transform: uppercase;
        font-weight: 600;
    }
    .projects h2 {
        font-size: 1.5rem;
        color: #073147;
        margin-bottom: 0px;
        margin-top: 20%;
        text-transform: uppercase;
        font-weight: 100;
    }
    .projects {
        margin-bottom: 20%;
    }
    .project-box-1 .project-content p {
        font-size: 0.9rem;
    }

    .projects-cta .cta-button {
        padding: 10px 20px;
        margin: 9px 0;
        position: relative;
        width: 100%;
        background-color: transparent;
        border: #073147 solid 2px;
        border-radius: 20px;
        color: #073147;
        text-align: center;
    }


    /*FAQ */
    .faq {
        margin-bottom: 20%;

    }

    .faq-accordion h2 {
        font-size: 2.3rem;
        color: #073147;
        margin-bottom: 20px;
        margin-top: 0;
        text-transform: uppercase;
        font-weight: 600;
    }
    



    .partners-background::before {
        font-size: 2.5rem;
        color: #0073ff0d;
    }
    .partners-content {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: center;
        z-index: 2;
    }
    
    .partners-content .partner-logo {
        flex: 1 0 13%;
        margin-bottom: 20px;
        max-width: 34vw;
        /* width: 100%; */
        height: 88px;
    }

    .partners {
        position: relative;
        width: auto;
        margin: 10% 6%;
        padding: 50px 0;
        overflow: hidden;
        border: #8f8f8f solid 3px;
        border-radius: 34px;
        margin-top: 0;

    }
}

/* Tablet (between 440px and 1200px) */
@media (min-width: 440px) and (max-width: 1200px) {
    .top-bar {
        padding: 10px 2%;
    }

    .navbar ul {
        justify-content: space-around;
    }
}

/* PC (min 1400px) */
@media (min-width: 1400px) {
    .top-bar {
        padding: 10px 0%;
        max-width: 1400px;
    }

    .partners {
    position: relative;
    width: 100%;
    padding: 50px 0;
    overflow: hidden;
}

.partners-background {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('asset/img/hero2.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    margin: 0 auto;
    margin-top: 3%;
    max-width: 1600px;
}

.contact {
    background-color: #ffffff;
    padding: 40px 6%;
    /* margin: 20px 0; */
    border-radius: 10px;
    box-shadow: none; 
}

.about {
    background-color: white;
    padding: 40px 6%;
    margin: 20px auto;
    margin-bottom: 0;
    /* border-radius: 10px; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.container-margin {
    margin: 8% auto;
    padding: 0px 0%;
    max-width: 1400px;
}

.navbar {
    margin: 0 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #052735;
    padding: 36px 50px;
    padding-bottom: 8%;
    border-radius: 30px;
    max-width: 1300px;
    margin: auto;
}


.banner {
    background-color: #ffffff;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    max-width: 1400px;
}


.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

}

/* Desktop: top-bar scrolled background */
@media (min-width: 769px) {
    .top-bar.scrolled {
        background-color: #ffffffe0;
    }
}
