:root {
  --primary: #2A4D6E;
  --secondary: #FF7F50;
  --accent: #4CAF50;
  --dark: #1A2930;
  --light: #F5F8FA;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
  padding-top: 100px;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: rgba(250, 248, 245, 0.8);
}

/* Navbar */
.navbar {
  background: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
  color: var(--dark);
  font-weight: 500;
  position: relative;
  margin: 0 1rem;
}

.nav-link[aria-current="page"] {
  color: var(--secondary);
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(250, 248, 245, 0.8) 50%, #f69875 50%);
  min-height: 80vh;
  display: block;
  position: relative;
  overflow: hidden;
  margin-top: -5px;
}

/* Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-25px) rotate(2deg); }
}



/* -------------------------------
   Revamped Service Card Styling
   ------------------------------- */
   .service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: none;
    border-left: 5px solid var(--primary);
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #fff, #f9f9f9);
  }
  
  .service-card i {
    margin-right: 1rem;
    color: var(--primary);
  }
  
  .service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
  }
  
  .service-card ul {
    padding-left: 1rem;
    margin-bottom: 0;
  }
  
  .service-card ul li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--dark);
  }
  
  .service-card ul li i {
    color: var(--secondary);
    margin-right: 0.5rem;
  }
  
  .services-section .text-primary {
    color: var(--secondary) !important;
  }
  




/* Footer Styles */
.footer-section {
  background: linear-gradient(135deg, var(--dark), #222);
  color: #fff;
  font-size: 0.9rem;
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-text {
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  transition: background 0.3s, transform 0.3s;
}

.social-icon:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

.footer-links {
  padding-left: 0;
  list-style: none;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--secondary);
}

.footer-address p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.85rem;
  color: #ccc;
}

/* Featured Projects Carousel Controls */
#projectsCarousel .carousel-control-prev,
#projectsCarousel .carousel-control-next {
  background: none !important;
  opacity: 1;
  color: #666 !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: color 0.3s ease;
}

#projectsCarousel .carousel-control-prev:hover,
#projectsCarousel .carousel-control-next:hover {
  color: #444 !important;
}

#projectsCarousel .carousel-control-prev i,
#projectsCarousel .carousel-control-next i {
  pointer-events: none;
}

/* Valued Clients Carousel Controls */
#clientsCarousel .carousel-control-prev,
#clientsCarousel .carousel-control-next {
  background: none !important;
  opacity: 1;
  color: #666 !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: color 0.3s ease;
}

#clientsCarousel .carousel-control-prev:hover,
#clientsCarousel .carousel-control-next:hover {
  color: #444 !important;
}

#clientsCarousel .carousel-control-prev i,
#clientsCarousel .carousel-control-next i {
  pointer-events: none;
}

/* About Us Section - Timeline */
.timeline-item {
  position: relative;
  padding-left: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 1rem;
  width: 2px;
  height: calc(100% - 40px);
  background: rgba(0,0,0,0.1);
}

.timeline-icon {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.timeline-item h3 {
  color: var(--dark);
}

/* About Section Image Styling */
.about-section img {
  max-height: 400px;
  border: 2px solid rgba(255,255,255,0.8);
  transition: transform 0.3s ease;
}

.about-section img:hover {
  transform: scale(1.02);
}

/* Section Background */
.bg-gradient-light {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.8) 100%);
}

/* New Section Title Styling */
.header-box {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  text-align: center;
  padding: 0;       /* Remove extra padding */
  background: none; /* Remove background */
  box-shadow: none; /* Remove shadow */
  border-radius: 0; /* Remove rounding */
}

.header-box h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #555 !important;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  
}

.header-box h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  border-radius: 2px;
}


/* -----------------------------------------------------------------
   New Additions for Hero Carousel Adjustments & Animations
   ----------------------------------------------------------------- */

/* Adjust hero carousel right-side images */
.hero-section .carousel-item .col-md-6.text-end img {
  max-width: 70%;
  max-height: 60vh;
  object-fit: contain;
  margin: 10% auto;
  margin-right: 10%;
}

/* Slide-in Text Animation */
@keyframes slideInFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure text elements have a stable initial state */
.carousel-item .text-center {
  display: inline-block; /* keeps layout consistent during transform */
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  position: relative;
}

/* When the slide becomes active, animate from the preset state */
.carousel-item.active .text-center {
  animation: slideInFade 1s ease-out forwards;
}



/* Override Bootstrap Primary Button */
.btn-primary {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #b8512c; ;
  border-color: #b8512c;
}

/* Adjust hero carousel button so it is not covered by the left arrow */
.hero-section .carousel-item a.btn {
  position: relative;
  z-index: 20;
  margin-left: 60px; /* shift button to the right away from the left carousel arrow */
}

/* --------------------------------------------------------------
   Override Main Carousel Controls to reduce their clickable area
   -------------------------------------------------------------- */
   #mainCarousel .carousel-control-prev,
   #mainCarousel .carousel-control-next {
     width: 50px;         /* restrict the clickable area to 50px */
     height: 50px;        /* set a fixed height for the control */
     top: 50%;            /* vertically center */
     bottom: auto;        /* disable full-height stretching */
     transform: translateY(-50%);
     background: none;    /* no background overlay */
     border: none;        /* no border */
     padding: 0;          /* remove extra padding */
     z-index: 30;         /* ensure they're above slide elements */
   }
   
   /* Optionally, adjust the position of the icons if needed */
   #mainCarousel .carousel-control-prev-icon,
   #mainCarousel .carousel-control-next-icon {
     width: 100%;   /* icon fills the control button */
     height: 100%;
   }

   .text-custom-secondary {
    color: var(--secondary) !important;
  }
  

    /* Introduction Section */
    .introduction {
      padding: 4rem 0;
      background: #f5f8fa;
    }
    .introduction h2 {
      font-size: 2.75rem;
      font-weight: 700;
      color: var(--dark);
      text-align: center;
      margin-bottom: 1rem;
    }
    .introduction p {
      font-size: 1.1rem;
      line-height: 1.8;
      color: var(--dark);
      max-width: 900px;
      margin: 0 auto;
      text-align: center;
    }
    
    /* Mission & Vision Section */
    .mission-vision {
      padding: 4rem 0;
    }
    .mission-vision .section-title {
      text-align: center;
      margin-bottom: 2rem;
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--dark);
      position: relative;
      display: inline-block;
      padding-bottom: 0.5rem;
    }
    .mission-vision .section-title::after {
      content: "";
      position: absolute;
      width: 60%;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
      border-radius: 2px;
    }
    .mission-vision .general-mission {
      font-size: 1.1rem;
      color: var(--dark);
      max-width: 900px;
      margin: 0 auto 3rem;
      text-align: center;
    }
    .mission-vision .company-missions {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
      margin-bottom: 3rem;
    }
    .mission-vision .company-mission {
      flex: 1 1 400px;
      background: #fff;
      padding: 2rem;
      border: 1px solid #ddd;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    .mission-vision .company-mission h4 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: var(--primary);
    }
    .mission-vision .company-mission p {
      font-size: 1rem;
      color: var(--dark);
      line-height: 1.6;
    }
    .mission-vision .our-vision {
      max-width: 900px;
      margin: 0 auto;
      text-align: center;
    }
    .mission-vision .our-vision h2 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      color: var(--dark);
    }
    .mission-vision .our-vision p {
      font-size: 1.1rem;
      color: var(--dark);
      line-height: 1.8;
    }
    
    /* Responsive adjustments */
    @media (max-width: 767.98px) {
      .company-missions {
        flex-direction: column;
        align-items: center;
      }
    }

  /* Why Choose Us Section */
  .why-choose-us h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 2rem;
  }
  .why-choose-us i {
    color: var(--secondary);
  }

  /* Clients & Partners Section */
  .clients-partners h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
  }
  .clients-partners .carousel-item .row {
    justify-content: center;
  }
  .clients-partners img {
    max-height: 100px;
  }

      /* Optional: Override carousel control hit areas if needed */
    #clientsCarousel .carousel-control-prev,
    #clientsCarousel .carousel-control-next {
      width: 50px;
      height: 50px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      padding: 0;
      z-index: 30;
    }
    #clientsCarousel .carousel-control-prev-icon,
    #clientsCarousel .carousel-control-next-icon {
      width: 100%;
      height: 100%;
    }


        /* ---------------------------
       Page-Specific CSS for 5d.html
       --------------------------- */
    
    /* Hero Section */
    .hero-5d {
      background: url('../assets/construction.png') center/cover no-repeat;
      min-height: 60vh;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
    }

    .hero-5g {
      background: url('../assets/services_page.png') center/cover no-repeat;
      min-height: 60vh;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
    }
    .hero-5d .overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
    }
    .hero-5d .container {
      position: relative;
      z-index: 2;
      text-align: center;
      padding: 0 15px;
    }
    .hero-5d h1 {
      font-size: 2.75rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }
    .hero-5d p.lead {
      font-size: 1.25rem;
    }
    
    /* Section Title (used in several sections) */
    .section-title {
      font-size: 2.75rem;
      font-weight: 700;
      color: var(--dark);
      text-align: center;
      margin-bottom: 1.5rem;
      position: relative;
      display: inline-block;
      padding-bottom: 0.5rem;
    }
    .section-title::after {
      content: "";
      position: absolute;
      width: 60%;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
      border-radius: 2px;
    }
    
    /* Company Overview */
    .company-overview {
      padding: 4rem 0;
      background: #f5f8fa;
    }
    .company-overview .container {
      max-width: 900px;
    }
    .company-overview p {
      font-size: 1.1rem;
      line-height: 1.8;
      color: var(--dark);
      text-align: center;
    }
    
    /* Services Section */
    .services-5d {
      padding: 4rem 0;
    }
    .services-5d .service-item {
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 1.5rem;
      transition: transform 0.3s, box-shadow 0.3s;
      margin-bottom: 1rem;
      height: 100%;
    }
    .services-5d .service-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
    .services-5d .service-item h4 {
      font-size: 1.5rem;
      color: var(--primary);
      margin-bottom: 0.75rem;
    }
    .services-5d .service-item p {
      font-size: 1rem;
      color: var(--dark);
      margin-bottom: 0;
    }
    
    /* Projects Section */
    .projects-5d {
      padding: 4rem 0;
      background: #f5f8fa;
    }
    .projects-5d ul {
      list-style: none;
      padding: 0;
      max-width: 900px;
      margin: 0 auto;
    }
    
    .projects-5d ul li {
      font-size: 1rem;
      line-height: 1.6;
      color: var(--dark);
      margin-bottom: 1rem;
      padding-left: 2.5rem; /* increased to allow space for the icon */
      position: relative;
    }
    
    .projects-5d ul li::before {
      content: "\f00c"; /* Font Awesome check icon */
      font-family: "Font Awesome 6 Free"; /* ensure you are using the correct version */
      font-weight: 900;
      position: absolute;
      left: 0;
      top: 0;
      color: var(--secondary);
      font-size: 1rem;
      line-height: 1.6;
    }
    
    
    /* Responsive adjustments */
    @media (max-width: 767.98px) {
      .hero-5d h1 {
        font-size: 2rem;
      }
      .hero-5d p.lead {
        font-size: 1rem;
      }
    }
