* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    margin: 0;
    
}

.hero {
    position: relative;
    width: 100%;
    height: 80vh; /* Full viewport height */
    background: url('assets/Plan 62857DJ_ New American House Plan with Optional Finished Lower Level - 1760 Sq Ft.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent white */
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    height: 400px;
    width: 1100px;
}

.overlay h1 {
    font-size: 4.4rem;
    font-weight: 600;
    color: #fff;
}

.overlay p {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
}

.btn {
    background-color: #017FBD;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #0056b3;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

.logo1{
    height: 70px;
}

.logo2{
    height: 30px;
    margin-left: 10px;
    margin-bottom: 20px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    font-size: 1rem;
    color: #000;
}

.nav-links a:hover {
    color: #007bff;
}

.groupOfCompanies ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 90px;
}

.groupOfCompanies ul li{
    list-style: none;
}

.comp1{
    height:170px;
}

.comp2{
    height: 40px;
}

.comp3{
    height: 130px;
}
.comp4{
    height: 40px;
}



.stats {
    display: flex;
    justify-content: space-around;
    padding: 38px;
    text-align: center;
    width: 70%;
}

.stat-box {
    background: rgba(240, 240, 240, 0.8);
    padding: 20px;
    border-radius: 10px;
    width: 22%;
   
}

.stat-box img {
    width: 70px;
}

.stat-box h3 {
    font-weight: 600;
    margin: 10px 0;
}

.stat-box p {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* About Section */
.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background: white;
}

.about-text {
    width: 60%;
}

.about-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-text p {
    font-weight: 200;
    color: #444;
    line-height: 1.6;
}

.about-image img {
    width: 350px;
    border-radius: 10px;
}

.aboutUS {
    background-color: #ffffff; /* Updated color */
    padding: 40px;
    display: flex;
   justify-content: center;
    align-items: center;
    gap: 100px; /* Ensures equal spacing */
    margin-bottom: 40px;
}
.vision {
    background-color: #ffffff; /* Updated color */
    padding: 40px;
    display: flex;
   justify-content: center;
    align-items: center;
    gap: 100px; /* Ensures equal spacing */
    margin-bottom: 40px;
}
.mision {
    background-color: #ffffff; /* Updated color */
    padding: 40px;
    display: flex;
   justify-content: center;
    align-items: center;
    gap: 100px; /* Ensures equal spacing */
    margin-bottom: 40px;
}


.submenu {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    list-style: none;
    border-radius: 5px;
    width: 200px; /* Increased width */
    min-width: 200px; /* Ensure consistent width */
}

.submenu li {
    padding: 10px;
    width: 100%; /* Ensure full width inside submenu */
}

.submenu a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    display: block; /* Make links take full width */
}

/* Show submenu on hover */
.dropdown {
    position: relative;
}

.dropdown:hover .submenu {
    display: block;
    left: 0;
    top: 100%;
}

.content{
    width: 800px;
}

/* Image container with blue border */
.image-container {
    position: relative;
    display: inline-block;
    width: 300px;
    height: 300px;
    padding: 10px;
    border: 3px solid #007BFF; /* Blue border */
}

/* Image styling */
.image-container img {
    display: block;
    height: 300px;
    width: 300px;
    transform: translate(10px,10px);
}

.title{
    font-weight: 600;
    color: #000;
    text-align: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.titleContent{
    color: #000;
    text-align: justify;
}

.why-choose {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 40px;
    background-color: #F5F5F5;
}

/* Left-side text content */
.text-content {
    flex: 1;
    max-width: 50%;
}

/* Grid container for right-side items */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 20px;
    flex: 1;
    max-width: 50%;
}

/* Individual grid items */
.grid-item {
    background-color: #0258A4;
    color: white;
    padding: 20px;
    border-radius: 20px 20px 20px 0px ;
}

.title2{
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 20px;
}

h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.font4{
    font-size: 12px;
    font-weight: bold;
    text-align: justify;
}

.grid-container2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Two columns */
    gap: 20px;
    flex: 1;
}

.services{
    margin-top: 50px;
}

.hover-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 350px; /* Adjust as needed */
    height: 250px; /* Adjust as needed */
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    perspective: 1000px; /* Enable 3D perspective for flip effect */
  }
  
  /* Small box for "Construction" */
  .small-box {
    width: 180px;
    height: 50px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease, width 0.6s ease, height 0.6s ease;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d; /* Ensures both sides are rendered */
  }

  .small-box2 {
    width: 250px;
    height: 70px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease, width 0.6s ease, height 0.6s ease;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d; /* Ensures both sides are rendered */
  }
  
  /* Content inside the box */
  .text-content2 {
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    font-size: 16px;
    color: black;
    box-sizing: border-box;
  }
  
  /* Front side styling */
  .front {
    opacity: 1;
    transform: rotateY(0deg);
    backface-visibility: hidden; /* Hide the backface when flipped */
  }
  
  /* Back side styling */
  .back {
    opacity: 0;
    font-size: 14px;
    color: black;
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    transform: rotateY(-180deg);
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 15px;
  }
  
  /* On hover, flip the small box and show the description */
  .hover-box:hover .small-box {
    width: 90%;
    height: 90%;
    transform: rotateY(-180deg);
  }

  .hover-box:hover .small-box2 {
    width: 90%;
    height: 90%;
    transform: rotateY(-180deg);
  }
  
  .hover-box:hover .front {
    opacity: 0;
  }
  
  .hover-box:hover .back {
    opacity: 1; /* Now visible after flip */
    backface-visibility: visible;
  }

  .gallery-container {
    display: flex;
    gap: 100px;
    margin-top: 40px;
}

.gallery-container .image1 {
    width: 290px;
    height: 380px;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-container .image2 {
    width: 350px;
    height: 240px;
    cursor: pointer;
    border-radius: 10px;
    margin-top: 130px;
    transition: transform 0.3s;
}
.gallery-container .image3 {
    margin-top: 150px;
    width: 350px;
    height: 200px;
    cursor: pointer;
  
    transition: transform 0.3s;
}

.gallery-container img:hover {
    transform: scale(1.1);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.modal img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.close-btn, .prev-btn, .next-btn {
    position: absolute;
    color: rgb(255, 255, 255);
    font-size: 50px;
    cursor: pointer;
}

.close-btn {
    top: 130px;
    right: 200px;
}

.prev-btn {
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.next-btn {
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.title5{
    text-align: center;
    margin-top: 60px;
    font-weight: 600;
    font-size: 26px;
}

.font7{
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

.outer {
    width: 300px; /* Adjust as needed */
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inner {
    width: 100%;
    height: 100%;
    background-image: url('assets/delimitation-land-with-clear-sky_23-2149721839.avif'); /* Replace with your image */
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;

}

.text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white; /* Adjust based on background */
    background: rgba(0, 0, 0, 0.5); /* Optional: for better readability */
    padding: 5px;
    border-radius: 5px;
}

.font8{
    margin-top: 100px;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 40px;
}

.ourManagement{
    margin-top: 30px;
}
.management-section {
    padding: 40px 20px;
}

/* Top Centered Member */
.top-member {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/* Cards Container for Other Members */
.management-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 270px;
    height: 380px;
}

.card img {
    width: 70%;
    height: 50%;
    border-radius: 8px;
}

.card h3 {
    margin: 10px 0 5px;
    font-size: 16px;
}

.card p {
    font-size: 14px;
    color: #666;
}

/* Additional Team Info */
.team-info {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.team-info p {
    font-size: 16px;
}

footer {
    background-color: #f8f8f8;
    padding: 20px;
    font-family: Arial, sans-serif;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px;
    align-items: center;
    background-color: #0258A4;
}

.aboutContainer{
    display: flex;
    flex-direction: row;
}

.contact{
    display: flex;
    flex-direction: column;
}

.contact-info{
    display: flex;
    flex-direction: row;
    gap:120px;
}

.contactHolder{
    display: flex;
    flex-direction: row;
    gap: 20px;
    color: white;
}
.contactHolder img{
    height: 30px;

}

.contact-info, .about, .footer-links, .social-media {
    flex: 1;
    margin: 10px;
}


.about{
    display: flex;
    flex-direction: column;
    background-color:#0258A4;

}

.aboutContainer {
    display: flex;
    transform: translateX(-200px);
    color: white; /* Set text color to white */
    padding: 20px;
}

.about, .footer-links {
    flex: 1;
}
.footer-links{
    margin-top: 50px;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 20px;
  
}

.footer-links ul li {
    margin-bottom: 5px;
}

.footer-links a {
    text-decoration: none;
    color: white; /* Ensure links are also white */
}

h3 {
    margin-bottom: 10px;
}

.contact a{
    color: white;
    text-decoration: none;
}

.footer-bottom{
    text-align: center;
    padding: 10px;
}

.popup-btn {
    padding: 10px 20px;
    background-color: #0258A4;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 10px;
}

/* Popup Overlay - Initially Hidden */
.popup-overlay {
    display: none; /* Hide popups initially */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-container {
    background: white;
    width: 25%;
    height: 50%;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.popup-container img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.popup-content {
    flex: 1;
}

.popup-content h2 {
    margin: 0;
}

.popup-description {
    margin-top: 10px;
}

/* Close Button */
.popup-close-btn {
    background: red;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    position: relative;
}

/* Footer Submenu */
.footer-links .footer-submenu {
    display: none; 
    position: absolute;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px;
    min-width: 180px; /* Adjust width */
    border-radius: 5px;
    left: 0;
    top: 100%;
    z-index: 100;
}

.footer-submenu li {
    padding: 8px 12px;
    white-space: nowrap; /* Prevents text wrapping */
}

.footer-submenu a {
    text-decoration: none;
    color: black;
    display: block;
    font-size: 14px;
}

/* Show Submenu on Hover */
.footer-dropdown:hover .footer-submenu {
    display: block;
}

@media (max-width: 768px) {

    /* Center body content */
    body {
        display: block;
        text-align: center;
    }

    .nav-links {
        display: none; /* Hide menu by default */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: white;
        width: 100%;
        text-align: center;
        padding: 10px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.show {
        display: flex; /* Show when hamburger is clicked */
    }

    .hamburger {
        display: block; /* Show hamburger in mobile view */
    }
    .submenu {
        display: none;
        position: static;
        background: transparent;
        box-shadow: none;
        padding-left: 20px;
    }

    .submenu.show {
        display: block;
    }

    /* ✅ Hero Section */
    .hero {
        height: 50vh; /* Reduce height */
        background-size: cover;
        padding: 10px;
    }

    .overlay {
        width: 90%;
        height: auto;
        padding: 20px;
    }

    .overlay h1 {
        font-size: 2rem;
    }

    .overlay p {
        font-size: 1rem;
    }

    /* ✅ Navigation Bar */
    .navbar {
        flex-direction: row;
        padding: 10px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* ✅ About Section */
    .about {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .about-text {
        width: 100%;
    }

    .about-image img {
        width: 100%;
        max-width: 300px;
    }

    .groupOfCompanies {
        text-align: center;
        padding: 10px;
    }

    .groupOfCompanies ul {
        display: flex;
        flex-wrap: wrap; /* Allows items to wrap onto the next row */
        justify-content: center; /* Centers the logos */
        gap: 10px; /* Adds spacing between logos */
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .groupOfCompanies ul li {
        flex: 1 1 calc(33.33% - 20px); /* Each logo takes 33.33% width */
        max-width: 150px; /* Prevents logos from being too large */
        text-align: center;
    }

    .groupOfCompanies ul li img {
        width: 100%; /* Responsive logo size */
        max-width: 150px; /* Adjust the logo size */
        height: auto;
    }

    /* ✅ Stats Section */
    .stats {
        flex-direction: column;
        width: 100%;
    }

    .stat-box {
        width: 90%;
        margin-bottom: 20px;
    }

    /* ✅ Vision Section */
    .vision {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .content {
        width: 100%;
    }

    .image-container {
        display: none;
    }

    /* ✅ Why Choose Us */
    .why-choose {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .text-content,
    .grid-container ,.grid-container2{
        max-width: 100%;
    }

    .grid-container ,.grid-container2{
        grid-template-columns: 1fr; /* Single column layout */
    }

    .grid-container2 {
        display: flex; /* Ensure it's a flex container */
        flex-wrap: wrap; /* Allow wrapping for responsiveness */
        align-items: center; /* Vertically center align */
        justify-content: center; /* Horizontally center align */
        text-align: center; /* Ensure text inside items is centered */
        width: 100%; /* Ensure it takes full width */
        margin: 0 auto; /* Center it inside the parent container */
    }


    /* ✅ Gallery Section */
    .gallery-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .gallery-container img {
        width: 90%;
        height: auto;
    }

    /* ✅ Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .aboutContainer {
        flex-direction: column;
        transform: none;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    /* ✅ Popup Styling */
    .popup-container {
        width: 90%;
        height: auto;
        flex-direction: column;
        text-align: center;
    }

    .popup-container img {
        width: 80%;
        height: auto;
    }
    .footer-container {
        flex-direction: column; /* Stack items in a single column */
        align-items: flex-start; /* Align content to the left */
        padding: 20px;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align contact info to the left */
        gap: 15px;
    }

    .contactHolder {
        display: flex;
        align-items: flex-start; /* Fix alignment */
        justify-content: flex-start; /* Align content to the left */
        gap: 10px;
        text-align: left; /* Ensure text aligns left */
        width: 100%; /* Make it take full width */
    }

    .contactHolder img {
        width: 20px; /* Reduce icon size for mobile */
        height: 20px;
    }

    .contact {
        font-size: 14px; /* Reduce font size for better fit */
    }

    .aboutContainer {
        width: 100%;
        display: flex;
        justify-content: flex-start; /* Align to the left */
        padding-left: 10px;
    }

    .footer-links {
        text-align: left; /* Align footer links to the left */
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    .footer-links ul li {
        text-align: left;
        list-style: none;
    }

    .footer-links a {
        text-decoration: none;
        color: white; /* Adjust link color */
        font-size: 14px;
    }

    .outer{
        display: flex; /* Ensure it's a flex container */
        flex-wrap: wrap; /* Allow wrapping for responsiveness */
        align-items: center; /* Vertically center align */
        justify-content: center; /* Horizontally center align */
        text-align: center; /* Ensure text inside items is centered */
        width: 100%; /* Ensure it takes full width */
        margin: 0 auto; /* Center it inside the parent container */
    }

    .footer-dropdown {
        display: flex;
        flex-direction: column;
    
    }

    .footer-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background-color: #f8f8f8;
  
        cursor: pointer;
    }

    /* Show submenu when active */
    .footer-dropdown.active .footer-submenu {
        display: block;
     
    }
    .footer-submenu a{
        color: #000;
    }
   
}