/* ======================================================
   css/style.css
   Combined styles: your original CSS blocks kept intact,
   plus minimal helper rules for preloader, sticky navbar,
   reveal animations, and scroll-to-top.
   Place at: /kdee-website/css/style.css
   ====================================================== */

/* 1. Kill the invisible Loader wall */
/* This ensures the loading screen doesn't block clicks after it fades out */
:root {
  --max-container: 1240px;
  --max-content: 1200px;
  --max-dense: 1160px;
}

#loader, .loader-wrapper {
  pointer-events: none !important;
  display: none; /* specific safety check */
}

/* 2. Bring the "About" Text to the Front */
/* This forces your text to sit on top of any background effects */
.about-text {
  position: relative;
  z-index: 999; 
}

/* 3. Ensure the Header Navigation is clickable */
/* We explicitly tell the browser the header is interactive */
#nav-placeholder {
  pointer-events: auto !important;
  position: relative;
  z-index: 1000;
}


/*---------------------------------------------------header--------------------------------------------------*/

/* ===========================
   ORIGINAL index header & navbar styles (kept)
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif, Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

/* Global safety to avoid right-shift from rogue wide blocks */
section,
main,
header,
footer,
#nav-placeholder,
#site-footer {
  max-width: 100%;
}



  header {
    /*position: relative;
    z-index: 0;*/
    width: 100%;
    height: 60vh;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    color: #fff;
    overflow: visible;
  }

  
  header::before {
    content: "";
    position: absolute;
    inset: 0;
    /*background: url('../imgs/header-bg.jpg') no-repeat center center;*/
    background-size: cover;
    z-index: 1;
    transition: opacity 0.6s ease;
    opacity: 1; 
  }




  /* ADD THIS NEW BLOCK BELOW IT */
  header.home-header::before {
    background: url('../imgs/header-bg.jpg') no-repeat center center;
    background-size: cover;
  }
   
  header.bg-fade::before {
    opacity: 0; /* background fades out, but header & nav stay visible */
  }

  /* optional dark overlay for readability (keeps above bg but below nav) */
  header .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 2;
    pointer-events: none;
  }
  /*nav { border: 2px solid red !important; }*/

  /*.logo {
    border: 2px solid red !important;
  }*/

 

  nav {
    position: relative; 
    z-index: 3;  
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(92%, var(--max-container));
    min-height: 70px;
    max-width: var(--max-container);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    padding: 12px 20px;
    background:   rgba(253, 252, 252, 0.3);   
    backdrop-filter: blur(6px);
    border-radius: 20px;
    transition: all 0.35s ease;
  }

  nav.sticky {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, var(--max-container));
    max-width: var(--max-container);
    margin: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  }



/*
  nav.sticky {
    position: fixed;
    top: 12px;            
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    margin: 0;
    border-radius: 20px;
    background: rgba(0,0,0,0.65); 
    z-index: 9999;       
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  }
*/

  
  #nav-placeholder {
    height: 0;
    transition: height 0.2s ease;
  }

  
  .logo img { width: 130px; height: auto; display:block; }

  
  .nav-links { display:flex; gap:25px; align-items:center; list-style:none; }
  .nav-links a {
    color:#fff; text-decoration:none; font-size:16px; font-weight:500;
    position:relative; transition: color .25s ease;
  }
  .nav-links a::after { 
    content:"";
    position:absolute; left:0; bottom:-4px; width:0; height:2px;
    background: linear-gradient(90deg,#28a745,#FF6D00,#FFD600);
    transition: width .25s ease;
  }
  .nav-links a:hover::after { width:100%; }
  .nav-links a:hover { color:#23A6DD; }

  /*nav.sticky .nav-links a {
    color: #000 !important;
}*/


  nav.sticky .nav-links a.tt {
  color: #000 !important;
  }

  nav.sticky .nav-links a.tt:hover {
  color: #23A6DD !important;
  } 




/*nav.sticky .hamburger span { background: #000 !important; }*/


  
  .hamburger { width:28px; height:20px; display:flex; flex-direction:column; justify-content:space-between; cursor:pointer; }
  .hamburger span { height:3px; width:100%; background:#fff; border-radius:2px; transition:background .2s; }
  .hamburger:hover span { background: #23A6DD; }

  nav.sticky .hamburger span {
  background: #000 !important;
}


 /* nav.sticky .nav-links .hamburger span {
  background: #000 !important;
  }*/

 nav.sticky .hamburger:hover span {
  background: #23A6DD !important; 
}

  

  @media (max-width:900px) {
    nav, nav.sticky { width:85%; margin-right:30px; }
  }
  @media (max-width:768px) {
    nav, nav.sticky { width:92%; margin:0 4%; }
    nav { flex-direction:column; align-items:flex-start; }
    .nav-links { flex-direction:column; gap:12px; margin-top:10px; }
  }
  @media (max-width:480px) {
    header { height:50vh; }
    .nav-links a { font-size:14px; }
  } 


  /* Local styles for hamburger dropdown menu (mobile-friendly)*/ 

    /* Refine hamburger icon to match glassy navbar */
    .hamburger {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 36px;
      height: 28px;
      padding: 7px 5px;
      border-radius: 999px;
      background: transparent;
      box-shadow: none;
      cursor: pointer;
      transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    }

    .hamburger span {
      height: 3px;
      width: 100%;
      background: #23A6DD;
      border-radius: 2px;
      transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
    }

    .hamburger:hover {
      background: rgba(255, 255, 255, 0.35);
      box-shadow: none;
      transform: translateY(-1px);
    }

    /* "X" state when menu is open */
    .hamburger.is-open span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    .hamburger.is-open span:nth-child(2) {
      opacity: 0;
    }
    .hamburger.is-open span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    /* Dropdown container */
    .hamburger-menu {
      position: absolute;
      right: 40px;
      top: 70px;
      /*background: rgba(255, 255, 255, 0.7);*/
      background: #ffffff;
      border-radius: 14px;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
      display: none;
      flex-direction: column;
      min-width: 240px;
      z-index: 10000;
      border: 1px solid rgba(15, 23, 42, 0.06);
      overflow: hidden;
    }

    .hamburger-menu .menu-section {
      padding: 6px 0 4px;
    }

    .hamburger-menu .menu-section-title {
      padding: 6px 18px 4px;
      font-size: 11px;
      font-weight: 600;
      color: #23A6DD;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      opacity: 0.9;
    }

    .hamburger-menu .menu-divider {
      height: 1px;
      margin: 2px 0 4px;
      background: linear-gradient(90deg, #28a745, #ff7b00, #ffeb3b);
      opacity: 0.35;
    }

    .hamburger-menu a {
      display: block;
      padding: 8px 22px;
      text-decoration: none;
      color: #333;
      font-size: 13px;
      white-space: nowrap;
      transition: background 0.2s ease, padding-left 0.2s ease, color 0.2s ease;
    }

    .hamburger-menu a:hover {
      background: linear-gradient(90deg, rgba(35, 166, 221, 0.06), rgba(255, 235, 59, 0.08));
      padding-left: 26px;
      color: #23A6DD;
    }

    /* On small screens, show only the hamburger icon in the nav bar 
    @media (max-width: 768px) {
      .nav-links li:not(:last-child) {
        display: none;
      }
      .hamburger-menu {
        right: 16px;
        top: 64px;
        min-width: 230px;
      }
    }*/


    /* =========================================
   MOBILE RESPONSIVENESS FIXES
   Add this to the very end of your CSS file
   ========================================= */

/* Tablet & Mobile (Below 900px) */
@media (max-width: 900px) {
    nav, nav.sticky { 
        width: 90%; /* Make navbar wider on smaller screens so it doesn't look cramped */
        margin-right: auto;
        margin-left: auto;
    }
}

/* Mobile Devices (Below 768px) */
@media (max-width: 768px) {
    
    /* 1. Keep Logo and Hamburger side-by-side */
    nav, nav.sticky {
        width: 95%; /* Almost full width on mobile */
        min-height: 60px; /* Slightly shorter height for mobile */
        padding: 10px 15px; /* Reduce padding */
        flex-direction: row; /* FORCE row layout (Fixes the vertical stacking issue) */
        justify-content: space-between;
        align-items: center;
    }

    /* 2. Resize Logo for Mobile */
    .logo img {
        width: 100px; /* Smaller logo */
    }

    /* 3. Hide all text links (Home, About, etc), show ONLY Hamburger */
    .nav-links li:not(:last-child) {
        display: none;
    }

    /* 4. Adjust Hamburger Container */
    .nav-links {
        gap: 0; 
        margin: 0;
    }

    /* 5. Fix Hamburger Menu Dropdown Position */
    .hamburger-menu {
        top: 65px;     /* Position right below the mobile navbar */
        right: 0px;    /* Align to the right edge of the nav container */
        width: 100%;   /* Make the dropdown take full width of the container */
        min-width: 200px;
        max-width: 300px; /* Prevent it from being too huge */
    }
    
    /* 6. Adjust Header Height */
    header {
        height: 50vh; /* Shorter header image on mobile */
        min-height: 250px;
    }
}

  

/*-----------------------------------------------------/header------------------------------------------*/


/*------------------------------------------hero section-------------------------------------*/

    .hero-slider {
      position: relative;
      height: 80vh;
      width: 100%;
      overflow: hidden;
      font-family: "Inter", Arial, sans-serif;
      color: #fff;
      margin: 0;
      padding: 0;
    }
 
    .hero-slider .slides {
      position: relative;
      width: 100%;
      height: 100%;
    }

    /* Individual slide*/ 
    .hero-slider .slide {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      opacity: 0;
      transition: opacity 1.3s ease-in-out;
      overflow: hidden;
    }


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

     
    .hero-slider .overlay {
      position: absolute;
      inset: 0;
      background: rgba(44, 133, 173, 0.35);
      z-index: 1;
    }

     
    .hero-slider video {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1);
      transition: transform 10s ease-in-out;
      z-index: 0;
    }

    .hero-slider .slide.active video {
      transform: scale(1.08);
    }

   
    .hero-slider .bg-image {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      transform: scale(1);
      transition: transform 10s ease-in-out;
      z-index: 0;
    }

    .hero-slider .slide.active .bg-image {
      transform: scale(1.08);
    }

  
    .hero-slider .content {
      position: relative;
      z-index: 2;
      top: 55%;
      transform: translateY(-50%);
      padding-left: 6%;
      max-width: 650px;
    }

    /* Center text of first slide */
    .hero-slider .slide:first-child .content {
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      padding-left: 0;
      text-align: center;
      max-width: 800px;
    }


    /* Headings styling*/ 
    .hero-slider h1 {
      font-size: 3.2rem;
      font-weight: 800;
      line-height: 1.1;
      margin: 0 0 1rem;
      letter-spacing: -1px;
    }

    .hero-slider h1 span {
      display: block;
    }
    .hero-slider h1 span:first-child {
      margin-left: 50px;
    }
    .hero-slider h1 span:nth-child(2) {
      margin-left: 20px;
    }
    .hero-slider h1 span:last-child {
      margin-left: 50px;
    }

    
    .hero-slider p {
      font-size: 1rem;
      line-height: 1.6;
      margin-bottom: 1.6rem;
      color: #e0f7ff;
    }

    
    .hero-slider .btn {
      display: inline-block;
      padding: 0.7rem 2rem;
      border-radius: 50px;
      font-weight: 600;
      font-size: 0.95rem;
      text-decoration: none;
      color: #fff;
      background: #23A6DD;
      transition: all 0.3s ease;
    }

    .hero-slider .btn:hover {
      background: #29B6F6;
      transform: translateY(-3px);
    }

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

    .hero-slider .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.6);
      cursor: pointer;
      transition: background 0.3s, transform 0.2s;
    }

    .hero-slider .dot.active {
      background: #23A6DD;
      transform: scale(1.2);
    }

    /* =====================
      TEXT ANIMATIONS
      ===================== */

    /* 1st Slide - Slide In Left*/ 
    @keyframes slideInLeft {
      from { opacity: 0; transform: translateX(-80px); }
      to { opacity: 1; transform: translateX(0); }
    }
    .slide-animate-left .content * {
      opacity: 0;
      animation: slideInLeft 1s ease forwards;
    }
    .slide-animate-left.active .content * {
      animation-delay: 0.3s;
    }

    /* 2nd Slide - Progressive Word Reveal*/ 
    .reveal-word {
      display: inline-block;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .reveal-word.visible {
      opacity: 1;
      transform: translateY(0);
    }


    /* Responsive */
    @media (max-width: 992px) {
      .hero-slider { height: 65vh; }
      .hero-slider .content { top: 52%; }
      .hero-slider h1 { font-size: 2.4rem; }
    }
    @media (max-width: 600px) {
      .hero-slider { height: 55vh; }
      .hero-slider h1 { font-size: 1.8rem; }
      .hero-slider h1 span:first-child,
      .hero-slider h1 span:last-child { margin-left: 0; }
    } 


    /* Navigation arrows */
.hero-slider .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

/* Hover effects */
.hero-slider .nav-arrow:hover {
  background: rgba(79, 195, 247, 0.8);
  border-color: #23A6DD;
  transform: translateY(-50%) scale(1.1);
}

/* Positioning */
.hero-slider .nav-arrow.prev {
  left: 25px;
}

.hero-slider .nav-arrow.next {
  right: 25px;
}

/* Smaller screens */
@media (max-width: 768px) {
  .hero-slider .nav-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
  .hero-slider .nav-arrow.prev { left: 15px; }
  .hero-slider .nav-arrow.next { right: 15px; }
}


/* ======================================================
   FINAL RESPONSIVE FIX (Solves Height & Width Cut-off)
   Replace your bottom @media sections with this.
   ====================================================== */

/* 1. TABLET VIEW (max-width: 900px) */
@media (max-width: 900px) {
  .hero-slider .content {
    max-width: 85%;
    padding-left: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  
  /* Fix first slide specifically */
  .hero-slider .slide:first-child .content {
    width: 90%;
    max-width: 800px;
  }
}

/* 2. MOBILE VIEW (max-width: 768px) */
@media (max-width: 768px) {
  
  /* --- FIX 1: INCREASE HEIGHT --- */
  /* 55vh is too small. We use 85vh or a minimum pixel height to fit text. */
  .hero-slider {
    height: 85vh; 
    min-height: 550px; /* Forces slider to never be shorter than 550px */
  }

  /* --- FIX 2: CONTAINER WIDTH --- */
  .hero-slider .content,
  .hero-slider .slide:first-child .content {
    width: 90%;         /* Leave 5% gap on each side */
    max-width: 100%;    /* Never exceed screen */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0;         /* Remove padding that causes overflow */
    text-align: center;
    box-sizing: border-box; /* Ensures padding doesn't add to width */
  }

  /* --- FIX 3: HEADING ALIGNMENT --- */
  /* Remove "staggered" margins completely */
  .hero-slider h1 span,
  .hero-slider h1 span:first-child,
  .hero-slider h1 span:nth-child(2),
  .hero-slider h1 span:last-child {
    margin-left: 0 !important;
    display: block;
    width: 100%; /* Force span to fill width so it centers */
  }

  /* --- FIX 4: FONT SIZING --- */
  .hero-slider h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    word-wrap: break-word; /* Prevents long words from cutting off */
  }

  .hero-slider p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    width: 100%;
    display: block;
  }
  
  /* --- FIX 5: BUTTON --- */
  .hero-slider .btn {
    display: inline-block;
    margin-top: 5px;
  }
}

/* 3. SMALL PHONES (max-width: 480px) */
@media (max-width: 480px) {
  .hero-slider {
    height: 100vh; /* Full screen on small phones */
  }

  .hero-slider h1 {
    font-size: 1.7rem; 
  }
  
  .hero-slider p {
    font-size: 0.9rem;
  }
  
  /* Keep arrows centered but small */
  .hero-slider .nav-arrow {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
  }
}


/*---------------------------------------------------------Industries----------------------------------------------------*/
  .ind-section {
    position: relative;
    background: url("../imgs/industries/default-bg.jpg") center/cover no-repeat;
    padding: 35px 20px;
    color: #333;
    text-align: center;
    transition: background 0.5s ease, padding 0.5s ease;
    overflow: hidden;
    min-height: 360px;
    font-family: "Poppins", Arial, sans-serif;
    background-color: #fff;
  }

  .ind-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 0;
  }

  .ind-section > * {
    position: relative;
    z-index: 1;
  }

  /* Heading with gradient lines */
  .ind-heading-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    transition: margin-bottom 0.4s ease;
  }

  .ind-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #ff7b00, #ffc107);
    border-radius: 3px;
    opacity: 0.8;
  }

  .ind-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: #23A6DD;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 1px;
  }

  .ind-heading span {
    display: block;
    color: #23A6DD;
  }

  /* Icons Grid */
  .ind-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
    transition: all 0.4s ease;
  }

  .ind-item {
    text-align: center;
    cursor: pointer;
    width: 90px;
    transition: all 0.4s ease;
  }

  .ind-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    transition: all 0.4s ease;
  }

  .ind-icon img {
    width: 55%;
    height: 55%;
    object-fit: contain;
  }

  .ind-item:hover .ind-icon {
    transform: translateY(-3px);
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.15);
  }

  .ind-item h4 {
    margin: 5px 0 2px;
    font-size: 0.85rem;
    color: #23A6DD;
    font-weight: 600;
  }

  .ind-item p {
    font-size: 0.75rem;
    color: #28a745;
  }

  /* Expanded View */
  .ind-section.ind-expanded {
    padding-top: 25px;
  }

  .ind-section.ind-expanded .ind-icons {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
    overflow: hidden;
  }

  .ind-section.ind-expanded .ind-heading-wrapper {
    margin-bottom: 6px;
  }

  .ind-focused {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: ind-fadeIn 0.6s ease;
    margin-top: 0;
  }

  .ind-section.ind-expanded .ind-focused {
    display: flex;
  }

  .ind-focused-icon {
    position: relative;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  }

  .ind-focused-icon img {
    width: 55%;
    height: 55%;
    object-fit: contain;
  }

  .ind-close {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #28a745;
    color: #fff;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
  }

  .ind-close:hover {
    background: #ff7b00;
  }

  .ind-focused h3 {
    font-size: 1.1rem;
    color: #28a745;
    margin-bottom: 4px;
  }

  .ind-focused p {
    max-width: 440px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
    padding: 0 10px;
  }

  /* Dots */
  .ind-dots {
    font-size: 1.4rem;
    color: #28a745;
    letter-spacing: 5px;
    margin-top: 6px;
  }

  @keyframes ind-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @media (max-width: 768px) {
    .ind-icon { width: 60px; height: 60px; }
    .ind-item { width: 80px; }
    .ind-heading { font-size: 1.5rem; }
  }

/*---------------------------------------------------------/Industries-------------------------------------------------*/

/*------------------------------------clients---------------------------------*/
     .clients-section {
      padding: 40px 0;
      background: #f9fafc;
      text-align: center;
      overflow: hidden;
      
    }

    .clients-section-title p {
      font-size: 28px;
      font-weight: 600;
      color: #23A6DD; /* Light blue heading */
      margin-bottom: 30px;
      position: relative;
      display: inline-block;
    }

    .clients-section-title p::after {
      content: "";
      display: block;
      width: 60px;
      height: 3px;
      /* Gradient underline */
      background: linear-gradient(to right, #28a745, #ff9800, #ffeb3b);
      margin: 10px auto 0;
      border-radius: 2px;
    }

    /* ===== Logo Slider ===== */
    .clients-slider {
      position: relative;
      width: 100%;
      overflow: hidden;
    }

    .clients-slider-track {
      display: flex;
      width: calc(250px * 20); /* adjust depending on number of logos */
      animation: clients-scroll 30s linear infinite;
    }

    .clients-slider-track div {
      width: 200px;
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 20px;
    }

    .clients-slider-track img {
      max-height: 60px;
      transition: transform 0.3s ease-in-out;
    }

    .clients-slider-track img:hover {
      transform: scale(1.05);
    }

    /* Scroll animation */
    @keyframes clients-scroll {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    /* ===== Responsive ===== */
    @media (max-width: 600px) {
      .clients-section-title p {
        font-size: 22px;
      }
      .clients-slider-track div {
        width: 150px;
        margin: 0 10px;
      }
      .clients-slider-track img {
        max-height: 45px;
      }
    }

/*-------------------------------------contact-------------------------------------*/
    .contact-section {
      background-color: #23A6DD; /* Blue instead of #28a745 */
      color: white;
      text-align: center;
      padding: 60px 20px;
      font-family: 'Poppins', sans-serif;
      opacity: 0;
      transform: translateY(100px) scale(0.95);
      transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* Active when visible */
    .contact-section.active {
      opacity: 1;
      transform: translateY(0) scale(1);
    }



    .contact-section h1 {
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .contact-section h1 span {
      display: block;
    }

    .contact-section p {
      font-size: 0.9rem;
      margin: 8px auto 25px;
      max-width: 700px;
      line-height: 1.6;
    }

    .contact-section .btn {
      background-color: white;
      color: #23A6DD;
      border: none;
      padding: 10px 28px;
      border-radius: 50px;
      font-size: 0.9rem;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.3s ease;
      display: inline-block;
    }

    .contact-section .btn:hover {
      background-color: #f0f0f0;
      transform: translateY(-2px);
    }

    @media (max-width: 600px) {
      .contact-section h1 {
        font-size: 2rem;
      }
      .contact-section p {
        font-size: 0.95rem;
      }
    }

/*--------------------------------------------digital--------------------------------*/

.digital-india-section {
  text-align: center;
  font-family: Arial, sans-serif;
  color: #333;
  max-width: 800px;
  margin: 40px auto 30px auto;
  padding: 0 15px;
}

.digital-india-section img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.digital-india-section p {
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
  padding-bottom: 40px;
  text-align: justify;
}


/*-------------------------- Footer Main --------------------------------------*/
/* Footer container */
.footer {
  --bg: #1a1a1a;
  --muted: #cccccc;
  --muted-2: #cccccc;
  --white: #fff;
  --gradient: linear-gradient(90deg,#00ff00 0%,#ff9900 50%,#ffff00 100%);
  
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  
  background: var(--bg);
  color: var(--white);
  padding: 20px;         /*28px 36px;*/
  background-color: #1a1a1a;
}

.footer-inner {
  width: min(100%, var(--max-content));
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px; /*36px*/
}

/* Original flex setting preserved */
.footer-column {
  flex: 1 1 22%; /*200px*/
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer-column h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: var(--white);
}

a, .footer-column p {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin: 0;
  transition: all .22s ease;
}

/* Hover gradient text */
.footer-column a:hover,
.legal-links a:hover {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Locations layout */
.locations-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.locations-container .location {
  flex: 1 1 48%; /* two per row */
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.location-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.location-icon {
  width: 18px;
  height: 18px;
  fill: var(--muted);
}
.location h6 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--white);
}

/* Contact section */
.contact-company {
  margin: 8px 0 2px 0;
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}

.contact-row svg {
  width: 18px;
  height: 18px;
  fill: var(--muted);
  transition: fill .3s ease;
}

.contact-row:hover svg path {
  fill: url(#iconGradient);
}

.contact-row a {
  color: var(--muted);
}

/* Social section */
.footer-divider {
  position: relative;
  width: 100%;
  height: 1px;
  background: #333;
  margin: 26px 0;
}

.social-icons {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 16px;
  background-color: #1a1a1a;
  background: var(--bg);
  padding: 0px 15px;
  background-color: #1a1a1a !important; /* Must match footer bg */
  z-index: 10 !important;
}

.social-icons a {
  display: inline-block;
  width: 26px;
  height: 26px;
}

.social-icons svg {
  width: 26px;
  height: 26px;
  fill: var(--white);
  transition: transform .2s ease, fill .25s ease;
}

.social-icons a, 
.social-icons svg {
 background: transparent !important; 
}

.social-icons a:hover svg {
  transform: translateY(-2px);
  fill: url(#iconGradient);
}


.footer-legal {
  text-align: center;
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.86rem;
  width: min(100%, var(--max-dense));
  margin-left: auto;
  margin-right: auto;
}

.legal-links {
  margin-top: 6px;
}

.legal-links a {
  color: var(--muted);
  margin: 0 6px;
}

/* ------------------- UPDATED RESPONSIVE SECTION ------------------- */
/* These changes only affect Tablet and Mobile screens */

@media (max-width: 880px) {
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  
  /* Fix Social Icons: Move them normally into flow, center them, remove overlap */
  .social-icons {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 20px;
    background: transparent !important;
  }
  
  /* Reset divider to be just a line, social icons will sit below/above it via HTML flow */
  .footer-divider {
    height: auto;
    background: transparent;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .footer-divider::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #333;
    margin-bottom: 20px;
  }

  /* Force locations to stack fully on mobile to avoid squishing */
  .locations-container .location {
    flex: 1 1 100%;
  }
}

/* ======================================================
   GLOBAL RESPONSIVE OVERRIDES
   Keeps desktop/laptop visuals consistent and scales down
   cleanly for tablet/mobile without horizontal overflow.
   ====================================================== */

/* Desktop + Laptop */
@media (min-width: 901px) {
  nav,
  nav.sticky {
    width: min(92%, var(--max-container));
    margin-left: auto;
    margin-right: auto;
  }
}

/* Tablet and below */
@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  nav,
  nav.sticky {
    width: min(94%, var(--max-content));
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-slider .content,
  .hero-slider .slide:first-child .content {
    width: min(92%, 900px);
    max-width: 92%;
  }

  .services-section .services-container,
  .kd-services-section-isolated .services-grid,
  .cards-grid,
  .services-grid {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  nav,
  nav.sticky {
    width: 95%;
    border-radius: 14px;
  }

  .hamburger-menu {
    right: 8px;
    max-width: min(92vw, 320px);
  }

  .hero-slider {
    min-height: 520px;
  }

  .hero-slider h1 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.25;
  }

  .hero-slider p {
    font-size: 0.95rem;
  }

  .about,
  .kdee-story-section .container,
  .kd-informatic-section-isolated .info-block {
    width: 100%;
  }

  .kd-global-reach-isolated .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-box {
    font-size: clamp(1rem, 4vw, 1.15rem);
    padding: 14px 18px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-slider {
    min-height: 500px;
  }

  .hero-slider .content,
  .hero-slider .slide:first-child .content {
    width: 92%;
    max-width: 92%;
  }

  .kd-global-reach-isolated .stats-grid {
    grid-template-columns: 1fr;
  }

  .about-images,
  .glance-stats-grid,
  .cards-grid,
  .services-grid,
  .kd-services-section-isolated .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   ENTERPRISE RESPONSIVE BASELINE (FINAL OVERRIDES)
   Keeps desktop/PC consistent and preserves responsiveness.
   ====================================================== */
@media (min-width: 901px) {
  nav,
  nav.sticky {
    width: min(92vw, var(--max-container)) !important;
    max-width: var(--max-container) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-inner {
    width: min(100%, var(--max-content)) !important;
    max-width: var(--max-content) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-legal {
    width: min(100%, var(--max-dense)) !important;
    max-width: var(--max-dense) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1280px) {
  nav,
  nav.sticky {
    width: var(--max-container) !important;
  }
}
