:root {
  --slide-speed: 0.8s;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --bg-dark: #0f0026;
  --accent-dblue: #1c2541;
  --accent-blue: #33ccff;
  --bg-white: #fcfcfc;
  --bg-gray: #a8b0c0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}


/* Update your existing body/html block to this */
html {
  overflow-x: hidden;
  overflow-y: auto;
  /* Let the browser decide when to scroll */
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  position: relative;
  /* REMOVE overflow: scroll; from here */
}

/* loader */
/* Loader Styles */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

#loader img.logo {
  display: inline-block;
  width: 120px;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  animation: loader-pulse 2.5s ease-in-out infinite;
}

@keyframes loader-pulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
    /* Optional: subtle brightness shift adds depth */
  }

  50% {
    transform: scale(1.1);
    /* 1.1 is often smoother/more subtle than 1.2 */
    filter: brightness(1.05);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}



/* 1. SHOW custom scrollbar on Desktop and iPad (Screens wider than 600px) */
@media screen and (min-width: 601px) {
    ::-webkit-scrollbar {
        width: 7px;
        height: 7px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg-white);
    }

    ::-webkit-scrollbar-thumb {
        background: #1e6091;
        border-radius: 0px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #184e77;
    }
}

/* 2. HIDE scrollbar on Mobile (Screens 600px and narrower) */
@media screen and (max-width: 600px) {
    ::-webkit-scrollbar {
        display: none;
        width: 0 !important;
        height: 0 !important;
    }

    html,
    body {
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }
}






.text-select {
  user-select: none;
  color: var(--bg-white);
}

.hero {
  background: var(--bg-dark);
  width: 100%;
  height: 80vh;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  will-change: transform;
  transition: transform 0.3s ease;
}


.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  color: white;
  gap: 40px;
}


.slide .carousel-animation {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  filter: blur(0px);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%,
      rgba(51, 204, 255, 0.205) 0%,
      rgba(20, 33, 61, 0.85) 50%,
      #14213d 100%);
  z-index: 0;
}


.content {
  flex: 1;
  max-width: 600px;
  padding-bottom: 150px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* --- TEXT TRANSITION MODIFIED --- */
.content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  opacity: 0;
  /* Start far to the right to look like it's following the previous slide */
  transform: translateX(100px);
  transition:
    opacity 0.8s ease-out,
    transform 0.9s var(--ease);
}

.slide.active .content h1 {
  opacity: 1;
  transform: translateX(0);
  /* Delay ensures the "sliding from first image" feel */
  transition-delay: 0.2s;
}

/* ------------------------------- */

/* Styling for the new slide descriptions */
.content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 600px;
  margin-top: 10px;
  opacity: 0;
  transform: translateX(100px);
  transition:
    opacity 0.8s ease-out,
    transform 0.9s var(--ease);
  transition-delay: 0.3s;
  /* Slightly after the H1 */
}

/* Animate paragraph when slide is active */
.slide.active .content p {
  opacity: 1;
  transform: translateX(0);
}

/* Ensure clones don't "double animate" for the seamless loop */
#firstClone .content p,
#lastClone .content p {
  opacity: 1 !important;
  transform: translateX(0) !important;
  transition: none !important;
}

.services-nav {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 8%;
  background: linear-gradient(0deg,
      rgb(8, 0, 38) 0%,
      rgba(6, 0, 38, 0) 100%);
  z-index: 100;
}

.service-card {
  cursor: pointer;
  position: relative;
  padding-top: 15px;
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dblue), var(--accent-blue));
  transition: none;
}

.service-card h2 {
  color: var(--bg-white);
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.service-card p {
  color: var(--bg-gray);
  font-size: 0.85rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
  }

  .visual-side {
    min-width: 100%;
    height: 400px;
  }

    .hero-image-wrapper {
    flex-grow: 1;
    overflow: hidden;
    height: auto !important;
}

  .hero-content {
    min-width: 100%;
  }

  .trust-bar::after {
    display: none;
  }



}


@media (max-width: 390px) {
  .hero-container {
    flex-direction: column;
  }

  .visual-side {
   min-width: 340px;
    height: 400px;
  }

    .hero-image-wrapper {
    flex-grow: 1;
    overflow: hidden;
    height: 50vh !important;
}

  .hero-content {
    min-width: 100%;
  }

  .trust-bar::after {
    display: none;
  }
}


@media (max-width: 900px) {
  .services-nav {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }

  .service-card p {
    display: none;
  }
}



/* LAPTOP & NEST HUB ADJUSTMENTS */
@media screen and (min-width: 901px) and (max-width: 1440px) {
  .hero {
    height: 85vh; /* Slightly taller to give text more breathing room */
  }

  .slide {
    padding: 0 6%; /* Reduce side padding to fit text better */
    align-items: flex-start; /* Align to top so bottom nav doesn't overlap text */
    padding-top: 82px; 
  }

  .content {
    max-width: 600px; /* Narrower text block so it doesn't hit the animation */
    padding-bottom: 100px; /* Reduce bottom padding */
  }

  .content h1 {
    margin-top: 4rem;
    font-size: clamp(2rem, 4vw, 3rem); /* Slightly smaller headers */
  }

  .content p {
    font-size: 1rem;
    max-width: 400px;
  }

  .slide .carousel-animation {
    right: 2%;
    transform: translateY(-50%) scale(0.8); /* Scale down Lottie/Animation for small height */
  }

  .services-nav {
    padding: 30px 6%; /* Match slide padding */
    gap: 20px;
  }

  .service-card h2 {
    font-size: 1rem; /* Smaller nav titles */
  }

  .service-card p {
    font-size: 0.75rem; /* Smaller nav descriptions */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines to save vertical space */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Responsive Tweaks */
@media (max-width: 992px) {
  .hero-content {
    padding: 40px 5%;
  }

  h1 {
    font-size: 2.2rem;
  }
}


.logo-marquee {
  /* padding: 60px 0; */
  padding: 100px 0 0;
  background: var(--bg-white);
  /* Matching your Navy BG */
  overflow: hidden;
}

.marquee-title {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--accent-dblue);
  margin-bottom: 40px;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right,
      transparent,
      black 15%,
      black 85%,
      transparent);
}

.marquee-content {
  display: flex;
  gap: 60px;
  /* Large gap for a premium feel */
  animation: scroll-marquee 50s linear infinite;
  /* Slower speed for text readability */
}

.logo-text {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-dblue);
  white-space: nowrap;
  letter-spacing: -1px;
  transition: all 0.4s ease;
  cursor: default;
}

.logo-text:hover {
  color: var(--bg-dark);
  /* Your --accent-blue */
  transform: translateY(-5px);
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}



/* LAPTOP & NEST HUB (1025px to 1440px) */
@media screen and (min-width: 1440px) and (max-width: 1440px) {
  .logo-marquee {
    /* Reduce top padding so the section doesn't hog the viewport */
    padding: 60px 0 0; 
  }

  .marquee-title {
    font-size: 14px; /* Slightly smaller for a cleaner look */
    margin-bottom: 30px;
  }

  .marquee-content {
    gap: 50px; /* Tighten gap slightly for smaller laptop widths */
    /* Speed up slightly because the travel distance is shorter than 4k monitors */
    animation: scroll-marquee 40s linear infinite; 
  }

  .logo-text {
    font-size: 1.25rem; /* Downsize from 1.5rem to prevent crowding */
    letter-spacing: -0.5px;
  }
}

/* TABLET & MOBILE (Below 1440px) */
@media screen and (max-width: 1440px) {
  .marquee-container {
    /* Stronger fade on edges for smaller screens */
    mask-image: linear-gradient(to right, 
      transparent 0%, 
      black 20%, 
      black 80%, 
      transparent 100%);
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .marquee-content {
    gap: 30px;
    animation: scroll-marquee 30s linear infinite; /* Faster for smaller screens */
  }
}


@keyframes scroll-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}





/* services */

.services-hero-container {
  display: flex;
  align-items: stretch;
  min-height: auto;
  flex-wrap: wrap;
  padding: 6rem 5%;
  background: var(--bg-white);
  gap: 40px;
}


.visual-side {
  flex: 1;
  min-width: 450px;
  display: flex;
  flex-direction: column;
}


.hero-image-wrapper {
  flex: 1 1 auto;
    position: relative;
  overflow: hidden;
  height: 100%;
}

.hero-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.trust-bar {
  background-color: var(--bg-white);
  padding: 25px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.trust-bar::after {
  content: "+";
  position: absolute;
  right: 40px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 3rem;
  font-weight: 100;
}

.badge {
  background: var(--bg-white);
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Content Side: Ensure it takes full width on mobile */
.services-hero-content {
  flex: 1;
  min-width: 300px;
  padding: 0;
  /* Remove fixed side padding, use container 5% */
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
}

/* Typography: Responsive sizing using clamp or media queries */
.services-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--accent-dblue);
}

.services-hero-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 600px;
  line-height: 23px;
}

.services-hero-list {
  list-style: none;
  margin: 18px 0;
}

.services-hero-list li {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-dblue);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.services-hero-list a {
  text-decoration: none;
}

.services-hero-list li::before {
  content: "•";
  margin-right: 10px;
  font-size: 1.5rem;
}

.services-cta-btn {
  align-self: flex-start;
  padding: 15px 35px;
  background: var(--accent-dblue);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 15px;

  /* Create an invisible border so the button size stays consistent */
  border: 2px solid transparent;

  /* Smooth transition for all properties including border-color */
  transition: all 0.3s ease;
}

.services-cta-btn:hover {
  background: transparent;
  color: var(--bg-dark);

  /* Border color becomes visible on hover */
  border-color: var(--bg-dark);
}



/* Tablet & Mobile Specific Adjustments */
/* Mobile fix: Revert absolute positioning so image doesn't disappear */
@media (max-width: 992px) {
  .hero-image-wrapper {
    height: 400px;
  
  }

  .hero-image-wrapper img {
    position: relative;
    height: 100%;
  }

  .visual-side {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .trust-bar {
    padding: 15px 20px;
    gap: 10px;
  }

  .services-hero-list li {
    font-size: 1rem;
  }

  .services-cta-btn {
    width: 100%;
    text-align: center;
  }
}


@media screen and (min-width: 1440px) and (max-width: 1440px) {


  .visual-side {
    min-width: 400px; /* Slightly narrower to fit 50/50 split better */
  }


  .trust-bar {
    padding: 15px 25px; /* Slimmer bar for laptop screens */
    margin-top: -20px; /* Pull it up slightly over the image */
    z-index: 5;
  }

  .services-hero-content h1 {
    font-size: 2rem !important; 
    margin-bottom: 1.5rem;
  }

  .services-hero-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .services-hero-list li {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .services-cta-btn {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
}


.services-cta-btn,
.accordion-btn {
  align-self: flex-start;
  padding: 15px 35px;
  background: var(--accent-dblue);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 15px;

  /* Create an invisible border so the button size stays consistent */
  border: 2px solid transparent;

  /* Smooth transition for all properties including border-color */
  transition: all 0.3s ease-in-out;
}

.services-cta-btn:hover,
.accordion-btn:hover {
  background: transparent;
  color: var(--bg-dark);

  /* Border color becomes visible on hover */
  border-color: var(--bg-dark);
}

.accordion-btn-div {
  display: flex;
  justify-content: center;
  align-items: center;

}
/* Floating Chat Button */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s ease, transform 0.3s ease;
  background: rgb(7, 7, 44);
  box-shadow: 0 0 20px 5px rgba(56, 52, 112, 0.7);
  transition: all 0.4s ease; /* Smooth transition for opacity and transform */
  opacity: 1;
  visibility: visible;
}


.chat-widget.hidden-widget {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Optional: slight slide down effect */
    pointer-events: none; /* Prevents clicking while invisible */
}

/* This class will be toggled via JS */
.chat-widget.stuck {
  position: absolute;
  bottom: 30px;
  /* This is 30px above the top of the footer container */
}

.chat-widget:hover {
  background: var(--accent-dblue);
  box-shadow: rgba(132, 139, 170, 0.25) 0px 54px 55px, rgba(113, 131, 165, 0.12) 0px -12px 30px, rgba(58, 63, 133, 0.12) 0px 4px 6px, rgba(106, 121, 189, 0.17) 0px 12px 13px, rgba(112, 123, 172, 0.09) 0px -3px 5px;
  transition: all .3s ease;
}

.chat-widget svg {
  fill: white;
  width: 25px;
}

.strong {
  color: var(--accent-dblue);
}



/* services section */
.core-services {
  padding: 80px 5%;
  background-color: var(--bg-white);
  position: relative;
  /* Needed to anchor the lines */
}

.core-services::before,
.core-services::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  height: 1px;
  background-color: var(--bg-gray);
}

.core-services::before {
  top: 0;
}

.core-services::after {
  bottom: 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-dblue);
  margin-bottom: 10px;
}

.section-subtitle {
  color: #6c757d;
}

/* The Grid System */
/* SLIDER SYSTEM */

/* SLIDER WRAPPER */
.services-slider {
  overflow: hidden;
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}

/* TRACK */
.services-track {
  display: flex;
  gap: 30px;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

/* DEFAULT = DESKTOP (3 cards) */
.services-track .service-item {
  flex: 0 0 calc((100% - 60px) / 3);
  /* 3 cards with 30px gap */
  min-width: 0;
}



.slider-nav {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 16px 0;
}

.slider-nav button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #f2f2f2;
  color: #111;
  font-size: 18px;
  transition: 0.3s ease;
}

.slider-nav button:hover {
  background: var(--accent-dblue);
  color: white;
}


.service-item {
  position: relative;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}



.service-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover .service-bg {
  transform: scale(1.15);
}


.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 1, 38, 0.85) 0%, transparent 60%);
  z-index: 2;
}

.service-header {
  display: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-content h3 {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}


.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dblue), var(--bg-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 4;
  opacity: 1;
  transform: translateY(0);

  backdrop-filter: blur(4px);
}

.service-item:hover .service-bg {
  transform: scale(1.1);
}


/* Icon Box Styling */
.service-icon-box {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon-box i {
  font-size: 30px;
  color: #fff;
}


.shape-2 {
  position: absolute;
  top: -5px;
  left: -5px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
  will-change: transform;
}

.service-item:hover .shape-2 {
  transform: scale(1.1) translate(5px, 5px);
  opacity: 0.9;
}


.shape-2 img {
  width: 100px;
  height: auto;
  display: block;
}


.overlay-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
}


.overlay-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  align-self: center;
}

.service-link {
  text-decoration: none;
  color: white;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 10px 25px;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: auto;
}

.service-link:hover {
  background: var(--bg-white);
  color: #0f0026;
  border-color: white;
  transform: translateY(-3px);
}


/* Initial state: Hidden and slightly shifted down */
.service-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Revealed state: Triggered by JS */
.service-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: Stagger the animation for a "wave" effect */
.service-item:nth-child(1) {
  transition-delay: 0.1s;
}

.service-item:nth-child(2) {
  transition-delay: 0.2s;
}

.service-item:nth-child(3) {
  transition-delay: 0.3s;
}


@media (max-width: 1440px) {
  .services-track .service-item {  
    flex: 0 0 calc((100% - 60px) / 3);
  }
}

@media (max-width: 768px) {
  .services-track .service-item {
    flex: 0 0 100%;
  }
}









/* Stats Sections */

.stats-section {
  margin: 6rem 0;
  padding: 60px 5%;
  /* Creates a glow effect over the image */
  background:
    radial-gradient(circle at center, transparent 0%, var(--bg-dark) 90%),
    linear-gradient(rgba(28, 37, 65, 0.5), rgba(28, 37, 65, 0.5)),
    url('assets/img/back.jpg');

  background-size: cover;
  background-position: center;
  color: var(--bg-white);
  text-align: center;
  position: relative;
}

.stats-subtitle {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.stats-subtitle::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-blue);
  margin: 5px auto 0;
}


.stats-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 60px;
  color: var(--bg-white) !important;
}



.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  position: relative;
}

.stat-icon img {
  width: 100%;
  height: auto;
  opacity: 0.9;
}



.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.stat-number::after {
  content: '+';
  color: #ffffff;
}

.stat-label {
  color: var(--bg-gray);
  font-size: 1.1rem;
  font-weight: 500;
}


/* Laptop / Nest Hub / Large Tablet (1440px - 1440px) */
@media (max-width: 1440px) {
  .stats-section {
    padding: 60px 4%;
    margin: 4rem 0; /* Reduced margin for smaller laptop screens */
  }

  .stats-grid {
    /* Force 2 columns if the 200px minmax makes 4 columns too tight */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    padding: 0 20px;
  }

  .stat-number {
    font-size: 2.2rem; /* Slightly smaller numbers */
  }

  .stats-title {
    margin-bottom: 40px; /* Tighter spacing */
  }
}

/* Specific fix for Nest Hub / Small Tablet (Under 1440px) */
@media (max-width: 1440px) {
  .stats-grid {
    /* If you have 4 items, 2x2 usually looks best on Nest Hub */
    grid-template-columns: repeat(4, 1fr);
  }
  
  .stat-icon {
    width: 50px; /* Scaled down icons */
    height: 50px;
  }

  
  .stat-number {
    font-size: 2rem; /* Slightly smaller numbers */
  }

  .stats-title {
    margin-bottom: 40px; /* Tighter spacing */
    font-size: 2rem;
  }
}

/* Mobile (Under 600px) */
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr; /* Stack vertically on small phones */
    gap: 40px;
  }
}


/* faq */

/* FAQ Section Styles */
.faq-container {
  padding: 80px 8%;
  background: #fcfcfc;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-subtitle {
  color: var(--accent-dblue);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.faq-subtitle::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-dblue);
  margin: 5px auto 0;
}

.faq-title {
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  color: var(--accent-dblue);
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 1440px) {
  .faq-title {
    font-size: 2.2rem;
  }
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  border: 2px solid var(--bg-gray);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.accordion-item:hover {
  border-color: var(--accent-dblue);
}

.accordion-header {
  width: 100%;
  padding: 25px 30px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.accordion-header span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dblue);
  line-height: 1.4;
}

/* Custom Plus/Minus Icon */
.plus-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.plus-icon::before,
.plus-icon::after {
  content: '';
  position: absolute;
  background-color: var(--accent-dblue);
  transition: transform 0.3s ease;
}

/* Horizontal line */
.plus-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

/* Vertical line */
.plus-icon::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

/* Active State Styles */
.accordion-item.active {
  border-color: var(--accent-dblue);
}

.accordion-item.active .plus-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
  /* Hide vertical line to make it a minus */
}

/* Animated Content Area */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  background-color: #f9f9f9;
  /* Subtle gray background for answer */
}

.accordion-inner {
  padding: 0 30px 25px 30px;
  color: #3e4758;
  line-height: 1.6;
  font-size: 1rem;
}




/* ================= CONTACT SECTION ================= */

.contact-section {
  margin-top: 4rem;
  padding: 80px 5%;
  background: var(--bg-dark);
}


.contact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-left h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #fcfcfc;
}

.contact-left p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
  color: #fcfcfc;
}


/* LEFT SIDE */
.contact-left {
  flex: 1;
  min-width: 450px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  isolation: isolate;
  flex-direction: column;
}

.contact-left::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  /* Slightly larger */
  height: 90%;
  background: radial-gradient(circle,
      rgba(51, 204, 255, 0.7) 0%,
      rgba(51, 204, 255, 0.1) 50%,
      transparent 65%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
  animation: glow-pulse 5s ease-in-out infinite;
}

@keyframes glow-pulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

#contact-lottie {
  width: 100%;
  max-width: 600px;
  height: auto;
  position: relative;
  z-index: 2;
}


/* RIGHT SIDE */
.contact-right {
  flex: 1;
  max-width: 600px;
  margin: 20px auto;
  /* Changed min-width to 100% for mobile responsiveness */
  width: 100%;
  min-width: 320px;
  background: #f2f2f2;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
  box-sizing: border-box;
}

/* Ensure padding doesn't break width on small screens */
@media (max-width: 480px) {
  .contact-right {
    padding: 20px;
  }
}

.contact-right h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: var(--accent-dblue);
}

/* FORM STRUCTURE */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
  width: 100%;
}

/* SHARED INPUT STYLES */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  background: transparent;
  transition: 0.3s ease;
  box-sizing: border-box;
  resize: none;
}

/* SELECT SPECIFIC OVERRIDE */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: #333;
  background-color: transparent;
}

/* FONT AWESOME ICON STYLING */
.select-wrapper i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  /* Essential: clicks pass through to the select box */
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-dblue);
}

/* FLOATING LABELS */
.form-group label {
  position: absolute;
  top: 14px;
  left: 15px;
  font-size: 0.9rem;
  color: #888;
  pointer-events: none;
  transition: 0.3s ease;
  background: #f2f2f2;
  padding: 0 5px;
}



/* Hide hint by default */
.input-hint {
  display: none;
  font-size: 12px;
  color: red;
  margin-top: 5px;
}

/* Show hint when the input is focused */
input:focus~.input-hint {
  display: block;
}




/* ANIMATION TRIGGER */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label,
.form-group select:focus+label,
.form-group select:valid+label {
  top: -8px;
  left: 10px;
  font-size: 0.75rem;
  color: var(--accent-dblue);
  font-weight: bold;
}

/* SUBMIT BUTTON */
.contact-right .contact-form .contact-btn {
  padding: 15px;
  background: var(--bg-dark);
  border: 2px solid transparent;
  border-radius: 4px;
  color: var(--bg-white);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-right .contact-form .contact-btn:hover {
  border-color: var(--bg-dark);
  background: var(--bg-white);
  color: var(--bg-dark);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-left,
  .contact-right {
    min-width: 100%;
  }
}

/* --- Responsive Adjustments --- */

@media screen and (max-width: 768px) {
  .services-hero-content {
    /* FIX: Removes the 450px restriction that causes the zoom/scroll */
    min-width: unset;
    width: 100%;
    padding: 20px;
    /* Reduces padding so text doesn't feel cramped */
    text-align: center;
    /* Optional: Centers text for a cleaner mobile look */
  }

  .services-hero-content h1 {
    /* FIX: Shrinks the giant 3rem text so it fits on one screen */
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .services-hero-content p {
    font-size: 1rem;
    max-width: 100%;
    /* Ensures paragraph takes full width */
    margin-left: auto;
    margin-right: auto;
  }

  .services-hero-list li {
    font-size: 1.1rem;
    justify-content: center;
    /* Centers the list items if you used text-align: center */
  }

  .services-cta-btn {
    align-self: center;
    /* Centers the button on mobile */
    width: 100%;
    /* Optional: Makes the button full-width (easier to tap) */
    max-width: 300px;
  }
}


/* Responsive adjustments for the scrolling marquee */
@media screen and (max-width: 768px) {
  .marquee-container {
    /* Reduce the fade intensity so more text is visible on narrow screens */
    mask-image: linear-gradient(to right,
        transparent,
        black 5%,
        black 95%,
        transparent);
    padding: 15px 0;
  }

  .marquee-content {
    /* Tighten the gap for mobile */
    gap: 30px;
    /* Slightly faster speed because the travel distance is shorter */
    animation: scroll-marquee 30s linear infinite;
  }

  .logo-text {
    font-size: 0.85rem;
    /* Scale down text size */
    font-weight: 600;
    white-space: nowrap;
    /* Essential: prevents text from wrapping to a new line */
  }
}



@keyframes scroll-marquee {
  from {
    transform: translateX(0);
  }

  to {
    /* This moves exactly half the content, creating a seamless loop */
    transform: translateX(-50%);
  }
}








@media (max-width: 768px) {

  /* Shrink the Lottie Animation and move it downward */
  .slide .carousel-animation {
    width: 250px !important;
    height: 250px !important;
    right: 50% !important;
    /* Changed: Move it further down (65%) instead of vertical center (50%) */
    top: 50% !important;
    transform: translate(50%, -50%) !important;
    opacity: 0.6;
  }

  /* Shrink the Hero Text and move it upward */
  .content h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .content p {
    font-size: 0.9rem !important;
    max-width: 90%;
  }

  /* Adjust the text container position */
  .content {
    /* Push text toward the top of the slide */
    margin-top: 10px !important;
    /* Remove the bottom padding that was pushing it up from the bottom */
    padding-bottom: 0px !important;
    z-index: 10;
  }

  /* Ensure the slide allows for this spacing */
  .slide {
    flex-direction: column;
    justify-content: flex-start;
    /* Aligns content to the top */
    padding-top: 30%;
    /* Gives some breathing room at the very top */
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-5000%);
  }

  to {
    transform: translateY(-5000%);
  }

}
.nav-btn {
  background: transparent;
  border: 2px solid #3b82f6;
  color: #3b82f6;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.3s;
}

.nav-btn:hover {
  background: #3b82f6;
  color: white;
}





