/* ===================================
    Crafto - Logistics 
====================================== */
/* font 
@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');*/
/* variable */
/*:root {      
    --alt-font: "Urbanist", sans-serif;
    --primary-font: "Urbanist", sans-serif;
    --base-color: #ffc700;
    --dark-gray: #141414;
    --medium-gray: #707070;
    --aluminium-gray: rgba(255, 255, 255, 0.4);
}*/
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

    :root {      
    --alt-font: 'Exo 2',sans-serif !important;
    --primary-font: 'Orbitron',sans-serif !important;
    --base-color: #ffc700;
    --dark-gray: #141414;
    --medium-gray: #707070;
    --aluminium-gray: rgba(255, 255, 255, 0.4);
}*/
/* reset */
body{
    font-size: 18px;
    line-height: 30px;
}
a:hover{
    color: var(--dark-gray);
}
.pri{
    font-family: var(--primary-font);
}
.alt{
    font-family: var(--alt-font);
}
/* header */
.navbar .navbar-nav .nav-link {
    font-size: 18px;
    font-weight: 600;
}
.navbar .navbar-nav .dropdown.open .dropdown-menu {
    background-color: var(--dark-gray);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
    font-size: 17px;
    font-weight: 500;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--alt-font);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li:hover{
  background-color: #ffc700;
}
/* 1. FORCE Parent Color if ANY child link is active */
.navbar-nav .nav-item.dropdown:has(.active-subpage) > .nav-link,
.navbar-nav .nav-item.dropdown:has(.active-subpage) > .dropdown-toggle {
    color: #FFC300 !important;
}


/* 2. Active Tab State (The one you clicked) */
.remanufacture-item .dropdown-menu .dropdown-item.active-subpage {
    background-color: #FFC300 !important;
    color: #fff !important;
}

/* 3. Dropdown Item Hover (While moving mouse) */
.remanufacture-item .dropdown-menu .dropdown-item:hover {
    background-color: #FFC300 !important;
    color: #ffffff !important;
}

/* 4. Keeps the main 'Remanufacturing' text yellow if we are on a sub-page */
.remanufacture-item.parent-active > .nav-link,
.remanufacture-item.parent-active > .dropdown-toggle {
    color: #FFC300 !important;
}

/* 3. Style for the Active Subpage Link */
.dropdown-menu .dropdown-item.active-subpage {
    background-color: #FFC300 !important;
    color: #000000 !important;
}

/* 4. Ensure no gap breaks the hover state */
.dropdown-menu {
    margin-top: -2px !important;
    padding-top: 5px !important;
}
.header-top-bar div>a {
    color: var(--light-gray);
}
.header-top-bar div>a:hover {
    color: var(--white);
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a i {
    font-size: 30px;
}
.navbar .navbar-nav .dropdown .dropdown-menu a i {
    width: 35px;
}
header .btn.btn-box-shadow.btn-base-color,
.btn.btn-base-color {
    color: var(--dark-gray);
}
header .btn.btn-box-shadow.btn-base-color:hover,
.btn.btn-box-shadow.btn-base-color:hover {
    color: var(--dark-gray);
}
header .btn.btn-small {
    font-size: 15px; 
    padding: 10px 18px;
}
/* btn */
.btn.btn-hover-animation-switch.btn-link {
    padding-top: 0;
}
.btn { 
    text-transform: inherit;
    font-weight: 600;
    letter-spacing: 0;
}
.btn.btn-extra-large {
    font-size: 18px;
    padding: 16px 32px;
}
.btn.btn-large {
    font-size: 17px;
    padding: 14px 28px;
}
.btn.btn-medium {
    font-size: 16px; 
    padding: 12px 24px;
}
.btn.btn-small {
    font-size: 15px;
}
.btn.btn-very-small {
    font-size: 14px; 
    padding: 9px 20px;
}

/* counter style */
.counter-style-04 .vertical-counter:after {
    color: var(--base-color);
}
.review-star-icon i {
    color: var(--base-color);
}

.google-maps-link a:hover {
    color: var(--white);
}

/* footer style */
footer ul li {
    margin-bottom: 1px;
}
footer ul li a{
    font-family: var(--alt-font);
}
footer p {
    line-height: 28px;
    font-family: var(--alt-font);
}
/* page title */
.page-title-double-large h1 {
    font-size: 3.375rem;
    line-height: 4.688rem;
    font-family: var(--primary-font);
}
.page-title-double-large h2 {
    font-size: 16px;
    line-height: 28px;
}

/* top bottom left right class */
.right-12 {
    right: 12%;
}

.bg-jungle-green {
    background-color: #2ebb79;
}
/* Outside box */
.outside-box-top-205px {
    margin-top: -205px;
}
/* Transparent background color */
.bg-gradient-gray-light-dark-transparent {
    background-image: linear-gradient(to top, #f7f7f7 0%, transparent 100%);
}
@media (max-width: 1399px) {
    .xl-h-180px {
        height: 180px;
    }
    .xl-w-180px {
        width: 180px;
    }
}
@media (max-width: 1199px) {
    .outside-box-top-200px {
        margin-top: -150px;
    }
}
@media (max-width: 991px) {
    .outside-box-top-200px {
        margin-top: 0;
    }
    .navbar .navbar-nav .dropdown.open .dropdown-menu {
        padding-bottom: 15px;
    }
    .navbar .navbar-nav .dropdown .dropdown-menu.show {
        background-color: var(--dark-gray);
    }
}
.service-title{
    margin-top: 240px;
    font-family: var(--primary-font);
}
.banner{
  margin-top: 100px;
}
.banner h1{
  font-size: 30px !important;
  margin-bottom: 0 !important;
}
/* Specific settings for screen widths between 300px and 760px */
@media (max-width: 767px) {
    /* 1. Remove the forced top margins on mobile */
    .top-space-margin, 
    .header-with-topbar + .top-space-margin,
    .banner {
        margin-top: 10 !important;
    }

    /* 2. Specific fix for the Laser Component banner */
    .laser-comp .small-screen {
        /* Changing height to 'auto' or a viewport width-based height 
           helps show the 'full' image context */
        height: 250px !important; 
        min-height: 250px !important;
        display: flex !important;
        align-items: flex-end !important;
        padding-bottom: 20px !important;
    }

    /* 3. Force the background to show the full image */
    .laser-comp.cover-background {
        /* 'contain' ensures the whole image is visible, 
           '100% 100%' stretches it to fit (use carefully) */
        background-size: 100% 100% !important; 
        background-position: center top !important;
    }

    /* 4. Text adjustments */
    .service-title {
        font-size: 16px !important;
        line-height: 1.2;
    }

    .banner h1 {
        font-size: 24px !important;
        margin-bottom: 10px !important;
    }
}
.leadership-section {
    background-color: #f9f9f9; /* Change to your theme background color */
}

.owner-image-wrapper {
    position: relative;
    padding: 10px;
    border: 2px dashed #d4af37;
    display: inline-block;
}

/* Square image */
.owner-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 8px; /* small radius for modern look */
}


.italic {
    font-size: 18px;
    border-left: 4px solid #ffc700;
    padding-left: 20px;
    margin: 20px 0;
}

@media (max-width: 767px) {
    .owner-img {
        width: 200px;
        height: 200px;
    }
    .text-center-mobile {
        text-align: center !important;
    }
}
/*contact info*/
.horizontal-equal {
    background: #fff;
    border-radius: 8px;
    overflow: hidden; /* Clips the image to the border radius */
    border: 1px solid #eee;
    height: 100%; /* Ensures all boxes in a row match height */
    
}

.box-image {
    flex: 1; /* Takes 50% width */
    max-width: 50%;
}

.box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image fill the area without stretching */
    display: block;
}

.box-details {
    flex: 1; /* Takes 50% width */
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers text vertically next to image */
    background-color: #ffffff;
}

.fs-16 { font-size: 16px; }

/* Responsive: stack them on very small mobile screens */
@media (max-width: 480px) {
    .horizontal-equal {
        flex-direction: column;
    }
    .box-image, .box-details {
        max-width: 100%;
    }
    .box-image img {
        height: 200px;
    }
}

.box-details {
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.contact-box:hover .box-details {
    transform: translateX(4px);
}
.contact-box {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Image zoom effect */
.box-image img {
    transition: transform 0.45s ease;
}

.contact-box:hover .box-image img {
    transform: scale(1.08);
}
/* Black background for the dropdown container */
.custom-dropdown-dark {
    background-color: #000000 !important; /* Deep black/dark gray */
    border: none;
    padding: 10px 0;
}

/* White text for the links */
.custom-dropdown-dark .dropdown-item {
    color: #ffffff !important;
    padding: 12px 20px;
    border-bottom: 1px solid #333; /* subtle separator like your image */
    font-family: var(--alt-font);
}

/* Remove border from last item */
.custom-dropdown-dark li:last-child .dropdown-item {
    border-bottom: none;
}

/* Hover state: changes background to a slightly lighter gray */
.custom-dropdown-dark .dropdown-item:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Ensure the arrow/icon logic works with the dark theme if needed */
.custom-dropdown-dark::before {
    border-bottom-color: #000000 !important;
}
/* Yellow Styling */
.text-yellow { color: #ffc700 !important; }
.bg-yellow { background-color: #ffc700 !important; }
.btn-yellow { 
    background-color: #ffc700; 
    color: #000; 
    font-weight: 700;
}
.btn-yellow:hover {
    color: #000;
    border: 1px solid black;
}

/* Offcanvas Drawer Styling */
.w-md-400px { width: 400px !important; }
.bg-white-transparent-1 { background-color: rgba(255, 255, 255, 0.05); }
.border-white-transparent { border-color: rgba(255, 255, 255, 0.1) !important; }

/* Custom Highlight Effect */
.text-highlight {
    position: relative;
    z-index: 1;
}
.text-highlight span {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: -1;
}
.text-justify{
    text-align: justify;
}
/* This ensures that when you click 'Get Quote', the section 
   stops 100px before the top, giving space for your header */
#contact-form {
    scroll-margin-top: -200px; 
}

/* Ensure smooth movement instead of a sudden jump */
html {
    scroll-behavior: smooth;
}
/* Clean Industrial Styles */
.bg-very-light-gray {
    background-color: #f7f7f7 !important;
}

.shadow-xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

/* Decorative Pill Background */
.absolute-pill-bg {
    position: absolute;
    top: 10%;
    left: -10%;
    width: 80%;
    height: 80%;
    background: #FFD700;
    opacity: 0.1;
    border-radius: 100px;
    z-index: 0;
    transform: rotate(-15deg);
}

.panel-box {
    border: 1px solid #eeeeee;
}

/* Spacing Fixes */
.py-9 {
    padding-top: 90px;
    padding-bottom: 90px;
}

/* Table-like stats appearance */
.border-color-extra-medium-gray {
    border-color: #e4e4e4 !important;
}
/* Backdrop Blur and Transparency */
.bg-white-transparent-backdrop {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.border-white-transparent {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Positioning */
.absolute-center-right {
    position: absolute;
    z-index: 5;
}

/* Optional: Slight hover lift */
.absolute-center-right:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}
.about-video-section {
    position: relative;
    height: 70vh; /* adjust if needed */
    overflow: hidden;
}

.about-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Dark overlay for text readability */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* Content above video */
.about-video-section .container {
    position: relative;
    z-index: 3;
}
/* ================================
   AO FAILURE ANALYSIS – RESPONSIVE
================================ */

/* Desktop (default tweaks) */
#ao-failure-analysis .accordion-header a {
    cursor: pointer;
}

#ao-failure-analysis .accordion-header i {
    transition: transform 0.3s ease;
}

/* Rotate arrow when open */
#ao-failure-analysis .accordion-header a:not(.collapsed) i {
    transform: rotate(180deg);
}

/* Keep text readable */
#ao-failure-analysis p {
    word-break: break-word;
}


/* ================================
   Large Tablets & Small Laptops
   (≤ 1199px)
================================ */
@media (max-width: 1199px) {
    #ao-failure-analysis h3 {
        font-size: 28px;
    }

    #ao-failure-analysis .accordion-header a {
        font-size: 18px;
    }

    #ao-failure-analysis .absolute-center-right {
        right: 120px !important;
        width: 220px;
    }
}


/* ================================
   Tablets (≤ 991px)
================================ */
@media (max-width: 991px) {
    #ao-failure-analysis {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    #ao-failure-analysis .col-lg-6,
    #ao-failure-analysis .col-lg-5 {
        width: 100%;
    }

    #ao-failure-analysis h3 {
        font-size: 26px;
    }

    #ao-failure-analysis .accordion-header a {
        font-size: 17px;
    }

    /* Move overlay inside image */
    #ao-failure-analysis .absolute-center-right {
        position: relative;
        right: auto !important;
        top: auto !important;
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }
}


/* ================================
   Mobile Landscape (≤ 767px)
================================ */
@media (max-width: 767px) {
    #ao-failure-analysis h3 {
        font-size: 24px;
        line-height: 1.3;
    }

    #ao-failure-analysis .accordion-header a {
        font-size: 16px;
        padding: 14px 0;
    }

    #ao-failure-analysis p {
        font-size: 14px;
        line-height: 1.6;
    }

    #ao-failure-analysis .accordion-header span {
        max-width: 85%;
    }
}


/* ================================
   Mobile Portrait (≤ 575px)
================================ */
@media (max-width: 575px) {
    #ao-failure-analysis {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #ao-failure-analysis h3 {
        font-size: 22px;
    }

    #ao-failure-analysis .accordion-header a {
        font-size: 15px;
    }

    #ao-failure-analysis .accordion-header span {
        max-width: 80%;
    }

    #ao-failure-analysis .absolute-center-right {
        padding: 12px;
    }

    #ao-failure-analysis img {
        border-radius: 8px;
    }
}
/* ======================================
   AO REFURBISHMENT SECTION – BASE
====================================== */
#ao-refurbishment {
    overflow: hidden;
}

#ao-refurbishment h3 {
    line-height: 1.25;
}

#ao-refurbishment p {
    word-break: break-word;
}

/* Ensure images scale properly */
#ao-refurbishment img {
    max-width: 100%;
    height: auto;
}

/* ======================================
   LARGE SCREENS (≤ 1199px)
====================================== */
@media (max-width: 1199px) {
    #ao-refurbishment h3 {
        font-size: 28px;
    }

    #ao-refurbishment .fs-18 {
        font-size: 16px;
    }
}

/* ======================================
   TABLETS (≤ 991px)
====================================== */
@media (max-width: 991px) {
    #ao-refurbishment {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* Stack columns */
    #ao-refurbishment .row.align-items-center {
        flex-direction: column;
    }

    #ao-refurbishment .col-lg-6 {
        width: 100%;
    }

    #ao-refurbishment .ps-lg-5 {
        padding-left: 0 !important;
        margin-top: 30px;
    }

    #ao-refurbishment h3 {
        font-size: 26px;
    }

    #ao-refurbishment .row.g-3 {
        margin-bottom: 20px;
    }
}

/* ======================================
   MOBILE LANDSCAPE (≤ 767px)
====================================== */
@media (max-width: 767px) {
    #ao-refurbishment h3 {
        font-size: 24px;
    }

    #ao-refurbishment p {
        font-size: 15px;
        line-height: 1.6;
    }

    #ao-refurbishment .btn {
        width: 100%;
        text-align: center;
    }

    /* Image grid alignment */
    #ao-refurbishment .col-6 {
        width: 100%;
    }

    #ao-refurbishment .col-6.mt-5 {
        margin-top: 15px !important;
    }
}

/* ======================================
   MOBILE PORTRAIT (≤ 575px)
====================================== */
@media (max-width: 575px) {
    #ao-refurbishment {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #ao-refurbishment h3 {
        font-size: 22px;
    }

    #ao-refurbishment .fs-18 {
        font-size: 14px;
    }

    #ao-refurbishment h4 {
        font-size: 22px;
    }

    #ao-refurbishment .fs-13 {
        font-size: 11px;
    }
}

/* ======================================
   MODAL RESPONSIVE FIXES
====================================== */
@media (max-width: 767px) {
    #aoSpecsModal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }

    #aoSpecsModal .modal-body {
        padding: 16px;
    }

    #aoSpecsModal .modal-header h6 {
        font-size: 15px;
    }

    #aoSpecsModal .modal-footer {
        padding: 12px;
    }
}
.unique-field-service {
    padding: 3%;
    background: #fafafa;
    overflow: hidden;
}

/* ABOUT SECTION - LAYERED LOOK */
.layered-about {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.image-stack {
    position: relative;
    flex: 1;
}

.bg-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 30px;
    left: -30px;
    z-index: 1;
    border-radius: 4px;
}

.main-img {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 4px;
    filter: grayscale(20%);
}

.content-stack { flex: 1; }

.modern-badge {
    background: #000;
    color: #fff;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: var(--alt-font);
}

.content-stack h2 {
    font-size: 48px;
    margin: 20px 0;
    color: #111;
    font-family: var(--primary-font)
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .layered-about { flex-direction: column; }
    .staggered-grid { grid-template-columns: 1fr; }
    .content-stack h2 { font-size: 32px; }
}
.precision-services {
  padding: 30px 20px;
  background: #f6f7f9; /* light industrial */
}

.precision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

.precision-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,.08);
  transform: translateY(0);
  transition: transform .5s ease, box-shadow .5s ease;
}

.precision-img {
  position: relative;
  overflow: hidden;
}

.precision-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.5s ease;
}

.precision-card:hover .precision-img img {
  transform: scale(1.08);
}

.precision-content {
  padding: 28px;
  transform: translateY(20px);
  opacity: .85;
  transition: all .5s ease;
}

.precision-card:hover .precision-content {
  transform: translateY(0);
  opacity: 1;
}

.precision-content h5 {
  margin-bottom: 10px;
  font-weight: 700;
  color: #111;
  font-size: 25px;
  font-family: var(--primary-font);
}

.precision-content p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  font-family: var(--alt-font);
}

.precision-content a {
  display: inline-block;
  margin-top: 12px;
  color: #ffc700;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--alt-font);
}
/* ===========================
   LARGE DESKTOP (≤1200px)
   =========================== */
@media (max-width: 1200px) {
  .precision-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .precision-img {
    height: 220px;
  }
}

/* ===========================
   TABLET LANDSCAPE (≤992px)
   =========================== */
@media (max-width: 992px) {
  .precision-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .precision-services {
    padding: 70px 0;
  }

  .precision-img {
    height: 210px;
  }

  .precision-content {
    padding: 24px;
  }

  .precision-content h3 {
    font-size: 18px;
  }
}

/* ===========================
   TABLET / MOBILE (≤768px)
   =========================== */
@media (max-width: 768px) {
  .precision-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  /* Disable hover-based motion on touch devices */
  .precision-card,
  .precision-card:hover {
    transform: none;
  }

  .precision-card img {
    transform: none !important;
  }

  .precision-rail {
    display: none;
  }

  .precision-content {
    transform: none;
    opacity: 1;
  }

  .precision-img {
    height: 200px;
  }

  .precision-content h3 {
    font-size: 17px;
  }

  .precision-content p {
    font-size: 14px;
  }
}

/* ===========================
   SMALL MOBILE (≤480px)
   =========================== */
@media (max-width: 480px) {
  .precision-services {
    padding: 55px 0;
  }

  .precision-img {
    height: 180px;
  }

  .precision-content {
    padding: 20px;
  }

  .precision-content h3 {
    font-size: 16px;
  }

  .precision-content p {
    font-size: 13.5px;
  }

  .precision-content a {
    font-size: 14px;
  }
}
.fiber-grid-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Balanced columns */
    gap: 80px;
    align-items: start; /* Start alignment for sticky effect */
    max-width: 1200px;
    margin: 0 auto;
}

.fiber-text-col {
    padding-right: 20px;
}

.sub-section-title {
    margin-top: 40px;
    color: #333;
    font-size: 1.5rem;
    border-left: 4px solid #ffc700;
    padding-left: 15px;
}

/* This makes the image stay with the user as they scroll the text */
.sticky-wrapper {
    position: sticky;
    top: 50px; 
    display: flex;
    justify-content: center;
}

.styled-infographic {
    max-width: 480px; /* Adjust based on your original image aspect ratio */
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.repair-icons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.icon-card {
    text-align: left;
}
.icon-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
    font-family: var(--primary-font);
}

.icon-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
    font-family: var(--alt-font);
}
/* Base Icon Box Styling */
.icon-box {
    width: 50px;
    height: 50px;
    background: #ffc700; /* Optional: Swaps colors on hover */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 10px;
    margin-bottom: 15px;
    
    /* 1. Transition ensures the movement is smooth, not jerky */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Rotate Effect on Hover */
.icon-card:hover .icon-box {
    transform: rotate(360deg);
    background: #ffc700; /* Optional: Swaps colors on hover */
    color: #fff;
}
.h1tag{
    white-space: nowrap;
}
/* --- Desktop & Tablet (Above 1024px) --- */
@media (max-width: 1200px) {
    .fiber-grid-container {
        padding: 0 30px;
        gap: 40px;
    }
}

/* --- Tablet & Large Phones (Below 1024px) --- */
@media (max-width: 1024px) {
    .fiber-grid-container {
        grid-template-columns: 1fr; /* Stack columns vertically */
        gap: 50px;
    }

    .fiber-text-col {
        padding-right: 0;
        order: 2; /* Move text below the image if preferred, or keep 1 */
    }

    .fiber-img-col {
        order: 1; /* Puts image on top for mobile users */
    }

    .sticky-wrapper {
        position: relative; /* Disable sticky when stacked */
        top: 0;
    }

    .styled-infographic {
        max-width: 100%; /* Allow image to fill screen width */
        max-height: 1000px; /* Prevent image from becoming too tall */
        object-fit: cover;
    }
    
    .h1tag {
        width: 100% !important; /* Fix the fixed width issue */
    }
}

/* --- Small Phones (Below 768px) --- */
@media (max-width: 767px) {
    .fiber-service-section {
        padding: 40px 0;
    }

    .fiber-grid-container {
        padding: 0 20px;
    }

    .repair-icons-row {
        grid-template-columns: 1fr; /* Icons stack on top of each other */
        text-align: center;
    }

    .icon-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sub-section-title {
        font-size: 1.3rem;
    }

    .repair-points li {
        margin-bottom: 20px;
    }
}
.remanufacturing-section {
    padding: 80px 5%;
    background-color: #fff;
}

.reman-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exactly two equal sections */
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image Side & Zoom Effect */
.image-zoom-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden; /* Clips the image when it zooms */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.zoom-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease; /* Smooth transition */
}

/* The Hover Effect */
.image-zoom-container:hover .zoom-img {
    transform: scale(1.15); /* Zooms in by 15% */
}

/* Content Side */
.reman-content-column .reman-text p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #444;
    font-family: var(--alt-font);
}

.reman-content-column h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-family: var(--primary-font);
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .reman-container {
        grid-template-columns: 1fr;
    }
    .reman-image-column {
        order: 1; /* Puts image on top for mobile */
    }
}
.reman-icon-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.reman-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5%;
}

.reman-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* Featured card is slightly larger and has a brand border */
.reman-card.featured {
    border-top: 5px solid #ffc700;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(-10px);
}

.reman-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    background: #fff;
}

/* Icon Styling & Rotation */
.reman-icon-circle {
    width: 80px;
    height: 80px;
    background: #fff5ed;
    color: #ffc700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: all 0.5s ease;
}

.reman-card:hover .reman-icon-circle {
    background: #ffc700;
    color: #fff;
    transform: rotateY(360deg);
}

.reman-card h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
    font-family: var(--primary-font);
    font-size: 30px;
}

.reman-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    font-family: var(--alt-font);
}

.center-auto {
    margin-left: auto;
    margin-right: auto;
}
#backToTop {
    display: block; /* Keep it in the DOM */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background-color: #ffc700; /* Your brand orange */
    color: white;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    opacity: 0; /* Hidden when at top */
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Appearance when scrolling */
#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background-color: #333; /* Darker on hover */
    transform: translateY(-5px); /* Slight lift */
}
@media (max-width: 767px) {
    /* 1. Remove the large top margins that create empty space */
    .top-space-margin, 
    .header-with-topbar + .top-space-margin {
        margin-top: 10 !important;
    }

    /* 2. Make the background image fully visible */
    section.cover-background {
        background-size: contain !important; /* Shows 100% of the image without cropping */
        background-position: center top !important;
        height: auto !important;
        /* Matches the height to the image width. 
           Change 16/9 to your image's specific ratio if needed */
        aspect-ratio: 16 / 9; 
        min-height: unset !important;
    }

    /* 3. Adjust the inner container to fit the new smaller height */
    .small-screen {
        height: 100% !important;
        min-height: auto !important;
        display: flex !important;
        align-items: center !important;
    }

    /* 4. Ensure no extra padding pushes the image down */
    .pt-0, .pb-0 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}
@media (min-width: 768px) {
    /* 1. Reset forced heights and margins */
    .top-space-margin {
        margin-top: 96px; /* Adjust this to match your header height */
    }

    section.cover-background {
        /* 'contain' ensures the whole image is visible */
        background-size: contain !important; 
        background-repeat: no-repeat !important;
        background-position: center top !important;
        
        /* This is the magic part: it forces the height to match the image width */
        /* If your image is 1920x600, use 1920 / 600. If 16:9, use 16 / 9 */
        aspect-ratio: 1920 / 600; 
        
        height: auto !important;
        min-height: unset !important;
    }

    /* 2. Fix the internal alignment */
    .small-screen {
        height: auto !important;
        /* Use padding to create space for text instead of fixed height */
        padding: 20% 0 !important; 
        min-height: unset !important;
    }

    /* 3. Ensure the container takes up the full width */
    .container {
        height: 100%;
    }
}
/* --- Desktop (Large Screens) --- */
@media (min-width: 992px) {
    section.full-screen {
        height: calc(100vh - 96px) !important;
    }
    section.full-screen video {
        object-fit: cover !important;
    }
}

/* --- Mobile & Tablet (Small Screens) --- */
@media (max-width: 991px) {
    /* 1. Adjust Section Height to fit the video shape */
    section.full-screen.sm-h-650px, 
    section.full-screen.md-h-600px {
        height: auto !important;
        min-height: 250px !important; /* Ensures the box isn't zero height */
    }

    section.full-screen .swiper,
    section.full-screen .swiper-wrapper,
    section.full-screen .swiper-slide {
        height: auto !important;
        aspect-ratio: 16 / 9; /* Matches your video dimensions */
    }

    section.full-screen video {
        object-fit: contain !important; /* Shows the FULL video */
        position: relative !important;
    }

    /* 2. Position the Text and Button over the video */
    section.full-screen .container {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center; /* Centers the content vertically */
        justify-content: center; /* Centers the content horizontally */
        z-index: 10;
        background: rgba(0, 0, 0, 0.2); /* Subtle dark tint to make words pop */
    }

    section.full-screen .row {
        width: 100%;
        text-align: center; /* Centers the text and button */
    }

    /* 3. Scale down text and button so they fit in the video box */
    section.full-screen h3 {
        font-size: 16px !important; /* Smaller heading for mobile */
        margin-bottom: 10px !important;
        line-height: 1.2;
    }

    section.full-screen .fs-20 {
        font-size: 11px !important; /* Smaller sub-text */
        line-height: 1.3;
        margin-bottom: 15px !important;
        padding: 0 10px;
        opacity: 0.9 !important;
    }

    section.full-screen .btn {
        padding: 8px 15px !important; /* Smaller button */
        font-size: 10px !important;
    }

    /* Hide video icons if they overlap the button too much on mobile */
    section.full-screen .video-icon-box {
        transform: scale(0.7);
        margin-top: 10px !important;
    }
}
.about-gallery-container {
    position: relative;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.about-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: #fff;
    border: 1px solid #eee;
}

/* Big Image - Now 60% of the container */
.card-large {
    width: 60%; 
    height: 420px; 
    z-index: 1;
}

/* Small Image - Pushed to the right using align-self-end */
.card-small {
    width: 50%; 
    height: 220px; 
    margin-top: -160px; /* Slight pull up for style, change to 0 if you want NO overlap at all */
    z-index: 2;
    margin-left: 450px;
}

.about-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Yellow Badge - Floating in the middle */
.founded-badge {
    position: absolute;
    background: #ffc700;
    padding: 10px 18px;
    left: 50%; /* Adjusted to sit near the edge of the big image */
    top: 70%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    box-shadow: 0 10px 25px rgba(255, 199, 0, 0.4);
}

.founded-badge .year {
    font-size: 36px;
    font-weight: 800;
    color: #000;
    display: block;
    line-height: 1;
}

.founded-badge .text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000;
    display: block;
    font-family: var(--alt-font);
}

/* Labels */
.card-label {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    letter-spacing: 1px;
    font-family: var(--alt-font);
}
/* --- Entrance Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card, .founded-badge {
    opacity: 0; /* Starts invisible */
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Specific Delays */
.card-large {
    animation-delay: 2s; 
}

.card-small {
    animation-delay: 2.5s; /* Appears slightly after the big one */
}

.founded-badge {
    animation-delay: 2.8s; /* Appears last */
}
/* --- Responsive Layout (Starting from 300px) --- */

@media (min-width: 300px) and (max-width:767px){
    .about-gallery-container {
        display: block; /* Switch from flex to block for easier overlapping */
        position: relative;
        padding-bottom: 80px; /* Space for the overlapping small image */
    }

    .card-large {
        width: 85%; /* Big image takes most of the width */
        height: 280px;
        margin-left: 0;
    }

    .card-small {
        width: 50%; /* Small image size */
        height: 180px;
        position: absolute;
        right: 0;
        bottom: 0; /* Aligns it to the bottom right of the container */
        margin-top: 0;
        margin-left: 0; /* Removes your 450px margin which breaks mobile */
        z-index: 2;
        border: 4px solid #fff; /* Adds a border to separate it from the big image */
    }

    .founded-badge {
        left: 45%;
        top: 60%;
        padding: 8px 12px;
        min-width: 100px;
    }
    
    .founded-badge .year { font-size: 24px; }
}

/* --- Tablet & Desktop Adjustments (768px and up) --- */
@media (min-width: 768px) and (max-width:1000px) {
    .card-large {
        width: 70%;
        height: 400px;
    }

    .card-small {
        width: 40%;
        height: 250px;
        bottom: -20px; /* Keeps the overlap style */
    }

    .founded-badge {
        left: 50%;
        top: 60%;
        padding: 10px 18px;
    }
}
@media (min-width:1000px) and (max-width:1240px) {
    .card-large {
        width: 70%;
        height: 400px;
    }

    .card-small {
        width: 55%;
        height: 250px;
        bottom: -20px; /* Keeps the overlap style */
        margin-left: 300px !important;
    }

    .founded-badge {
        left: 50%;
        top: 55%;
        padding: 10px 18px;
    }
}
/*what we do*/
.precision-services {
    background-color: #0d0d0d;
    padding: 30px 20px;
}

.text-yellow { color: #ffc700 !important; }
.text-grey { color: #888; }

.border-grey {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card {
    position: relative;
    /* Reduced padding to make it look wider */
    padding: 40px 35px; 
    background-color: #161616;
    height: 100%;
    /* Lower min-height for landscape ratio */
    min-height: 300px; 
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    background-color: #1e1e1e;
    transform: translateY(-8px);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    outline: 1px solid #ffc700;
}

/* Icon Box - VISIBLE BY DEFAULT */
.icon-box {
    width: 50px;
    height: 50px;
    border: 1px solid #ffc700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc700;
    font-size: 22px;
    margin-bottom: 20px;
    background: transparent; /* No background by default */
    transition: 0.3s;
}

/* Icon Box - Changes on hover */
.service-card:hover .icon-box {
    background-color: #ffc700;
    color: #000;
}

.bg-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: 900;
    color: rgba(255,239,0,0.2);
    font-family: var(--primary-font);
}

.service-card h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 19px;
    font-family: var(--primary-font);
}

.service-card p {
    color: #999;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-family: var(--alt-font);
}

.link-yellow {
    color: #ffc700;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    margin-top: auto; /* Pushes link to bottom */
}

/* Stats Section */
.stats-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* Small Headline */
.sub-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFC300;
    text-transform: uppercase;
    display: block; /* Ensures it takes full width to center properly */
    margin-bottom: 12px;
    text-align: center;
    font-family: var(--alt-font);
}

/* Big Headline */
.main-title {
    font-size: 42px;
    font-weight: 800;
    color: #232323;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-align: center;
    max-width: 800px; /* Prevents the heading from being too wide on desktops */
    margin-left: auto;
    margin-right: auto;
    font-family: var(--primary-font);
}
.main-titles {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-align: center;
    max-width: 800px; /* Prevents the heading from being too wide on desktops */
    margin-left: auto;
    margin-right: auto;
    font-family: var(--primary-font);
}
/*why choose us section*/
/* Ensure the container covers the full height of the section 
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 11; 
    pointer-events: none; 
}

.float-item {
    position: absolute;
    background: rgba(249, 183, 4, 0.15); 
    border-radius: 50%;
    filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto; 
}


.float-item:hover {
    background: rgba(249, 183, 4, 0.6);
    filter: blur(0px);
    box-shadow: 0 0 30px rgba(249, 183, 4, 0.5);
    transform: scale(1.3) translateY(-10px);
    z-index: 12;
}


.float-item:nth-child(1) { width: 70px; height: 70px; left: 3%; top: 15%; }
.float-item:nth-child(2) { width: 100px; height: 100px; right: 5%; top: 10%; }
.float-item:nth-child(3) { width: 50px; height: 50px; left: 12%; top: 45%; }
.float-item:nth-child(4) { width: 130px; height: 130px; right: 8%; top: 55%; }
.float-item:nth-child(5) { width: 40px; height: 40px; left: 20%; top: 80%; }
.float-item:nth-child(6) { width: 90px; height: 90px; right: 15%; top: 85%; }
.float-item:nth-child(7) { width: 60px; height: 60px; left: 35%; top: 5%; } 
.float-item:nth-child(8) { width: 35px; height: 35px; left: 50%; bottom: 5%; }
.float-item:nth-child(9) { width: 80px; height: 80px; left: 85%; top: 35%; }
.float-item:nth-child(10) { width: 55px; height: 55px; left: 5%; bottom: 10%; }
/


.float-item:nth-child(11) { 
    width: 100px; 
    height: 100px; 
    left: 50%; 
    top: 10%; 
    transform: translateX(-50%);
    background: rgba(249, 183, 4, 0.08); 
    filter: blur(5px);
}


.float-item:nth-child(13) { 
    width: 140px; 
    height: 140px; 
    left: 5%; 
    bottom: 25%; 
    transform: translateX(-50%);
    background: rgba(249, 183, 4, 0.1); 
    filter: blur(5px);
}


.float-item:nth-child(n+11):hover {
    background: rgba(249, 183, 4, 0.6);
    filter: blur(0px);
    box-shadow: 0 0 30px rgba(249, 183, 4, 0.5);
    transform: scale(1.3) translateY(-10px);
    z-index: 12; 
}


@keyframes bubblePulse {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.35); }
}*/
.laser-tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff; 
    z-index: 1;
    pointer-events: none;
}

/* 1. Coordinate Grid Background */
.grid-lines {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(to right, rgba(0, 46, 91, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 46, 91, 0.05) 1px, transparent 1px);
    background-size: 50px 50px; /* Size of the grid squares */
    top: -50%;
    left: -50%;
    transform: rotate(15deg); /* Angled for a modern look */
}

/* 2. The Laser Scanner Head */
.laser-scanner {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: scannerMove 15s infinite ease-in-out;
}

.scanner-horizontal {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FFC300, transparent);
    top: 50%;
    box-shadow: 0 0 8px #FFC300;
}

.scanner-vertical {
    position: absolute;
    height: 100%;
    width: 1px;
    background: linear-gradient(180deg, transparent, #FFC300, transparent);
    left: 50%;
    box-shadow: 0 0 8px #FFC300;
}

.scanner-glow {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255,195,0,0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 3. Data Particles */
.data-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #002e5b;
    opacity: 0.1;
}

/* Animations */
@keyframes scannerMove {
    0% { transform: translate(-20%, -20%); }
    25% { transform: translate(10%, 30%); }
    50% { transform: translate(30%, -10%); }
    75% { transform: translate(-10%, 20%); }
    100% { transform: translate(-20%, -20%); }
}

.p1 { top: 20%; left: 30%; animation: particleFloat 5s infinite; }
.p2 { top: 60%; left: 80%; animation: particleFloat 7s infinite reverse; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0); opacity: 0.1; }
    50% { transform: translateY(-20px); opacity: 0.3; }
}
.text-highlight {
    color: #FFC300;
}

/* Responsive adjustment */
@media (max-width: 767px) {
    .main-title {
        font-size: 30px;
        padding: 0 15px;
    }
}
/* Container Background */
.service-process-dark {
    background-color: #000000; 
    padding: 80px 0;
}

/* Default Grid - Explicitly defined borders */
.process-wrapper {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Individual Box - Default State */
.process-box {
    position: relative;
    padding: 35px 40px;
    background-color: #050505; /* Very dark grey default */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
    min-height: 260px; 
    overflow: hidden; /* Needed for the background fill effect */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* --- THE NEW TRANSITION EFFECT (Background Slide) --- */
.process-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111111 0%, #000000 100%);
    transform: translateY(100%); /* Start hidden at bottom */
    transition: transform 0.4s ease;
    z-index: -1;
}

/* --- THE HOVER STATE --- */
.process-box:hover {
    transform: translateY(-5px);
    border-right: 1px solid #ffc700; /* Border lights up */
    border-bottom: 1px solid #ffc700;
    box-shadow: 0 0 20px rgba(255, 199, 0, 0.15); /* Soft yellow glow */
}

.process-box:hover::before {
    transform: translateY(0); /* Background slides up */
}

/* Icon Animation */
.process-icon-wrap {
    width: 45px;
    height: 45px;
    border: 1px solid #ffc700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc700;
    font-size: 18px;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.process-box:hover .process-icon-wrap {
    background-color: #ffc700;
    color: #000000;
    transform: rotateY(360deg); /* Icon flips on hover */
}

/* Text & Numbers */
.ghost-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    font-family: var(--primary-font);
}

.process-box:hover .ghost-number {
    color: #ffc700;
    opacity: 0.2;
    transform: scale(1.2); /* Number grows slightly */
}

.process-title { 
    color: #ffffff; 
    font-weight: 700; 
    font-size: 19px; 
    margin-bottom: 10px;
    transition: color 0.3s ease;
    font-family: var(--primary-font);
}

.process-box:hover .process-title {
    color: #ffc700; /* Title turns yellow on hover */
}

.process-desc { 
    color: #b0b0b0; 
    font-size: 16px; 
    line-height: 1.4;
    font-family: var(--alt-font);
}
.process-main{
    color: white;
    font-weight: 800;
    font-size: 42px;
    font-family: var(--primary-font);
}
.process-sub{
    color:#ffc700 ;
}
/*brand*/
/* Create the "Boxed" Grid appearance */
.brand-grid-border {
    border-top: 1px solid #e4e4e4;
    border-left: 1px solid #e4e4e4;
}

.brand-box-inner {
    padding: 60px 15px;
    text-align: center;
    border-right: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
    background-color: #fff;
    height: 100%;
    transition: background-color 0.3s ease;
}

.brand-box-inner:hover {
    background-color: #f9f9f9;
}

/* Updated Typography to match Reference Image 2 */
/* Updated Typography for larger Brand Titles */
.brand-title {
    display: block;
    font-size: 26px; /* Increased from 20px */
    line-height: 30px; /* Added for better spacing */
    font-weight: 800 !important;
    color: #232323;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    transition: color 0.3s ease; /* Smooth color shift on hover */
}

/* Optional: If you want it even larger on hover */
.brand-box-inner:hover .brand-title {
    color: #f9b704; /* Turns your brand yellow on hover */
}

.brand-sub {
    display: block !important;    /* Forces it to stop being 'inline' */
    visibility: visible !important; 
          /* Ensures it isn't transparent */
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #888888 !important;   /* Grey color */
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-family: var(--alt-font);
}

/* Ensure the hover reveal is still allowed to show outside the box */
.threeD-letter-menu .menu-item {
    overflow: visible !important;
}
/*wings*/
/* Transition Base */
.wing-animate-box {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

/* Hover Animation: Lift & Shine */
.wing-animate-box:hover {
    transform: translateY(-12px) scale(1.02); /* Lifts the box up */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12) !important; /* Enhances existing shadow */
    background-color: #ffffff;
}

/* Optional: Slight zoom on the image when box is hovered */
.wing-animate-box:hover img {
    transform: scale(1.08);
    transition: transform 0.4s ease;
}

/* Optional: Change the bottom border color on hover */
.wing-animate-box:hover .border-top {
    border-color: #ffc700 !important;
    transition: border-color 0.4s ease;
}
/*footer extra*/
/* Background & Section General */
.text-yellow {
    color: #ffc700 !important; /* Bright yellow accent */
}

/* Badge Logic */
.cta-badge {
    display: flex;
    align-items: center;
}

.cta-badge .line {
    width: 30px;
    height: 2px;
    background-color: #ffc700;
    margin-right: 10px;
}

/* Typography */
.cta-title {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

@media (max-width: 767px) {
    .cta-title { font-size: 32px; }
    .cta-phone a { font-size: 22px; }
}

.cta-desc {
    max-width: 450px;
}

/* Button Styling */
.btn-yellow {
    background-color: #ffc700;
    color: #000 !important;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-yellow:hover {
    border: 1px solid white;
     color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 247, 0, 0.2);
}

/* Optional: Add the subtle glow from the image corner */
.cta-section {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,239,0,0.12);
  border-bottom: 1px solid rgba(255,239,0,0.12);
}
/* 1. Ensure the section background doesn't swallow content */
.cta-section {
    z-index: 1;
    position: relative;
}
.cta-buttons{
    margin-bottom: 10px;
}

/* 2. Force Button Visibility */
.custom-yellow-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #f7f700 !important;
    color: #000000 !important;
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* 3. Force Phone Number Visibility */
.phone-number {
    display: block !important;
    color: #f7f700 !important;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 10px;
}

/* 4. Flex Alignment for Desktop vs Mobile */
.cta-flex-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (max-width: 991px) {
    .cta-flex-container {
        align-items: flex-start; /* Aligns left on mobile */
    }
    .phone-number { font-size: 22px; }
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(247, 247, 0, 0.05) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}
@media (min-width: 1400px) {
  .containers {
    max-width: 1400px;
  }
}
.containers {
  margin: 0 auto;
  padding: 0 10px;
}
.display-5{
font-size: 42px;
}
/*home banner*/
.pt-navbar {
    padding-top: 100px !important; /* Adjust based on your actual navbar height */
    z-index: 1;
}

/* 2. Radar Viewport (Centered) */
.radar-viewport {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    position: relative;
}

.radar-container {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. Improved Radar Sweep */
/* Updated Radar Sweep - Needle Only */
.radar-sweep {
    position: absolute;
    /* This width represents the radius of the circle */
    width: 225px; 
    height: 2px; /* Thin line instead of a box */
    top: 50%;
    left: 50%;
    
    /* Sets the rotation point to the very start of the line (the center of the radar) */
    transform-origin: left center; 
    
    /* The Laser Line Style */
    background-color: #ffc700 !important; 
    box-shadow: 0 0 15px rgba(247, 198, 0, 0.8), 0 0 5px #fff;
    
    /* Animation */
    animation: rotateSweep 4s linear infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes rotateSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 4. Grid Circles */
.radar-circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}
.circle-1 { width: 100%; height: 100%; }
.circle-2 { width: 66%; height: 66%; }
.circle-3 { width: 33%; height: 33%; }

/* 5. Metric Boxes */
.radar-box {
    position: absolute;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 4px;
    z-index: 10;
    min-width: 130px;
    text-align: center;
    transition: all 0.4s ease;
}

.radar-box .m-val { display: block; font-weight: 800; font-size: 20px; color: #fff; line-height: 1; margin-bottom: 4px; font-family: var(--primary-font);}
.radar-box .m-label { display: block; font-size: 10px; color: #777; font-weight: 700; letter-spacing: 1px; font-family: var(--alt-font); }

/* Positioning Boxes Around the Center */
.b-1 { top: 10%; left: 0; }
.b-2 { top: 5%; right: 5%; }
.b-3 { bottom: 20%; left: 5%; }
.b-4 { bottom: 10%; right: 0; }

.radar-box:hover {
    border-color: #ffc700;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(247, 247, 0, 0.2);
}
/* 1. Grid Background (Matches Image 2) */
.grid-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px; /* Size of the boxes */
    z-index: 1;
    pointer-events: none;
}

/* 2. Floating Animation for Radar Boxes */
.float-anim {
    animation: floating 3s ease-in-out infinite;
}

.float-anim-delayed {
    animation: floating 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 3. Base Styles (Keep your existing radar code but ensure z-index) */
#hero-matrix {
    background-color: #080808 !important;
    position: relative;
    overflow: hidden;
}

.radar-viewport {
    z-index: 2;
}

/* Adjust radar box to ensure it doesn't conflict with float animation */
.radar-box {
    /* ... existing styles ... */
    transition: border-color 0.4s ease, box-shadow 0.4s ease; /* Remove transform from transition to let animation handle it */
}

/* Maintain positioning but let animation handle the Y axis */
.b-1 { top: 10%; left: 0; }
.b-2 { top: 5%; right: 5%; }
.b-3 { bottom: 20%; left: 5%; }
.b-4 { bottom: 10%; right: 0; }
.lei-title{
    font-size: clamp(36px,5.5vw,74px);
    line-height: 1.1;
    letter-spacing: 2px;
    font-weight: 900;
}
/* --- HERO RESPONSIVE LOGIC --- */

/* 1. Tablet & Small Desktop (1200px and below) */
@media (max-width: 1199px) {
    .radar-container {
        width: 350px;
        height: 350px;
    }
    .radar-sweep {
        width: 175px; /* Half of container */
    }
    .radar-box {
        min-width: 110px;
        padding: 10px 15px;
    }
    .radar-box .m-val { font-size: 16px; }
}

/* 2. Mobile & Tablets (991px and below) - Layout Flips */
@media (max-width: 991px) {
    #hero-matrix {
        padding-top: 80px !important;
        padding-bottom: 50px;
        min-height: auto !important; /* Let content dictate height */
    }

    .lei-header {
        margin-left: 0 !important; /* Reset the ms-10 offset */
        text-align: center;
        margin-top: 50px  !important;
    }

    .lei-title {
        margin-bottom: 20px;
    }

    .d-flex.align-items-center.justify-content-lg-start {
        margin-left: 0 !important; /* Reset the ms-10 offset */
        flex-wrap: wrap; /* Stack buttons if they don't fit */
        gap: 10px;
    }

    .btn {
        margin: 5px !important;
        width: 100%; /* Full width buttons for easier tapping on mobile */
        max-width: 280px;
    }

    /* Shrink the radar so it fits below the text */
    .radar-viewport {
        min-height: 400px;
        margin-top: 30px;
    }

    .radar-container {
        width: 280px;
        height: 280px;
    }

    .radar-sweep {
        width: 140px;
    }

    .radar-box {
        min-width: 100px;
        padding: 8px 12px;
    }
    
    /* Reposition boxes closer to center on small screens */
    .b-1 { top: 0%; left: -10%; }
    .b-2 { top: -5%; right: -10%; }
    .b-3 { bottom: 10%; left: -10%; }
    .b-4 { bottom: 5%; right: -10%; }
}

/* 3. Small Phones (575px and below) */
@media (max-width: 575px) {
    .lei-title {
        font-size: 38px; /* Override clamp if needed */
    }
    .lei-header {
        margin-top: 10px;
    }

    .radar-container {
        width: 220px;
        height: 220px;
    }

    .radar-sweep {
        width: 110px;
    }

    /* Hide specific radar circles or boxes if screen is too tiny */
    .circle-3 { display: none; }
    
    .radar-box {
        min-width: 90px;
    }
    
    .radar-box .m-val { font-size: 14px; }
    .radar-box .m-label { font-size: 8px; }
}

/* 4. Fix for the Grid Background */
@media (max-width: 768px) {
    .grid-background-overlay {
        background-size: 30px 30px; /* Smaller grid for smaller screens */
    }
}
/* Styling for the video popup */
#videoPopup .modal-content {
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

#videoPopup .btn-close {
    background-color: #ffc700; /* Yellow close button */
    padding: 12px;
    border-radius: 50%;
    position: absolute;
    right: -10px;
    top: 20px;
    opacity: 1;
    z-index: 1060;
}

#videoPopup .modal-body {
    padding: 10px;
}
/* 1. Remove the dimming overlay from the modal background */
#videoPopup.modal {
    background: transparent !important;
}

/* 2. Ensure the backdrop is very subtle or gone so the video is bright */
#videoPopup + .modal-backdrop {
    opacity: 0.5 !important; /* Low opacity so video stays bright */
}

/* 3. The Close Button Styling */
/* Ensure the modal background is dark but the video stays bright */
.modal-backdrop {
    z-index: 1050 !important;
    opacity: 0.7 !important;
}

#videoPopup {
    z-index: 999999 !important;
}

/* Close Button Styling */
.force-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #ffc700 !important; /* Your brand yellow */
    color: #000 !important;
    border: none;
    border-radius: 50%;
    z-index: 1000000 !important; /* Higher than EVERYTHING else */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.force-close-btn:hover {
    background-color: #ffffff !important;
    transform: scale(1.1);
}

/* Center the video box on the screen */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}
.btn-outline-light{
    border: 1px solid white;
    padding: 10px;
}
.btn-outline-light a:hover{
    color: black;
}
.btn-outline-light:hover{
    background-color: #ffc700;
}
/*marquee section*/
/* Ticker Container */
.ticker-wrap {
    width: 100%;
    overflow: hidden; /* Hide the text as it leaves the screen */
    background-color: #ffc700; /* Your Brand Yellow */
    padding: 10px 0;
}

/* The Moving Content */
.ticker-content {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: ticker-move 30s linear infinite; /* Adjust 30s for speed */
}

/* Individual Items */
.ticker-item {
    font-family: var(--alt-font); /* Matches your precision laser style */
    font-weight: 800;
    font-size: 14px;
    color: #000;
    padding: 0 40px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Diamond/Bullet separator between items */
.ticker-item::after {
    content: "◆";
    position: absolute;
    right: -5px;
    font-size: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

/* The Animation Logic */
@keyframes ticker-move {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Moves exactly half-way (the first set of items) */
    }
}

/* Pause on hover so users can read */
.ticker-wrap:hover .ticker-content {
    animation-play-state: paused;
}
/*process*/
/* Target the circle when the parent step is hovered */
.process-step-item:hover .process-step-icon {
    background-color: black !important; /* Your brand yellow */
    border-color: #ffc700 !important;
    color:#ffc700 ;
    transition: all 0.3s ease;
    transform: translateY(-10px) scale(1.1);
}

/* Optional: Change the number color on hover */
.process-step-item:hover .number {
    color:#ffc700  !important; /* Keep it black or change to white depending on preference */
}

/* Smooth transition for the original state */
.process-step-icon {
    transition: all 0.3s ease;
    
}
/*star for stats*/
.rating-star {
    font-size: 0.5em; /* Makes the star smaller than the number */
    margin-left: 4px;  /* Adds slight spacing */
    margin-top: 8px;   /* Pulls it up to look like a superscript */
}

/* Ensure the h2 flex container centers correctly */
.stats-wrapper h2 {
    line-height: 1;
}
.h-badge{
    display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,239,0,0.1);
  border: 1px solid rgba(255,239,0,0.3);
  padding: 6px 14px;
  border-radius: 2px;
  font-family: var(--alt-font) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.sh{
    font-size: clamp(22px,3vw,40px);
}
/*gallery*/
/* 1. Grid Layout - Forces 3 in a row */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item.hidden-item { display: none; }

/* 2. Card Styling */
.gallery-card {
    position: relative;
    aspect-ratio: 2 / 2; /* Keeps all boxes identical */
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    transition: 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(249, 183, 4, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    color: #fff;
    font-size: 2rem;
}

.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-card:hover img { transform: scale(1.1); }

/* 3. Lightbox Styling */
.custom-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 80vw;
    max-height: 80vh;
    border: 5px solid #fff;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffc700;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
}

.prev-btn { left: 5%; }
.next-btn { right: 5%; }

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
}

/* Mobile View */
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(1, 1fr); }
}
/* Container for the tabs */
.gallery-filter {
    gap: 15px; /* Creates equal space between the three buttons */
    border: none;
}

/* Base style for the Tab buttons */
.gallery-filter .nav-link {
    color: #444; /* Dark gray text */
    background-color: #f8f9fa; /* Light gray background */
    border: 1px solid #ddd;
    border-radius: 5px; /* Slightly rounded corners */
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Hover State */
.gallery-filter .nav-link:hover {
    background-color: #eeeeee;
    color: #000;
    border-color: #bbb;
}

/* Active State (The Selected Tab) */
.gallery-filter .nav-link.active {
    background-color: #f9b704 !important; /* Your signature yellow */
    color: #000 !important; /* Black text for contrast */
    border-color: #f9b704 !important;
    box-shadow: 0 4px 10px rgba(249, 183, 4, 0.3); /* Subtle glow */
}
/*vission and mission*/
/* Section Background */
.vision-mission-section {
    background-color: #050505;
    padding: 80px 0;
    color: #fff;
    font-family: 'Arial', sans-serif;
}

.section-subtitle {
    color: #ffc700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    font-family: var(--alt-font);
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 50px;
    color: white;
    font-family: var(--primary-font);
}

/* Flip Card Core Logic */
.flip-card {
    background-color: transparent;
    height: 350px;
    perspective: 1000px; /* Essential for 3D effect */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 50px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Front Styling (Matching Image) */
.flip-card-front {
    background-color: #0f0f0f;
    border: 1px solid #1a1a1a;
}

.card-number {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 100px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1); /* Faded Large Number */
    line-height: 1;
}

.icon-box {
    width: 65px;
    height: 65px;
    background-color: #ffc700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: #000;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(255, 199, 0, 0.2);
}

.flip-card-front h3 {
    color: #ffc700;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hover-label {
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Back Styling */
.flip-card-back {
    background-color: #141414;
    color: white;
    transform: rotateY(180deg);
    border: 1px solid #ffc700; /* Yellow border to signify active flip */
}

.flip-card-back h3 {
    color: #ffc700;
    margin-bottom: 20px;
}

.flip-card-back p {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
}
/*timeline*/
/* Section Base */
.timeline-section {
    background-color: #0a0a0a;
    position: relative;
    padding: 100px 0;
}

.timeline-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #f9b704, transparent);
    transform: translateX(-50%);
}

/* Timeline Item Logic */
.timeline-item {
    position: relative;
    width: 60%;
    padding: 20px 60px;
    transition: all 0.4s ease-in-out;
    view-timeline-name: --item-reveal;
    view-timeline-axis: block;
    animation: linear reveal both;
    animation-timeline: --item-reveal;
    animation-range: entry 15% cover 35%;
    animation: fadeInUpCustom 0.8s ease-out forwards;
    opacity: 0;
}

.timeline-item.left { left: -120px; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

/* --- ZOOM TRANSITION FOR BOXES --- */
.info-box-custom {
    background-color: #121212;
    padding: 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background-color 0.3s ease, 
                border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* On Hover: Zoom In and Highlight */
.timeline-item:hover .info-box-custom {
    transform: scale(1.05); /* The Zoom effect */
    background-color: #1a1a1a;
    border-color: #f9b704;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* --- ICON MIDDLE TRANSITION --- */
.timeline-icon {
    position: absolute;
    top: 50px;
    width: 50px;
    height: 50px;
    background: #121212;
    border: 2px solid #f9b704;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9b704;
    font-size: 20px;
    z-index: 5;
    transition: all 0.4s ease;
}

.left .timeline-icon { right: -25px; }
.right .timeline-icon { left: -25px; }

/* Icon Hover Effect: Pop and Glow */
.timeline-item:hover .timeline-icon {
    background: #f9b704;
    color: #000;
    transform: scale(1.2) rotate(360deg); /* Spins and grows */
    box-shadow: 0 0 20px #f9b704;
}

/* Text Content Styling */
.box-label {
    display: inline-block;
    background: rgba(249, 183, 4, 0.1);
    color: #f9b704;
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-radius: 3px;
    font-family: var(--primary-font);
}

.box-title { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 12px; font-family: var(--primary-font); }
.box-text { color: #888; font-size: 15px; line-height: 1.7; margin: 0;font-family: var(--alt-font); }

/* Responsive adjustments */
@media (max-width: 991px) {
    .timeline-line { left: 30px; }
    .timeline-item { width: 100%; left: 0 !important; padding: 20px 20px 20px 80px; text-align: left !important; }
    .timeline-icon { left: 5px !important; top: 35px; }
    .timeline-item:hover .info-box-custom { transform: scale(1.02); }
    .big-year, .big-year-right { display: none; }
}
@keyframes reveal {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BIG YEAR POSITIONING --- */
.big-year, .big-year-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

/* For items on the left, year is on the far right */
.big-year { right: -60%; } 

/* For items on the right, year is on the far left */
.big-year-right { left: -400px; }

.big-year h1, .big-year-right h1 {
    font-size: 90px;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    background: linear-gradient(135deg, #ffd633, #fa0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9; /* Slight transparency for the watermark look */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* --- RESPONSIVE LOGIC --- */

/* Tablets and Small Desktops (under 1200px) */
@media (max-width: 1199px) {
    .timeline-item {
        width: 70%; /* Give more room to the box */
    }
    .big-year { right: -30%; }
    .big-year-side { left: -300px; }
    .big-year h1, .big-year-side h1 { font-size: 70px; }
}

/* Mobile & Tablets (under 991px) - THE COLLAPSE */
@media (max-width: 991px) {
    .timeline-line {
        left: 30px; /* Move the line to the far left */
        transform: none;
    }

    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding: 20px 20px 20px 80px; /* Space for the line/icon on the left */
        text-align: left !important;
        margin-bottom: 30px;
    }

    .timeline-item.left, .timeline-item.right {
        left: 0 !important;
        text-align: left !important;
    }

    .timeline-icon {
        left: 5px !important; /* Align icons with the new line position */
        right: auto !important;
        top: 35px;
    }

    .info-box-custom {
        width: 100%;
        padding: 25px;
    }

    /* Hide the big years on mobile to prevent messy overlapping */
    .big-year, .big-year-side {
        display: none; 
    }

    .box-label {
        border-left: 2px solid #f9b704;
        border-radius: 0 4px 4px 0;
        margin-bottom: 10px;
    }
}

/* Small Mobile (under 575px) */
@media (max-width: 575px) {
    .timeline-section {
        padding: 50px 0;
    }
    
    .timeline-item {
        padding-left: 60px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        left: 0px !important;
    }

    .box-title {
        font-size: 18px;
    }

    .box-text {
        font-size: 14px;
    }
}

/* --- SCROLL REVEAL (Refresh Fix) --- */
/* If the View-Timeline isn't firing on refresh, this ensures 
   items are visible on browsers that don't support it yet. */
@supports not (view-timeline-name: --staggered-reveal) {
    .timeline-item {
        opacity: 1;
        transform: none;
        animation: fadeInUpCustom 0.8s ease-out forwards;
    }
}

/* --- HOVER ZOOM EFFECT FOR NUMBERS --- */
.timeline-item:hover .big-year h1, 
.timeline-item:hover .big-year-right h1 {
    opacity: 1;
    transform: scale(1.3); /* Number Zoom */
    filter: drop-shadow(0 0 15px rgba(249, 183, 4, 0.5));
}
@keyframes fadeInUpCustom {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1.0s; }
.timeline-item:nth-child(6) { animation-delay: 1.2s; }

/*about us stat*/
.stat-section {
    /* This creates the subtle diagonal lines seen in your image */
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03) 0px,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 10px
    );
    padding: 100px 0;
    color: #fff;
}

.stat-item {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove the border from the last item */
.stat-item:last-child {
    border-right: none;
}

.stat-number {
    color: #ffc700; /* Signature machine yellow */
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: var(--primary-font);
}

.stat-label {
    color: #000;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .stat-item {
        border-right: none;
        margin-bottom: 20px;
    }
    .stat-number { font-size: 48px; }
}
/* Tablet / Mid-size screens */
@media (max-width: 991px) {
    .stat-number {
        font-size: 42px;
    }
    .stat-label {
        font-size: 11px;
        letter-spacing: 1px;
    }
}

/* Mobile Screens (Phones) */
@media (max-width: 767px) {
    .stat-section {
        padding: 30px 0;
    }

    .stat-item {
        border-right: none; /* Remove vertical borders */
        padding: 20px 0;
    }

    /* Add a subtle bottom border to the first 3 items to separate them vertically */
    .stat-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .stat-number {
        font-size: 48px; /* Fixed size for mobile to ensure it pops */
        margin-bottom: 10px;
    }

    .stat-label {
        font-size: 13px;
        letter-spacing: 2px;
    }
    
    /* Ensure the 2-column layout for small screens works without overlap */
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
@media (max-width: 400px) {
    .stat-number {
        font-size: 32px;
    }
    .stat-item {
        padding: 10px 0;
    }
}

/* Very Small Screens (below 400px) */
@media (max-width: 400px) {
    .stat-number {
        font-size: 38px;
    }
}
/*about us banner*/
/* --- Desktop & General Setup --- */
.about-compact {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px; /* Standard Desktop Height */
    padding: 100px 0; /* Top padding handles navbar space */
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('/images/video-banner.jpeg') center center / cover no-repeat;
}

/* Base Box Style */
.stat-overlay-compact {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    max-width: 450px;
    margin-left: auto; /* Keeps it on the right side on desktop */
}

/* --- Responsive Fixes (1024px to 320px) --- */
@media (max-width: 991px) {
    .about-compact {
        min-height: auto !important; /* Let content dictate height */
        padding-top: 140px !important; /* Forces it below navbar */
        padding-bottom: 60px !important;
        text-align: center;
    }

    /* Remove the left margin that pushes text off-center */
    .about-header.ms-10, 
    .about-compact p.ms-10 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 15px;
    }

    /* Shrink and Center the Stats Box */
    .stat-overlay-compact {
        max-width: 300px !important; /* Keeps it small so it doesn't overflow */
        margin: 40px auto 0 !important; /* Centers it and gives top space */
        padding: 15px !important; /* Tighter padding */
    }

    /* Typography Scaling */
    .lei-title {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
        line-height: 1.1;
    }

    .stat-overlay-compact h3 {
        font-size: 1.8rem !important;
        margin-bottom: 0;
    }

    /* Stack stats vertically for neatness */
    .stat-overlay-compact .d-flex {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Hide the line divider on mobile to save space */
    .v-divider {
        display: none !important;
    }
}

/* --- Mobile Specific (Under 575px) --- */
@media (max-width: 575px) {
    .about-compact {
        padding-top: 120px !important;
        padding-bottom: 40px !important;
    }

    .lei-title {
        font-size: 2.2rem !important;
    }

    .stat-overlay-compact {
        max-width: 260px !important; /* Extra small box for thin phones */
    }
}

/* Typography Scaling */
.fw-900 { font-weight: 900; }
.ls-2px { letter-spacing: 2px; }
.line-height-1 { line-height: 1; }
.text-yellow { color: #ffc700; }

/* Compact Glass Box */

.v-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 20px;
}

/* Mobile Alignment */
@media (max-width: 991px) {
    .about-compact {
        min-height: auto;
        padding-top: 90px !important;
        text-align: center;
    }
    .about-header .d-flex { justify-content: center; }
    .display-3 { font-size: 2.8rem; }
    .v-divider { display: none; }
    .stat-overlay-compact .d-flex { flex-direction: column; gap: 20px; }
    .stat-item-small { text-align: center !important; }
}

/*remanufacture banner*/
section.cover-background {
    position: relative;
    overflow: hidden;
}

section.remanufact::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    right: 0; 
    bottom: 0;
    /* Inherit the background image from the section */
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    /* Scale it up slightly (1.1) so the edges don't show white blur lines */
    transform: scale(1.1);
    z-index: 0;
}

/* Ensure the text stays on top of the blur */
section.remanufact .container {
    position: relative;
    z-index: 1;
}
/* Ensure the section is the anchor for the overlay */
.remanufact {
    position: relative;
    overflow: hidden;
}

/* The Overlay */
.remanufact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* This creates a dark tint. Change 0.5 to 0.7 for darker, or 0.3 for lighter */
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

/* Ensure the container and text sit ABOVE the overlay */
.remanufact .container {
    position: relative;
    z-index: 2;
}
.small-screens {
        text-align: center;
        display: flex;
        justify-content: center;
        position: relative;
        top: 200px;
        right: 60px;
    }
    /* --- Desktop (Your existing code stays as is) --- */

/* --- Responsive Fixes --- */

/* Tablet and Large Mobile (991px and below) */
@media (max-width: 991px) {
    .small-screens {
        /* Neutralize the hard-coded offsets */
        top: 0 !important;
        right: 0 !important;
        
        /* Ensure it centers properly */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center;
        width: 100%;
        margin-top: 100px; /* Adjust this to center it within your banner height */
    }

    .remanufact {
        min-height: 400px; /* Gives the banner enough height to see the center */
    }

    .h1tag {
        font-size: 8vw; /* Scales font based on screen width */
        white-space: nowrap;
        display: block;
    }
}

/* Small Mobile (575px and below) */
@media (max-width: 575px) {
    .small-screens {
        margin-top: 100px; /* Lower margin for smaller screens */
        padding: 0 15px;
    }

    .h1tag {
        font-size: 7.5vw; /* Slightly smaller for very thin phones */
        letter-spacing: -1px; /* Tighten letters to keep it on one line */
    }

    /* Ensure the blurred background doesn't show white edges on mobile */
    section.remanufact::before {
        transform: scale(1.2);
    }
}
@media (min-width:300px) and (max-width:374px) {
    .h1tag{
        font-size: 20px !important;
    }
    
}
@media (min-width:374px) and (max-width:510px) {
    .h1tag{
        font-size: 30px !important;
    }
    
}
@media (min-width:576px) and (max-width:694px) {
    .h1tag{
        font-size: 40px !important;
    }
    .small-screens{
        margin-top: 150px;
    }
    
}
@media (min-width:695px) and (max-width:770px) {
    .h1tag{
        font-size: 40px !important;
    }
    .small-screens{
        margin-top: 150px;
    }
    
}
/* --- BIG SCREEN (Desktop: 768px and up) --- */
@media (min-width: 768px) {
    .d-flex.flex-wrap {
        display: grid !important;
        /* Creates two equal columns */
        grid-template-columns: repeat(2, auto); 
        gap: 20px;
        justify-content: start; /* Aligns the grid to the left text */
    }

    /* Force the 3rd item (the wrapper div) to span across both columns */
    .d-flex.flex-wrap > .w-100 {
        grid-column: 1 / span 2;
        display: flex !important;
        justify-content: center !important; /* Centers the button within the span */
        margin-top: 10px;
        /* This ensures the button width doesn't stretch to the full grid width */
        max-width: 420px; 
    }

    .btn-switch-text {
        min-width: 200px;
    }
}

/* --- SMALL SCREEN (Mobile: Under 768px) --- */
@media (max-width: 767px) {
    .d-flex.flex-wrap {
        display: flex !important;
        flex-direction: column !important; /* Stack vertically */
        align-items: center !important;
        gap: 15px !important;
    }

    .btn-switch-text {
        width: 100% !important;
        max-width: 350px;
    }

    .w-100.d-flex.justify-content-center {
        width: 100% !important;
        justify-content: center !important;
    }
}