@import url("https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  @font-face {
    font-family: "Gustavo_Bold";
    font-weight: 700;
    src: url("./assets/fonts/Gustavo_trial-Bold.ttf") format("truetype");
  }

  @font-face {
    font-family: "Cabin";
    font-weight: 400;
    src: url("./assets/fonts/Gustavo_trial-Regular.ttf") format("truetype");
  }

  @font-face {
    font-family: "Gustavo_Medium";
    font-weight: 500;
    src: url("./assets/fonts/Gustavo_trial-Medium.ttf") format("truetype");
  }

  @font-face {
    font-family: "Gustavo_Light";
    font-weight: 200;
    src: url("./assets/fonts/Gustavo_trial-Light.ttf") format("truetype");
  }

  :root {
    --yellow: #fbcd0f;
    --yellow-rgb: 251, 205, 15;
    --blue: #053863;
    --blue-dark: #0e2625;
    --blue-light: #fff6e8;
    --blue-extralight: #424444;
    --heading: #ff0059;
    --text-color: #131616;
    --yellow-shade: #e5c896;
  }
  html {
    font-family: "Poppins", system-ui, sans-serif;
  }

  body {
    background: var(--text-color);
  }
}

@layer components {
  .p {
    line-height: 1.75;
    font-weight: 300;
    font-size: 1rem /* 16px*/;
    color: rgb(107 114 128);
  }
  h1,
  h3,
  h2,
  h5 {
    font-family: "Cabin";
    color: #fff;
  }
  .h2 {
    font-size: 3rem;
    line-height: 1;
    font-weight: 600;
    background: -webkit-linear-gradient(#0e9304, #2b2b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .section-title {
    margin-bottom: 0.75rem;
    font-family: Sora, sans-serif;
    font-size: 2.25rem;
    line-height: 2.25rem;
    font-weight: 700;
    line-height: 1.25 !important;
  }
}

.wrapper {
  width: 100%;
  padding: 0;
  /* min-height: 100vh; */
  position: relative;
}
.home_video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dot-pattern {
  background: #131616;
}
.section_banner {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
}
nav {
  background: var(--blue-extralight);
}
.navbar-nav li a {
  color: white;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  padding: 12px 24px;
  border-radius: 8px;
  transition: 0.3s all ease-in;
}
.navbar-nav li a.active {
  background-color: white !important;
  color: black !important;
}
.navbar-nav li a:hover,
.navbar-nav li a.active {
  background: white;
  color: black;
}
.theme-btn,
.theme-btn-secondary {
  display: inline-flex;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  transition: 0.3s all ease-in;
}
.theme-btn:hover {
  background: var(--blue);
  color: white;
}
.theme-btn {
  background: var(--yellow);
}
.theme-btn-secondary {
  background: var(--blue);
  color: white;
}
.theme-btn-secondary:hover {
  background: var(--yellow);
  color: var(--blue);
}
/* insights_section css */
.insights_section dt {
  font-family: "Gustavo_Bold";
  color: #fff;
}

/* Solution section */
.solution_wrapper {
  width: 100%;
  position: relative;
  border-radius: 30px;
}

/* Service Section */
.service_wrapper {
  width: 100%;
  float: left;
  position: relative;
}

/* Products Section */
.products_wrapper {
  width: 100%;
  float: left;
  position: relative;
}

/* getintouch wrapper */
.getintouch {
  width: 100%;
  float: left;
  position: relative;
}
.getintouch dd {
  font-family: "Gustavo_Light";
  color: #fff;
}

/* footer wrapper */
.footer_wrapper {
  width: 100%;
  float: left;
}

/* client slider scroll */
.slider-container {
  overflow: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
}
.slider-item {
  display: inline-block;
  /* width: 20%;  */
  cursor: pointer;
  vertical-align: middle; /* Center vertically */
}
.slider-item img {
  height: 80px;
  min-width: 100%;
}

/* testimonials */
.testimonial-slider {
  position: relative;
  min-height: 220px;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Solution wrapper */
.solution_wrapper {
  position: relative;
  background: #fff6e8;
}

/* Sticky products section */
.sticky-section {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff6e8;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* Products header */
.products-header {
  flex-shrink: 0;
  background: #fff6e8;
  position: relative;
  z-index: 20;
}

/* Products container holds both rows */
.products-container {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

/* Both product rows are absolutely positioned to overlap */
.product-row {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff6e8;
  transition: all 0.7s ease-out;
}

/* First row - default visible */
.first-row {
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
}

/* Second row - hidden below */
.second-row {
  z-index: 2;
  opacity: 0;
  transform: translateY(100%);
}

/* Second row active state - slides up */
.second-row.active {
  opacity: 1;
  transform: translateY(0);
}

/* First row fades when second appears */
.first-row.hidden {
  opacity: 0;
  transform: translateY(-20px);
}

/* Spacer to create scroll distance */
.sticky-spacer {
  height: 150vh;
  background: transparent;
}
/* Mobile/Tablet (stacked view) */
@media (max-width: 1023px) {
  .second-row {
    display: block !important;
  }
  .sticky-section {
    position: static;
    height: auto;
  }

  .products-container {
    position: static;
    overflow: visible;
  }

  .product-row {
    position: static;
    opacity: 1;
    transform: none;
    margin-bottom: 2rem; /* Space between rows */
  }

  .sticky-spacer {
    display: none;
  }
}
