@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Alice&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Diphylleia&display=swap");

* {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-family: "DM Sans", sans-serif;
}

:root {
  --light: #fff;
  --dark: #1e1e1e;
  --accent-1: #01a79d;
  --accent-2: #fc6c23;
  --accent-3: #f7ffdc;
  --accent-4: #d1f3f5;
  --alice: "Alice", serif;
}

html {
  overflow-x: hidden;
}

html,
body {
  background-color: var(--light);
  color: var(--dark);
  height: 100%;
}

svg {
  flex: none;
}

button {
  cursor: pointer;
}

body.loading{
overflow:hidden;
}

#sidebar{
    overscroll-behavior: contain;
}

.preloader_container {
  visibility: visible !important;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.loader_box{
    opacity:0;
}

.reveal-word {
  display: inline-block;
  transition: color 0.3s ease;
  margin-right: 0.25em; /* Add space between staggered words */
}

/* Hide body content until preloader is done */
body.loading > *:not(.preloader_container) {
  visibility: hidden;
}

.steps_slides > li {
  overflow: hidden; /* required for rounded corners */
  will-change: transform, border-radius;
  transition: box-shadow 0.3s ease;
}

.steps_slides img {
  transform: scale(1.3);
  will-change: transform;
  transition: transform 0.2s ease;
}

.slide_title {
  font-family: var(--alice);
}

/*.wrapper {*/
/*  height: 100vh;*/
/*}*/

/*.list {*/
/*  justify-content: flex-start;*/
/*  align-items: center;*/
/*  height: 100%;*/
/*  display: flex;*/
/*  position: relative;*/
/*  padding: 0.2rem;*/
/*}*/

.item {
  width: 100vw;
  height: 100%;
  display: flex;
  position: absolute;
  inset: 0%;
  box-shadow: rgb(203 203 203 / 20%) 0px 8px 24px;
  overflow: hidden;
}

.item_number {
  position: absolute;
  top: 6rem;
  left: 3rem;
}

/*.item_content {*/
/*  color: #292929;*/
/*  flex-flow: column;*/
/*  justify-content: center;*/
/*  align-items: flex-start;*/
/*  display: flex;*/
/*  position: relative;*/
/*  width: 50%;*/
/*}*/

.item_media {
  object-fit: cover;
  width: 50%;
  height: 100%;
}

.padding-global {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.padding-vertical {
  padding: 2rem;
}

@media (max-width: 575.98px) {
  .heading {
    font-size: 2.5rem;
  }

  .item {
    display: flex;
    flex-direction: column;
  }

  .item_content,
  .item_media {
    height: 50vh;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }

  .item_number {
    font-size: 0.5rem;
    top: 1.5rem;
  }
}

.hover_steps p.hover_index {
  display: inline-block;
  will-change: transform;
  transform-origin: top left;
  transition: all 0.3s linear;
}

.hover_steps:hover p.hover_index {
  transform: scale(1.8);
}

.hover_steps .hover_img img {
  filter: grayscale(1);
  will-change: auto;
  transition: all 0.4s linear;
}

.hover_steps:hover .hover_img img {
  filter: grayscale(0);
}

.hover_steps .hover_title {
  overflow: hidden !important;
  transform: translateY(5%);
  will-change: auto;
  transition: all 0.4s linear;
}

.hover_steps:hover .hover_title {
  transform: translateY(0);
  opacity: 1;
}

.text-fill {
  background: linear-gradient(
    to right,
    #01a79d 50%,
    #e5e7eb 50%
  ); /* Using your Accent 1 color */
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vision-fill {
  -webkit-text-stroke: 1.5px #01a79d;
  background: linear-gradient(to right, #01a79d 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Custom corner border for a 'logistics' feel */
.cta-box-accent {
  border-left: 2px solid #01a79d;
  border-top: 2px solid #01a79d;
  padding-left: 2rem;
}

/* Professional Popup Styling */
.partner-label {
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 16px;
  border-radius: 4px; /* Sharp professional corners */
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
  border-left: 4px solid #01a79d;
  backdrop-blur: 10px;
}
.p-avatar {
  width: 35px;
  height: 35px;
  border-radius: 4px;
  background: #021526;
}
.p-name {
  color: #021526;
  font-size: 12px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}
.p-role {
  color: #01a79d;
  font-size: 9px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
}

/* Custom Animations & Outline */
.vision-text-outline {
  transition: all 0.5s ease;
}
.vision-text-outline:hover {
  color: #01a79d;
  -webkit-text-stroke: 1.5px transparent;
}
@keyframes progress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0%);
  }
}
.animate-progress {
  animation: progress 3s ease-out forwards;
}

/* Lenis card */
/* Ensure the section being pinned is on top of things behind it, 
   but doesn't hide things coming after it */
.stack-section {
  position: relative;
  /* Crucial: clips the cards that are sitting at xPercent: 120 */
  overflow: hidden;
  /* Ensure a solid background so pinned content doesn't ghost over previous sections */
  background-color: white;
  width: 100%;
}

.cards-wrapper {
  position: relative;
  /* Height must be enough to show the 'stack' at the end */
  height: 600px;
}

/* Ensure the cards don't interact with the mouse until they are in place */
.card {
  pointer-events: none;
}
.card.active {
  /* You could toggle this class in the timeline */
  pointer-events: auto;
}

.text-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  color: transparent;
  transition: -webkit-text-stroke 0.5s ease;
}

.text-outline:hover {
  -webkit-text-stroke: 1px #01a79d;
}

.reveal-text {
  will-change: transform, letter-spacing, filter;
}

/* Ensure smooth scrolling experience */
.about-track {
  cursor: default;
}

#cards_row {
  /* This is the container holding the cards */
  perspective: 1500px;
  transform-style: preserve-3d;
  display: flex;
  will-change: transform;
}

.pro_cards {
  /* Ensure cards have a transform-style to allow children to also be 3D if needed */
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.font2 {
  font-family: "Diphylleia", serif;
}

.mission_img,
.vision_img {
  opacity: 0;
  transform: translateY(20%);
  will-change: opacity;
}

.li_two,
.li_three {
  transform: translateX(-40%);
}

.section-with-grid::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
}
