/* Hero Slider */
.hero-slider {
  position: relative;
  height: calc(100vh - 93px); /* Full viewport height minus header */
  overflow: hidden;
  background-color: #333; /* Fallback for slow-loading images */
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.caption-container {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 2;
  color: white;
  max-width: 50%;
}

.caption, .sub-caption {
  opacity: 0;
  white-space: normal;
}

.caption {
  font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

.sub-caption {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #fff;
}

/* Animations for Captions */
.slide.active .caption { animation: caption-in 1s ease 0.3s forwards; }
.slide.active .sub-caption { animation: subcaption-in 1s ease 0.6s forwards; }

@keyframes caption-in {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes subcaption-in {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}


.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  
  z-index: 10;
  transform: translateY(-50%);
}

.slider-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Hide buttons on very small screens */
@media (max-width: 480px) {
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}
/*-------------------------------------------*/



/* ====================================================== */
/* Styling for the "Why Choose Us" Section */
/* ====================================================== */

/* UPDATED: Removed left/right padding to allow the blue box to be full-width */
#why-choose-us {
    background-color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px; /* Padding now only on top and bottom */
    text-align: center;
}

/* This container is now used for the title and inside the blue box */
#why-choose-us .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add padding here to keep content from touching edges */
}

/* Title Styling */
#why-choose-us .section-title {
    font-size: 2.4rem;
    margin-bottom: 30px;
    font-weight: bold;
    color: #932C14;
}

/* UPDATED: This is the BLUE BOX that holds the features */
#why-choose-us .features-container {
    background-color: #A31F14;
    padding: 50px 0; /* Vertical padding only */
    width: 100%; /* Ensure it takes full width */
    /* border-radius is removed to make it a sharp rectangle */
    transition: padding 0.3s ease;
}

/* Grid layout for the features */
#why-choose-us .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
    transition: gap 0.3s ease;
}


/* All other styles for icons, text, animation, and mobile views remain the same */

#why-choose-us .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#why-choose-us .feature-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#why-choose-us .feature-item:nth-child(1) { transition-delay: 0.1s; }
#why-choose-us .feature-item:nth-child(2) { transition-delay: 0.2s; }
#why-choose-us .feature-item:nth-child(3) { transition-delay: 0.3s; }
#why-choose-us .feature-item:nth-child(4) { transition-delay: 0.4s; }

#why-choose-us .feature-item:hover {
    transform: translateY(-10px);
}

#why-choose-us .icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#why-choose-us .icon-circle i {
    font-size: 50px;
    color: #65150E;
    transition: font-size 0.3s ease;
}

#why-choose-us .feature-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    transition: font-size 0.3s ease;
}

@media (max-width: 768px) {
    #why-choose-us .features-grid {
        gap: 20px;
    }

    #why-choose-us .features-container {
        padding: 30px 0;
    }

    #why-choose-us .icon-circle {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    #why-choose-us .icon-circle i {
        font-size: 35px;
    }

    #why-choose-us .feature-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    #why-choose-us .features-grid {
        gap: 10px;
    }

    #why-choose-us .features-container {
        padding: 25px 0;
    }

    #why-choose-us .icon-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    #why-choose-us .icon-circle i {
        font-size: 25px;
    }

    #why-choose-us .feature-title {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}







/*-----------------------------------------------*/

/* Stats Section */
.stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 60px 20px;
  flex-wrap: wrap;
  background-color: #f8f9fa;
  margin-top: -76px;
}

.stat-box {
  flex: 1 1 300px;
  max-width: 350px;
  padding: 25px;
  border-radius: 16px;
  text-align: left;
  color: #ffffff;
  background: #A31F14;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  background-color: #65150E;
}

.stat-box .counter {
  font-size: 48px;
  font-weight: 700;
}

.plus-sign {
  font-size: 2rem;
  font-weight: bold;
  vertical-align: super;
  margin-left: 2px;
}

.stat-box h4 {
  font-size: 18px;
  margin: 10px 0 10px;
  font-weight: 600;
}

.stat-box p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Services Section */
/* Container for centering content */
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Services Section Styling */
        .services {
            padding: 60px 0;
        }

        .services h2 {
            text-align: center;
            font-size: 32px;
            color: #A31F14;
            font-weight: 700;
            margin-bottom: 40px;
        }

        /* Carousel Wrapper */
        .carousel-wrapper {
            position: relative;
            overflow: hidden;
        }

        /* Carousel Track */
        .carousel-track {
            display: flex;
            transition: transform 0.7s ease-in-out;
        }

        /* Service Card Styling */
        .service-card {
            flex: 0 0 calc(33.333% - 20px); /* Three cards visible with gap */
            margin: 0 10px;
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .service-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15);
        }

        .service-card .image {
            height: 20rem;
            background-size: cover;
            background-position: center;
        }

        .service-card .content {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .service-card h4 {
            font-size: 18px;
            color: #A31F14;
            margin: 0 0 10px 0;
        }

        .service-card p {
            font-size: 14px;
            color: #444;
            line-height: 1.6;
            flex-grow: 1;
            margin-bottom: 20px;
        }

        .btn-small {
            text-decoration: none;
            align-self: flex-start;
            padding: 8px 16px;
            font-size: 13px;
            border-radius: 20px;
            background-color: #A31F14;
            color: white;
            transition: background-color 0.3s ease;
        }

        .btn-small:hover {
            background-color: #65150E;
        }

        /* Carousel Navigation Buttons */
        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 24px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease;
        }

        .carousel-btn:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        .carousel-btn.prev {
            left: 15px;
        }

        .carousel-btn.next {
            right: 15px;
        }


        /* Carousel Dots */
        .carousel-dots {
            display: flex;
            justify-content: center;
            margin-top: 30px;
            gap: 10px;
        }

        .carousel-dots .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #ccc;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .carousel-dots .dot.active {
            background: #A31F14;
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .service-card {
                flex: 0 0 calc(50% - 20px); /* Two cards on tablets */
            }
        }

        @media (max-width: 768px) {
            .service-card {
                flex: 0 0 calc(100% - 20px); /* One card on mobile */
            }

            .carousel-btn {
                top: auto;
                bottom: -50px; /* Position buttons below on mobile */
                transform: translateY(0);
            }

            .carousel-btn.prev {
                left: 35%;
                transform: translateX(-50%);
            }

            .carousel-btn.next {
                right: 35%;
                transform: translateX(50%);
            }
            
            .services {
                padding-bottom: 100px; /* Add space for buttons */
            }
        }
/* Quick Connect Section */
/* Add this to your CSS to control the container's width */
.container-con {
  width: 100%;
  max-width: 43rem; /* Adjust as needed */
  margin: 0 auto;
  padding: 0 20px; /* Adds space on the sides for smaller screens */
  box-sizing: border-box;
}

.connect-section {
  display: flex;
  justify-content: center; /* Horizontally center the content */
  align-items: center;   /* Vertically center the content */
  padding: 60px 0;     /* Padding on top/bottom, none on sides */
  background-image: url('images/aluminium.png');
  background-size: cover; /* Changed back to cover for a full-bleed background */
  background-position: center;
  min-height: 700px;

  /* --- KEY CHANGES --- */
  /* margin property removed */
  /* border-radius property removed */
}

.connect-form {
  flex: 0 1 500px; /* Set a max-width for the form */
  background-color: #f8f9fa;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* All other styles for form inputs, buttons, etc. remain the same */

.connect-form input,
.connect-form select,
.connect-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
  color: #333;
  font-size: 16px;
  box-sizing: border-box;
}

.connect-form button {
  width: 100%;
  background-color: #A31F14;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.connect-form button:hover {
  background-color: #65150E;
}


/* --- Responsive Tablet Styles --- */
@media (max-width: 1024px) {
  .caption-container {
    max-width: 65%;
  }

  .service-card {
    flex-basis: 48%; /* 2 cards per view */
    margin-right: 2%;
  }
}

/* --- Responsive Mobile Styles --- */
@media (max-width: 768px) {
  .hero-slider {
    height: 60vh; /* Adjust height for mobile */
  }

  .caption-container {
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 100%;
    text-align: center;
  }

  .sub-caption {
    max-width: 100%;
  }

  .slider-dots {
      bottom: 15px;
  }

  .stats {
    padding: 40px 15px;
    gap: 15px;
  }

  .services, .connect-section {
      padding: 40px 0;
  }

  .service-card {
    flex-basis: 100%; /* 1 card per view */
    margin-right: 15px;
  }

  .carousel-wrapper {
      padding: 0 15px; /* Add padding to see the side card peeking */
  }

  .connect-section {
    flex-direction: column-reverse; /* Form first on mobile */
    gap: 30px;
  }

  .connect-form {
    padding: 30px 20px;
  }
}

/*======------- Clients Section (Logo Carousel) ---------======*/
.container1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.clients-section {
    text-align: center;
    overflow: hidden; /* Important for the slider effect */
}

.section-title {
    font-size: 2.5rem;
    color: #a53f3f; /* Color extracted from the image */
    
    font-weight: bold;
}

/* ======== Logo Carousel Styling ======== */
.logo-slider {
    position: relative;
    width: 100%;
    padding: 20px 0;
    background: white;
    /* Creates a faded edge effect */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
    mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
}

.logo-track {
    display: flex;
    width: calc(250px * 10); /* (width of slide) * (number of slides) */
    animation: scroll 30s linear infinite; /* Animation magic */
}

/* Pause animation on hover 
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}*/

.slide1 {
    width: 250px; /* Width of each slide item */
   
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide1 img {
    max-width: 100%;
    height: auto;
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.slide1 img:hover {
    filter: grayscale(0%); /* Full color on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* ======== Keyframes for the Infinite Scroll ======== */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 5)); /* (width of slide) * (number of original slides) */
    }
}


/* ======== Responsive Design ======== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .logo-track {
        animation-duration: 25s; /* Speed up animation on smaller screens */
    }

    .slide1 {
        width: 200px;
        
    }

    /* Adjust animation and track width for the new slide size */
    .logo-track {
        width: calc(200px * 10);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-200px * 5));
        }
    }
}



/* =================================== */
/* Services Section           */
/* =================================== */

.container-services {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
}

.services-title {
    font-size: 2.8rem;
    font-weight: bold;
    background: linear-gradient(to right, #0059ff, #fc0505);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.services-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 20px;
}

.service-box {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    color: white;
    height: 240px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.service-box-01 { background-image: url('img/signage work.webp'); animation: fadeInUp 0.6s 0.1s forwards; }
.service-box-02 { background-image: url('img/StainlesSteelWorks.webp'); animation: fadeInUp 0.6s 0.3s forwards; }
.service-box-03 { background-image: url('img/Water Proofing.webp'); animation: fadeInUp 0.6s 0.5s forwards; }


.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(163, 31, 20, 0.6), rgba(163, 31, 20, 0.6));
    z-index: 1;
}

.service-content {
    position: relative;
    z-index: 2;
    text-align: left;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    opacity: 0;
    transition-delay: 0.2s;
}

.service-box.animate-in .service-content {
    transform: translateY(0);
    opacity: 1;
}

.service-number {
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.8;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 5px 0;
    text-align: center;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.4;
}

.service-box:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.service-box:hover .service-overlay {
    background: linear-gradient(to bottom right, rgba(163, 31, 20, 0.8), rgba(163, 31, 20, 0.8));
}

.explore-more-container {
    text-align: center;
    margin-top: 50px;
}

.explore-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to right, #4A90E2, #D0028D);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    position: relative;
    overflow: hidden;
}

.explore-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.6);
}

.explore-more-btn:active {
    transform: translateY(1px);
}

.explore-more-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.3s;
}

.explore-more-btn:hover::after {
    left: 110%;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-box {
        height: 200px;
        animation-delay: 0s !important;
        animation-duration: 0.5s !important;
    }
    .services-title {
        font-size: 2rem;
    }
    .services-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    .explore-more-container {
        margin-top: 30px;
    }
    .explore-more-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-card-number {
        top: 15px;
        right: 15px;
        font-size: 1.2rem;
    }
    .service-card-title {
        font-size: 1.2rem;
    }
}
/* ======== Quote Section ======== */
.quote-section {
    
    text-align: center;
    width: 100%;
}

.excellence-quote {
    border: none;
    margin: 0;
}

.quote-text {
    font-size: 3.5rem; /* Large font size for impact */
    font-family: "Lora", serif;
    font-style: italic;
    color: #a53f3f; /* Reddish-brown color from the image */
    margin-bottom: 20px;
    margin-top: 20px;
    font-weight: 50;
    line-height: 1.4;
}

.excellence-quote footer {
    font-size: 1.2rem;
    color: #6c757d;
    font-style: italic;
}

/* ======== Animation Styling (for script.js) ======== */
/* Style for individual characters wrapped in spans by JS */
.quote-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Class added by JS to trigger the animation */
.quote-text span.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* ======== Responsive Design ======== */
@media (max-width: 768px) {
    .quote-text {
        font-size: 1.03rem; /* Adjust font size for tablets */
    }
}

@media (max-width: 480px) {
    .quote-text {
        font-size: 1.3rem; /* Adjust font size for mobile phones */
    }

    .excellence-quote footer {
        font-size: 1rem;
    }
}