body {
  margin: 0;
  padding-top: 33px;
}

/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#preloader img {
  width: 175px;
  height: 120px;
}

/* Top Header Bar */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1a1c28;
  color: white;
  font-size: 0.95rem;
  padding: 8px 20px;
  z-index: 1001; /* Higher than navbar */
}

.top-header .container {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 15px;
}

.top-header .contact-info span {
  display: inline-block;
  margin-right: 20px;
}

.top-header .contact-info a {
  color: #f0c674;
  text-decoration: none;
  font-weight: 500;
}

.top-header .contact-info a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .top-header {
    font-size: 0.85rem;
    padding: 10px 15px;
    text-align: center;
  }

  .top-header .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .top-header .contact-info {
    margin: 0;
    text-align: center;
  }

  .top-header .contact-info span {
    display: block;
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  .top-header {
    font-size: 0.8rem;
    padding: 12px 10px;
  }

  .top-header .contact-info a {
    display: inline-block;
    word-break: break-word;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #262939;
  padding: 0 20px;
  height: 100px;
  z-index: 1000;
}

.logo img {
  height: 78px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s;
}

/* Contact button */
.contact-btn {
  background-color: rgb(217, 197, 122);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-left: 20px;
  transition: background-color 0.3s, transform 0.3s;
}

.contact-btn:hover {
  border-color: black;
  background-color: white;
  color: black;
  transform: scale(1.05);
}

/* Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #333;
  min-width: 180px;
  flex-direction: column;
  z-index: 1000;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dropdown-content a {
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #444;
}

@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: flex;
  }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .navbar {
    height: 70px;
    padding: 0 15px;
    justify-content: space-between; /* Ensure logo and hamburger are aligned left and right */
  }

  .logo img {
    height: 50px;
    margin-top: 42px;
    margin-left: -54px;
  }

  .hamburger {
    display: flex;
    margin-right: 50px;
    margin-top: 27px;
  }

  .nav-links {
    position: absolute;
    top: 70px; /* Match mobile navbar height */
    right: 0;
    background-color: #262939;
    flex-direction: column;
    width: 100%;
    display: none;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-content {
    position: static;
    background-color: #262939;
    box-shadow: none;
    border-radius: 0;
  }

  .dropdown.active .dropdown-content {
    display: flex;
  }

  .contact-btn {
    margin-top: 15px;
    margin-left: 0;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 89vh;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 40%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 20px;
  text-align: left;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.highlight-bar {
  width: 5px;
  height: 80px;
  background-color: rgb(217, 197, 122);
  display: inline-block;
  vertical-align: top;
  margin-right: 15px;
}

.hero-text-wrapper {
  display: flex;
  align-items: flex-start;
  margin-left: 100px;
}

.cta-button {
  display: inline-block;
  background-color: rgb(217, 197, 122);
  color: white;
  text-decoration: none;
  padding: 15px 25px;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 30px;
  margin-left: 100px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: white;
  border-color: black;
  color: black;
}

@media (max-width: 768px) {
  .hero-text-wrapper,
  .cta-button {
    margin-left: 30px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    text-align: center;
    padding: 10px;
  }

  .hero-text-wrapper {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
  }

  .highlight-bar {
    display: none; /* Hide the line */
  }

  .hero-content h1 {
    font-size: 1.4rem; /* Smaller font */
    line-height: 1.4;
  }

  .cta-button {
    margin-left: 0;
  }
}

/* Intro Section */
.intro-section {
  background-color: #f8fafc;
  padding: 2rem 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.intro-section .stories-wrap {
  display: flex;
  flex-wrap: nowrap;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 500px;
  max-height: 500px;
}

.intro-section .img {
  width: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.intro-section .text {
  width: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 3rem;
  color: #4a4a4a;
  overflow-y: auto;
  box-sizing: border-box;
}

.intro-section .desc p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.intro-section .desc b {
  font-weight: 600;
  color: #444;
}

.intro-text {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-height: 100%;
  overflow-y: auto;
}

.intro-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111;
}

.intro-text .highlight {
  color: #c5b26e;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.intro-text p {
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.6;
}

.intro-text .divider {
  border: none;
  height: 4px;
  width: 50px;
  background-color: #d9c57a;
  margin: 1.5rem 0;
}

/* Custom Scrollbar for desktop */
.intro-section .text::-webkit-scrollbar {
  width: 8px;
}
.intro-section .text::-webkit-scrollbar-thumb {
  background-color: #d9c57a;
  border-radius: 4px;
}
.intro-section .text::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

/*  RESPONSIVE STYLES  */
@media (max-width: 1024px) {
  .intro-section .stories-wrap {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    max-height: none;
  }

  .intro-section .img,
  .intro-section .text {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .intro-section .img {
    height: 250px !important;
    min-height: 220px;
    background-size: cover;
    background-position: center;
  }

  .intro-section .text {
    padding: 1.5rem 1rem !important;
  }

  .intro-text {
    padding: 1rem;
  }
}

@media (max-width: 991px) {
  .intro-section {
    padding: 1rem 0.5rem;
  }

  .intro-section .stories-wrap {
    flex-direction: column;
    height: auto;
    max-height: none;
  }

  .intro-section .img {
    width: 100%;
    height: 220px;
    min-height: 200px;
  }

  .intro-section .text {
    width: 100%;
    padding: 1.5rem 1rem;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .intro-text {
    padding: 1.25rem 1rem;
    box-shadow: none;
  }

  .intro-text h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }

  .intro-text .highlight {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .intro-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .intro-text .divider {
    height: 3px;
    width: 40px;
    margin: 1rem 0;
  }
}

@media (max-width: 576px) {
  .intro-section {
    padding: 1.5rem 0.5rem;
  }

  .intro-section .text {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
  }

  .intro-text {
    padding: 1.5rem 1rem;
  }

  .intro-text h2 {
    font-size: 1.5rem;
  }

  .intro-text .highlight {
    font-size: 1rem;
  }

  .intro-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .intro-text .divider {
    height: 3px;
    width: 40px;
  }
}

/* 
Services headline section */
.services-marquee {
  background-color: #ddc879;
  overflow: hidden;
  height: 55px;
  width: 100%;
  padding-top: 23px;
  padding-bottom: 8px;
}

.marquee {
  display: flex;
  animation: scrollMarquee 12s linear infinite;
}

.marquee-content {
  display: flex;
}

.marquee-content span {
  font-size: 37px;
  font-weight: 700;
  color: #000;
  margin-right: 50px;
  transition: color 0.3s ease;
}

.marquee-content span:hover {
  color: #8b5e00;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .marquee-content span {
    font-size: 18px;
    margin-right: 30px;
  }
}

/* Our services */
.our-services {
  position: relative;
  padding: 80px 20px;
  background: url("/img/construction-site.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  z-index: 1;
  overflow: hidden;
}

.our-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    255,
    255,
    255,
    0.235
  ); /* Adjust this value to control opacity */
  z-index: 0;
}

.our-services > * {
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #1e1e2f;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #d9c57a;
  margin: 20px auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
  padding: 0 10px;
}

.service-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(217, 197, 122, 0.1) 0%,
    transparent 70%
  );
  transform: rotate(25deg);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: #262939;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.service-desc {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  z-index: 1;
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .our-services {
    padding: 40px 15px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .services-grid {
    gap: 15px;
    padding: 0;
  }

  .service-card {
    padding: 20px 15px;
  }

  .service-title {
    font-size: 1.3rem;
  }

  .service-desc {
    font-size: 0.95rem;
  }
}

/* Projects section */
.projects-section {
  padding: 40px 20px; /* reduced top/bottom padding for tighter section */
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: auto;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 25px; /* slightly reduced */
  line-height: 1.6;
}

/* Carousel */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel {
  display: flex;
  gap: 12px; /* reduced gap for less space between cards */
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px; /* reduced */
  scroll-snap-type: x mandatory;
}

.project-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px; /* slightly reduced radius for sharper feel */
  min-width: 280px; /* reduced width for tighter arrangement */
  max-width: 280px;
  flex: 0 0 auto;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05); /* lighter shadow for less clutter */
  transition: transform 0.3s;
  scroll-snap-align: start;
}

.project-card:hover {
  transform: translateY(-4px); /* slightly reduced hover lift */
}

.project-card img {
  width: 100%;
  height: 160px; /* reduced image height for less vertical space */
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.project-info {
  padding: 12px; /* reduced padding */
}

.project-info .location {
  font-size: 0.8rem; /* slightly smaller */
  color: #00a86b;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 4px; /* added for separation */
}

.project-info h3 {
  font-size: 1rem; /* slightly smaller for compact look */
  margin: 4px 0 8px;
}

.project-info p {
  font-size: 0.85rem; /* slightly smaller */
  color: #555;
  margin: 3px 0;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #00a86b;
  color: white;
  border: none;
  font-size: 1.1rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  width: 36px; /* slightly smaller */
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: #008c5b;
}

.carousel-btn.left {
  left: 8px; /* slightly adjusted */
}

.carousel-btn.right {
  right: 8px;
}

/* Scrollbar (optional aesthetic) */
.carousel::-webkit-scrollbar {
  height: 5px; /* slightly thinner */
}
.carousel::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.carousel::-webkit-scrollbar-track {
  background: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }

  .carousel {
    gap: 10px; /* reduced further on mobile */
  }

  .project-card {
    min-width: 220px; /* smaller on mobile */
    max-width: 220px;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .project-info h3 {
    font-size: 0.95rem;
  }

  .project-info p {
    font-size: 0.8rem;
  }
}

/* Core Competencies Section */
.core-competencies {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
}

.core-competencies h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.core-competencies .subtext {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1rem;
  color: #555;
}

/* Grid layout */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Card styles */
.competency-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: 350px;
}

.competency-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
  display: block;
}

/* Overlay info */
.competency-card .overlay {
  position: absolute;
  inset: 0;
  background-color: #1a1c28;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.competency-card:hover img {
  opacity: 0;
}

.competency-card:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.overlay p {
  font-size: 0.95rem;
  color: #ccc;
}

/* Responsive text */
@media (max-width: 500px) {
  .core-competencies h2 {
    font-size: 1.5rem;
  }
  .overlay h3 {
    font-size: 1.2rem;
  }
  .overlay p {
    font-size: 0.9rem;
  }
}

/* WHY US CSS */
.why-choose-us {
  position: relative;
  background: url("/img/c1_copy.jpg") no-repeat center center/cover;
  width: 100%;
  padding: 60px 0;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.why-choose-us .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5); /* lower = more transparent */
  z-index: 1;
}

.section-title,
.choose-us-grid {
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 30px;
  color: white;
  width: 100%;
}

.choose-us-grid {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  padding: 0 40px;
}

.choose-us-text {
  max-width: 900px;
  color: white;
  text-align: left;
}

.choose-us-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.choose-us-text ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.choose-us-text li strong {
  color: #695206;
}

@media (min-width: 768px) {
  .choose-us-grid {
    justify-content: flex-end;
  }

  .choose-us-text {
    padding-right: 40px;
  }
}

/* Footer */
.footer {
  background-color: #1b1b1b;
  padding: 40px 60px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-col {
  flex: 1 1 220px;
  min-width: 250px;
}

.logo {
  width: 200px;
  margin-bottom: 15px;
}

.footer-col h3 {
  margin-bottom: 15px;
  color: #fff;
}

.footer-col p,
.footer-col a,
.footer-col li {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.social-icons a {
  margin-right: 10px;
  color: #fff;
  font-size: 16px;
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border: 1px solid #444;
  border-radius: 50%;
  transition: background 0.3s;
}

.social-icons a:hover {
  background-color: #333;
}

.links-col ul {
  list-style: none;
  padding: 0;
}

.links-col ul li {
  margin-bottom: 10px;
}

.required {
  color: red;
}

.form-col form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.form-row input,
textarea {
  flex: 1;
  padding: 10px;
  background-color: #2a2a2a;
  color: white;
  border: none;
  border-radius: 4px;
}

textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 15px;
}

button {
  align-self: flex-start;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

.footer-col.form-col {
  padding-right: 40px; /* Adds space to the right of the contact form */
  box-sizing: border-box; /* Ensures padding doesn’t break layout */
}

/* Responsive Footer Styles */
@media (max-width: 768px) {
  .footer {
    padding: 25px 45px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .footer-col {
    width: 100%;
    max-width: 500px;
    text-align: center;
    margin-bottom: 30px;
  }

  .logo {
    margin: 0 auto 15px;
    width: 180px;
  }

  .footer-col h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .footer-col p,
  .footer-col a,
  .footer-col li {
    font-size: 15px;
    line-height: 1.5;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .form-row input,
  textarea {
    width: 100%;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* allow icons to wrap to next line */
    gap: 15px; /* add space between icons */
    margin-top: 15px;
    overflow: visible; /* ensure nothing is clipped */
  }

  .social-icons a {
    margin: 0;
    font-size: 18px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  button {
    align-self: center;
    width: 100%;
    max-width: 220px;
  }
}
