 /* General Reset and Body Styling */
 body, html {
    margin: 0;
    padding: 0;
    font-family: 'ClashDisplay-Medium', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}


/* Navbar Styling */
.navbar-nav {
    gap: 8px; /* Equal spacing between items */
}

.nav-link {
    
    font-size: 10px;
    font-weight: bolder;
    
    transition: color 0.3s;
    transition: font-size 0.5s ease, transform 0.5s ease;
}

  .nav-link.active {
    text-transform: uppercase;
    font-size: 7.5rem; /* Increase font size */
    transform: translateX(30px) scale(1.3); /* Slight zoom-in effect */

  }

.nav-link:hover {
    color: #000000 !important;
    background-color: rgba(80, 78, 78, 0.256);
    border-radius: 5px;
}
.line{

    color:#000000;
    opacity:1;
}
.h-img{
   
    z-index: -3;

}
/* Header Styling */
.header-section {
    
    text-align: center;
    padding: 80px 0;
    background-image: url('../services/civil\ and\ structural\ works\ 2.jpg');
    max-width: 100%;
    height:450px;
    background-size:cover;
    background-repeat: no-repeat;
  
    
       
  
}
.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px; /* Match the section height */
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay */
    z-index: 0; /* Place below the content */
}
.header-section h1 {
    position: relative; /* Ensures it's above the overlay */
    margin-top: 40px; /* Reset margin */
    font-size: 50px;
    font-weight: 700;
    color: #ffbf00;
    z-index: 1; /* Place above the overlay */
    text-shadow: 1px 2px 2px #363535;
    text-align: center;
    transform: scale(1) !important;;
    transition:opacity 3s ease, transform 3s ease;
    font-family: 'ClashDisplay-Medium';
}


.header-section p{
    font-family: 'ClashDisplay-Medium';
    margin:25px;
    position: relative;
    font-size:15px;
    font-weight: 500;
    text-shadow: 1px 2px 2px #363535;
 color:  #ffbf00;
 z-index: 1; /* Place above the overlay */
}

.quick-links {
    margin-top: -45px;
}

/* Footer */
.footer {
    padding: 0.5rem 0; /* Minimize top and bottom padding */
    margin: 0; /* Remove unnecessary margin */
}

.footer .text-center {
    padding: 0; /* Ensure no additional padding from the container */
    max-width: 100%; /* Prevent width restriction from Bootstrap's container */
}

/* Scroll Button */

.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px !important;
    height: 50px;
    background-color: #ffc107;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scroll-to-top:hover {
    background-color: #ffc107;
}

/* Scroll effect */
.scroll-to-top::before {
    content: '↑';
    font-size: 24px;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-box {
        margin-bottom: 20px;
    }
    .service-box .subhead {
        font-size:16px;
    }
    .nav-link.active{
        transform: translateX(10px) scale(1.4);
        font-size: 0.7rem !important;
    }
    .img{
        padding-right:20px !important;
    }
    .col-4{
        padding-left: 0!important;
    }
}
.frow{
    height: 1000vh
}
.row, .col-4 {
    overflow: visible; /* Ensure scrolling doesn't break sticky */
}

.col-4 {
    /* Ensures sticky element has room */
    overflow: visible;
    width:25%!important;/* Prevent overflow issues */
}


#navbar-example3{
    position:sticky!important;
    top:71px;
    z-index:99!important;
}

.img-fluid {
    position: relative;
    height: 250px !important;
    width: 350px !important;
    overflow: hidden;
    border: white;
    border-radius: 10px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Combined transition */
}

.img-fluid img {
    width: 100%; /* Make the image width fit the div */
    height: 100%; /* Make the image height fit the div */
    object-fit: cover !important; /* Ensures the image maintains aspect ratio and fills the div */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.img-fluid .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.img-fluid:hover .overlay {
    opacity: 1;
}

.img-fluid.show {
    opacity: 1;
    transform: translateY(100px);
   
}
.subhead{
    position:absolute;
    width: 100%;
    bottom:-10px;
    color:#000000;
    background-color: #f39c12;
    border-radius: 0 0 ;
    padding:8px;
    z-index: 4;
    font-family: 'ClashDisplay-Medium';
}

#navbar-example3 .nav-link.active {
    background-color: #f39c12 !important; /* Highlight color */
    color: rgb(0, 0, 0)!important; /* Text color */
    border-radius: 5px 100px 100px 5px; /* Optional: Rounded edges */
    transition: background-color 0.3s ease; /* Smooth transition */
    z-index:99;
  }
.nav-link {
    color: #000000 !important; /* Example: Red color */
  }

  
  /* Change the color on hover */
  .nav-link:hover {
    color:  rgb(0, 0, 0) !important; /* Example: Blue color */
    background-color: #f39c12 !important;
    border-radius: 5px 100px 100px 5px; /* Optional: Rounded edges */
    transition: background-color 0.3s ease; /* Example: Light gray background */
  }

 .img-fluid  image-box{
    height:550px;
 }


  
