@import url('https://fonts.googleapis.com/css2?family=Playball&display=swap');

::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

@font-face {
  font-family: 'Playball';
  /* Name you’ll use in CSS */
  src: url('https://fonts.googleapis.com/css2?family=Playball&display=swap');
  /* Path to font */
  font-weight: normal;
  /* optional */
  font-style: normal;
  /* optional */
  font-display: swap;
  /* recommended for performance */
}

.playball {
  font-family: 'Playball', cursive !important;

}

@font-face {
  font-family: 'HelveticaNeueBold';
  src: url('./fonts/HelveticaNeueBold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

.heading-fonts {
  font-family: 'HelveticaNeueBold', Arial, sans-serif !important;
}

html {
  scroll-behavior: smooth;
}

body {
  /* font-family: 'HelveticaNeueBold', Arial, sans-serif; */
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #ffffff;
}

.script-font {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  /* Script fonts usually don't have bold weights */
  font-size: 3rem;
  /* Adjust size as needed */
  color: #F59E0B;
  /* Matches the orange color in your image */
}

/* ACTIVE FLOATING IMAGE */
#active-image {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  object-fit: cover;
  transform-origin: top left;
  will-change: transform, width, height, opacity;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  width: 0;
  height: 0;
}

/* START PLACEHOLDER (Below Text) */
#start-placeholder {
  width: 90%;
  height: 70vh;
  visibility: hidden;
  margin: auto;
}

/* TARGET SLOT (Inside Grid) */
#target-slot {
  position: relative;
  background-color: #f3f4f6;
}

/* FINAL STATIC IMAGE */
#final-static-img {
  opacity: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.1s ease;
}

/* SECTION OPACITY */
#project-section {
  opacity: 0.1;
  transition: opacity 0.1s linear;
}

/* --- 1. TEXTURES --- */
.bg-grid-soft {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(212, 163, 115, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 163, 115, 0.1) 1px, transparent 1px);
}

.bg-noise {
  filter: contrast(120%) brightness(100%);
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* --- 2. CANVA-STYLE STICKER ANIMATIONS --- */
@keyframes float-sticker {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(3deg);
  }
}

@keyframes drift-sticker {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(20px, -20px) rotate(-5deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.sticker-float {
  animation: float-sticker 8s ease-in-out infinite;
}

.sticker-drift {
  animation: drift-sticker 12s ease-in-out infinite;
}

/* --- 3. PILL ANIMATION --- */
/* #pill-container {
        transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
        will-change: width;
    } */

#pill-icon {
  transition: transform 0.6s ease, opacity 0.3s ease;
  width: 50px;
  padding-right: 10px;
  transform: translateY(0px);
  /* transition: all 0.6s ease; */
}

.word-item {
  position: absolute;
  top: 19px;
  left: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

/* .word-item.active {
        opacity: 1;
        transform: translateY(0);
    }

    .word-item.exit {
        opacity: 0;
        transform: translateY(-20px);
    }


    .word-item.enter {
        opacity: 0;
        transform: translateY(40%) scale(1.05);
    } */

.spin-icon {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease;
  /* transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); */
}

/* Image animation classes */
.pill-icon-img {
  width: 24px;
  /* height: 24px; */
  margin-right: 12px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.6s ease;
  opacity: 1;
  transform: translateY(0);
}

.pill-icon-img.exit {
  transform: translateY(-20px);
}

.pill-icon-img.enter {
  transform: translateY(20px);
}

/* UPDATED GRADIENT: Matches the Left(Orange) -> Right(Black) reference image */
.custom-gradient {
  /* background: linear-gradient(90deg, #D95415 0%, #8f2d05 40%, #000000 85%); */
  background-image: url('../images/cts-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Smooth Accordion CSS */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
  opacity: 0;
}

.faq-content.open {
  opacity: 1;
}

/* Icon Rotation Transition */
.icon-container svg {
  transition: transform 0.3s ease;
}

.list-style-type {
  list-style-type: disclosure-closed;
}

/* .video-sticky-cards {
    position: sticky;
    top: 80px;
    margin-bottom: 120px;
    z-index: 10;
    background: inherit;
    transition: all 0.3s ease-in-out;
} */
/* Base styles for all sticky cards */
.video-sticky-cards {
  position: sticky;
  margin-bottom: 120px;
  z-index: 10;
  /* background: inherit; */
  transition: all 0.3s ease-in-out;
}

/* Specific sticky positions for each card */
.video-sticky-cards:nth-child(1) {
  top: 80px;
}

.video-sticky-cards:nth-child(2) {
  top: 100px;
}

.video-sticky-cards:nth-child(3) {
  top: 100px;
}

/*Testimonial*/
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth Transition for the slider track.
        Using cubic-bezier for that premium "Apple-like" easing.
    */
.slider-transition {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.grid-section-heading {
  position: relative;
  top: -80px;
  padding: 10px;
  z-index: 48;
  /* margin-bottom: 130px; */
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1c1a24;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;

  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.arrow {
  position: absolute;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.progress-ring {
  position: absolute;
  transform: rotate(-90deg);
}


.progress-ring__circle {
  stroke-dasharray: 163;
  /* circumference */
  stroke-dashoffset: 163;
  transition: stroke-dashoffset 0.2s linear;
}

@media (max-width:1535px) and (min-width:1335px) {
  .sticky-viewport {
    height: 80vh !important;
  }
}

@media (max-width:991px) and (min-width:768px) {
  .sticky-viewport {
    height: 80vh !important;
  }
}

@media (max-width:767px) and (min-width:320px) {
  .word-item {
    position: absolute;
    top: 9px;
  }

  #word-box {
    height: 60px !important;
  }

  #pill-container {
    height: 70px;
  }
}

@media (max-width:767px) and (min-width:320px) {
  .word-item {
    position: absolute;
    top: 18px;
  }

  #pill-container {
    height: 70px;
  }

  #pill-icon {
    transition: transform 0.6s ease, opacity 0.3s ease;
    width: 50px;
    padding-right: 10px;
  }

  .template-grid-cards {
    position: sticky !important;
    top: 80px;
  }
}

/* --- 3. PILL ANIMATION UPDATED --- */
#pill-container {
  transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: width;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* Zaroori hai taaki exit items bahar na dikhein */
}

/* Common animation logic for both Image and Text */
.pill-icon-img,
.word-item {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

/* Icon specific sizing */
.pill-icon-img {
  width: 32px;
  /* Sizing adjust kariye zaroorat anusar */
  margin-right: 12px;
  flex-shrink: 0;
}

/* --- ANIMATION STATES --- */

/* 1. Active: Screen par dikhne wala */
.pill-icon-img.active,
.word-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 2. Exit: Upar slide hoke gayab hona */
.pill-icon-img.exit,
.word-item.exit {
  opacity: 0;
  transform: translateY(-120%);
  /* Percentage use karne se responsive rehta hai */
}

/* 3. Enter: Neeche se tayyar rehna */
.pill-icon-img.enter,
.word-item.enter {
  opacity: 0;
  transform: translateY(120%);
}

/* --- MOBILE RESPONSIVENESS FIX --- */
@media (max-width: 767px) {


  .pill-icon-img {
    width: 28px;
  }

  .video-sticky-cards {
    margin-bottom: 20px;
  }

  .video-sticky-cards:nth-child(1) {
    margin-bottom: 200px;
  }

  .video-sticky-cards:nth-child(2) {
    margin-bottom: 200px;
  }

  .video-sticky-cards:last-child {
    margin-bottom: 20px;
  }
}

/* Custom scrollbar for a cleaner look */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* The key to the "cut-off" look: defining a specific height and offset */
.bento-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr;
  /* Middle is wider, sides are "cut" */
  gap: 12px;
  width: 120%;
  /* Pushes columns off-screen */
  margin-left: -10%;
  /* Centers the middle content */
}

body {
  background-color: #fff;
  overflow-x: hidden;
}

.font-serif-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* HEADER & HERO Z-INDEX */
header.top-nav {
  position: sticky;
  top: 0;
  z-index: 120;
  /* Highest z-index */
  background: white;
}


/* Ensure the hero section covers the animated image */
header,
.hero-section {
  position: relative;
  z-index: 110;
  background: white;
}

/* Fix the text rolling overlap (The 'pro' text issue) */
#word-box {
  display: inline-flex;
  align-items: center;
  height: 80px;
  padding: 15px;
  vertical-align: middle;
  overflow: hidden;
  /* Clips the sliding text properly */
  background-color: white;
}

.mask-container {
  height: 70px;
  overflow: hidden;
}


.rolling-item {
  height: 70px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 1.4;
}

.hero-section {
  position: relative;
  z-index: 90;
  background: white;
  margin-bottom: 0;
  /* Remove any gaps */
  padding-bottom: 5vh;
}

#scroll-section {
  position: relative;
  z-index: 10;
  margin-top: 0;
  /* Align directly after hero */
}

.sticky-viewport {
  position: sticky;
  top: 70px;
  height: 100vh;
  background: white;
  /* Match hero background to hide glich */
}


#main-image {
  opacity: 1 !important;
  z-index: 40;
  /* Middle layer while animating */
  pointer-events: none;
  /* Allows mouse to "pass through" to grid items while moving */
  transition: border-radius 0.3s ease;
}

#grid-container {
  pointer-events: auto !important;
  /* RE-ENABLE mouse interaction for the grid */
  position: relative;
  z-index: 20;
  margin: auto;
}

.grid-item {
  position: relative;
  z-index: 10;
  background-color: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

/* Ensure hover content is always above the landed image */
.grid-item .absolute {
  z-index: 50;
}