:root {
  --slide-speed: 0.8s;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --bg-dark: #0f0026;
  --accent-dblue: #1c2541;
  --accent-blue: #1c5e74;
  --bg-white: #fcfcfc;
  --bg-gray: #a8b0c0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

/* loader */
#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);
  }

  50% {
    transform: scale(1.1);
    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 */
    }
}

html {
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-image: url("/assets/about us/img-1.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

/* 📱 Mobile Fix */
@media (max-width: 768px) {
  body {
    background-position: center;
  }
}


/* --- About Us Hero Section --- */
.about-us {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 80vh; 
  padding: clamp(3rem, 10vh, 8rem) 5%;
  
  background: linear-gradient(rgba(1, 0, 38, 0.75), rgba(3, 0, 38, 0.75)),
              url("/assets/about-us/about-us-header.webp") no-repeat center/cover;
  color: #fff;
  box-sizing: border-box;
}

.about-us .header-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem); 
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.about-us .header-description {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 700px; 
  margin: 0 auto;
}

/* Specific fix for Nest Hub / Short Laptops */
@media (max-height: 700px) and (orientation: landscape) {
  .about-us {
    padding: 2rem 5%;
    height: auto; 
    min-height: 80vh; 
  }
}



/* 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: 2.2rem; 
    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;
  }
}

/* About Card container */


.about-card-container {
  text-align: center;
  padding: 60px 5%;
  background: var(--bg-white);
  padding-top: 6rem;
}

.about-card-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 1px;
  background-color: var(--bg-gray);
}



.header-section h2 {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.header-section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-blue);
  margin: 5px auto 0;
}



.header-section p {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 60px;
}


/* Card Layout */
.values-grid {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: var(--white);
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  padding: 40px 30px;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
/* 
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-dblue);
} */

.icon-box {
  font-size: 3rem;
  margin-bottom: 20px;
}

.about-card-icon:hover {
  color: var(--accent-dblue);
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* .card:hover .icon-box,
.card:hover .about-card-icon {
  animation: pulse-animation 2s ease-in-out infinite;
} */

.icon-box,
.about-card-icon {
  display: inline-block;
  transition: color 0.3s ease;
}


.card h3 {
  color: var(--accent-dblue);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.card p {
  color: var(--accent-dblue);
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 1440px) {
  .values-grid {
    /* Forces 3 columns if the screen is a Nest Hub/Tablet in landscape */
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .card {
    padding: 25px 15px;
  }

  .card h3 {
    font-size: 1.3rem;
  }

  .header-section p{
    font-size: 2rem;
  }

  .ceo-quote {
  font-size: 2rem;
  }
}



.quote-section {
  padding: 100px 5%;
  background: transparent;
  display: flex;
  justify-content: center;
}

.quote-container {
  max-width: 800px;
  text-align: center;
  background: #ffffff;
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  position: relative;
}

.quote-icon {
  font-family: 'serif';
  font-size: 80px;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: -20px;
}

.ceo-quote {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1.3;
  margin-bottom: 30px;
}

.ceo-quote span {
  color: var(--accent-dblue);
  font-weight: 700;

}

.ceo-info {
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
  display: inline-block;
}

.ceo-name {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.ceo-company {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Global lotie */
.global-presence-wrapper {
  background: linear-gradient(180deg, #1a2846 0%, #0e1628 50%, #080e1a 100%);
  padding: clamp(60px, 10vh, 120px) 5%;
  /* Responsive vertical padding */
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.global-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}


@media (max-width: 992px) {
  .global-container {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .global-description {
    margin: 0 auto;

  }

  .global-title {
    margin-bottom: 30px;
  }

  .carousel-animation {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 1440px) {

  .global-title {
  font-size: 2rem;
}
}


.global-content {
  flex: 1;
  z-index: 2;
}

.global-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.global-description {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 520px;
}

.carousel-animation {
  flex: 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#lottie-animation-1 {
  width: 100% !important;
  max-width: 600px;
  height: auto !important;
  filter: drop-shadow(0 0 20px rgba(51, 204, 255, 0.3));
}


/* 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 */
}


.chat-widget.stuck {
  position: absolute;
  bottom: 30px;
}

.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);
}

@keyframes slideDown {
  from {
    transform: translateY(-5000%);
  }

  to {
    transform: translateY(-5000%);
  }
}