/* Background Gradient of Whole Website - Opened */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* ✅ Enabled */
}

html,
body {
  background-color: #220000;
  /* fallback dark color */
  height: auto;
  width: 100%;
  /* Ensure width is viewport width */
  max-width: 100vw;
  /* Prevent widening beyond viewport */
  overflow-x: hidden;
  /* Hide horizontal overflow */
  /* scroll-snap-type: y mandatory; */
  scroll-behavior: smooth;
  /* smooth snap */
  margin: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}



body {
  background-size: 300% 300%;
  animation: gradient-animation 20s ease infinite;
  font-family: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  /* default */
  font-style: normal;
  user-select: none;
  overflow-x: hidden;
  /* Additional safety */
  max-width: 100vw;
  /* Ensure no overflow */
  position: relative;
  /* containment context */
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-position: center center;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}






.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  
}

.hero-video, .hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 75rem;
  margin: 0 auto;
  margin-top: 5vh;
  padding: clamp(4rem, 8vh, 8rem) clamp(1rem, 1.2vw, 3rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 95%;
  box-sizing: border-box;

}

/* Browser tabs */
.browser-tabs {
  display: flex;
  align-items: left;
  gap: 1rem;
  backdrop-filter: blur(20px);
  border-radius: 10px;
  max-width: max-content;
  top: 7vh;
  position: relative;
  margin-right: auto;
  margin-left: -1.1%;
  z-index: 12;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  color: #ff6b00;
  background: rgba(255,107,0,0.1);
}

.tab-indicator {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #ff6b00, #ff8c00);
  border-radius: 1px;
  transition: transform 0.3s ease;
}




.browser-tabs, .custom-select .select-display {
  will-change: transform; /* Preps GPU layer only when needed */
  contain: layout style paint; /* Isolates expensive effects */
}



.tab-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  padding: inherit; /* Matches button */
}

.tab-btn {
  position: relative; /* Contains link */
}

/* Offset for fixed navbar (optional, ~80px) */
#filterSection::before {
  display: block;
  content: "";
  height: 80px; /* Navbar height */
  margin-top: -80px;
  visibility: hidden;
  pointer-events: none;
}



/* Main layout */
.hero-main {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1rem;
  align-items: center;
  flex: 1;
  width: 102%;
  max-width: 75rem;
  margin: 0 auto;
  box-sizing: border-box;
  margin-top: -2%;
}

.hero-artwork {
position: relative;
  border-radius: 20px;
  overflow: hidden;
  scale: 0.9;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-left: -7%;
  isolation: isolate;
  
}

.hero-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}




.hero-artwork img.hero-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition:
    transform 460ms cubic-bezier( 1.00,0.00, 0.00,0.99 ),
    opacity   460ms cubic-bezier( 1.00,0.00, 0.00,0.99 );
     z-index: 1;
}

/* Rest state */
.hero-artwork img.is-current{ transform: translate3d(0,0,0);   opacity: 1; z-index: 2; }
.hero-artwork img.is-incoming{ transform: translate3d(35%,0,0); opacity: 0; z-index: 3; }

/* Animate: current -> left + fade out, incoming -> center + fade in */
.hero-artwork.is-animating img.is-current{ transform: translate3d(-35%,0,0); opacity: 0; }
.hero-artwork.is-animating img.is-incoming{ transform: translate3d(0,0,0); opacity: 1; }

/* Prevent “bounce back” when we reset positions after animation */
.hero-artwork.is-resetting img.hero-slide{ transition: none !important; }



/* CURRENT TEXT: Slides RIGHT + fades out */
.hero-artwork.is-animating .overlay-content {
  transform: translateX(-50px); /* ← Goes OFF right */
  opacity: 0;
}



/* INCOMING TEXT: Slides LEFT → center + fades in */
.hero-artwork:not(.is-animating) .overlay-content {
  transform: translateX(0); /* ← Ends center */
  opacity: 1;
}


/* Reset during swap */
.hero-artwork.is-resetting .overlay-content {
  transition: none !important;
  opacity: 0;
  transform: translateX(50px);
}




/* Animations match image timing */
.hero-artwork.is-animating .hero-slide.is-current {
  transform: translateX(-20%);
  opacity: 0;
}


.hero-artwork.is-animating .hero-slide.is-incoming {
  transform: translateX(0);
  opacity: 1;
}


/* NEW: Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 35;
}


.overlay-content {
  position: absolute;
  bottom: 8%;
  left: 6%;
  right: 6%;
  max-width: 500px;
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.36s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s; /* Delay after images */
z-index: 15;
}



/* Overlay content styles (matches screenshot) */
.client-name {
  font-family: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.4rem 0;
  line-height: 1.2;
  text-transform: uppercase;
  z-index: 25;
}


.gradient-line {
  height: 3px;
  background: linear-gradient(90deg, #FF6B35, #F7931E, transparent);
  margin-bottom: 0.4rem;
  border-radius: 1px;
   width: 360px; /* ← Controls horizontal length */
   z-index: 25;
}


.client-niche {
  font-family: 'Golos Text', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
 
}


.client-details {
  font-family: 'Golos Text', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  line-height: 0.8;
  margin-bottom: 1.5rem;
}


/* CTAs */
.overlay-ctas {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}


.cta-primary, .cta-secondary {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.7rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}


.cta-primary {
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: white;
  box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}


.cta-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}


.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(255,107,53,0.6); }
.cta-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }










/* Right side */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  height: fit-content;
}





.Client-List {
display: flex;
flex-direction: column;
gap: 1rem;
}



.game-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 315px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  margin-left: -3vw;
}

.game-item:hover {
  background: rgba(255,107,0,0.1);
  transform: translateX(8px);
}




.game-thumb {
  width: 50px;
  height: 65px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  z-index: 5;
  margin-left: -10px
    transition: 
    transform 400ms cubic-bezier( 1.00,0.00, 0.00,0.99 ) /* Bouncy pop */
  transition-delay: -6000ms; /* 🔥 Offset EARLIER */
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-item span {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 5; 
}


.game-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,143,98,0.08);
  backdrop-filter: blur(12px);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 1;
}

.game-item.shimmer-active {
  --timeline-offset: -180ms; /* DRAG LEFT by 80ms */
}


/* 🔥 SHIMMER ONLY ON ACTIVE */
.game-item.shimmer-active::before {
  animation: loadingFillLeft 12s infinite linear;
}

@keyframes loadingFillLeft {
  0% { transform: scaleX(0); opacity: 0; }
  5% { opacity: 1; }
  75% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1.05); opacity: 0; }
}




.game-item.shimmer-active .game-thumb {
  animation: thumbPop 400ms cubic-bezier( 0.00,0.01, 0.00,0.99 ) forwards; /* 1s cycle */

}

@keyframes thumbPop {
  0% { 
    transform: translateY(0) scale(1); 
  }

  25% { 
    transform: translateY(-6px) scale(1.06); 
  }

  100% { 
    transform: translateY(0) scale(1); 
  }
}



.game-item.pop-active .game-thumb {
  animation: thumbPop 400ms cubic-bezier(0.00,0.01,0.00,0.99) forwards;
  animation-fill-mode: both;
}

/* Your shimmer stays on .shimmer-active */
.game-item.shimmer-active::before {
  animation: loadingFillLeft 12s infinite linear;
}































.testimonials{
  max-width: 76rem;
  margin: 0 auto;
  top: -10vh;
  padding: 2.5rem clamp(1rem, 1.2vw, 3rem);
  overflow: hidden;
  position: relative;  /* 👈 For gradient overlays */
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  contain: layout style; /* Isolate rendering */
  will-change: opacity;  /* Optimize transitions */
}


/* Base gradients (your existing styles) */
.testimonials.fade-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to right, #220000 30%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

.testimonials.fade-right::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to left, #220000 30%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

/* Gradients with smooth fade */
.testimonials.fade-left::before,
.testimonials.fade-right::after {
  transition: opacity 1s ease;
  opacity: 1 !important;
}

/* When class removed → fade out */
.testimonials:not(.fade-left)::before,
.testimonials:not(.fade-right)::after {
  opacity: 0 !important;
}




.testi-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;  /* Above gradients */
  z-index: 20;
}

.testi-head h2{
  font-family:"Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight:700;
  font-size: clamp(0.7rem, 1.2rem, 1.2rem);
  color:#fff;
  margin:0;
}

.testi-nav{
  display:flex;
  gap:.6rem;
  z-index: 30;  /* 👈 Above gradients */
}

.testi-btn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  cursor:pointer;
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
    position: relative;  /* 👈 Ensure clickable */
  z-index: 30;         /* 👈 Above everything */
}

.testi-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}



.testi-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,107,0,.55);
  background: rgba(255,107,0,.12);
}

.testi-track{
  display:flex;
  gap: 0.8rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: .4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
}

.testi-track::-webkit-scrollbar{ 
  display: none;                  /* Chrome/Safari/Webkit */
}

.testi-track::-webkit-scrollbar-track{ 
  display: none; 
}

.testi-card{
  flex: 0 0 224px;
}

.testi-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;  /* similar tall tiles in screenshot */
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  padding:0;

}


.testi-thumb:hover{
outline: 2px solid #fff;
  outline-offset: -2px; /* keeps it inside */
}

.testi-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
  transition: transform .35s ease;
}

.testi-thumb:hover img{
  transform: scale(1.06);
}

.testi-play{
  position:absolute;
  inset:auto auto 14px 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(8px);
}

.testi-meta{
  margin-top: .7rem;
}
.testi-sub{
  font-size: .7rem;
  color: rgba(255,255,255,.55);
}
.testi-name{
  margin-top: .15rem;
  color:#fff;
  font-weight:600;
  font-size: .95rem;
}



























.clients-heading {
  grid-column: 1 / -1;
  padding: 2rem 0 1rem clamp(1rem, 1.2vw, 3rem);
  /* Match navbar left padding */
  margin-left: -0.6vw;
  margin-bottom: -5vh;
  z-index: 5;
}








.clients-heading h2 {
  font-family: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(0.7rem, 1.2rem, 1.2rem);
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0px;
  margin: 0;
  text-align: left;
  padding-left: 0;
  z-index: 5;
}



/* NICHE WIDE CARDS - Exact screenshot match */
.niche-cards .card {
  flex: 0 0 400px;
  /* Screenshot width */
  height: 180px;
  /* Screenshot height */
  min-width: 300px;
}

.niche-cards .card-image {
  height: 100%;
  /* Full card height */
  border-radius: 10px;
  width: 100%;
  /* ← HORIZONTAL STRETCH */
  position: absolute;
  overflow: hidden;

}

.niche-cards .card-image img {
  width: 100%;
  height: 81%;
  object-fit: contain;
  /* Full coverage */
  object-position: center;
  border-radius: 10px;
}

.niche-cards .card-heading {
  bottom: 0;
  /* Higher like screenshot */
  left: 0.8rem;
  right: 0.8rem;
  font-size: 0.9rem;
  /* Larger text */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  position: absolute;
}

/* Niche slider spacing */
.niche-cards {
  position: relative;
  overflow: hidden;
  /* ← KEY: Enable mask clipping */
  padding-top: 0.5rem;
  margin-top: -1vh;
  padding: 0 70px 0.5rem clamp(1rem, 1.2vw, 3rem);
  -ms-overflow-style: none;
  /* Hide scrollbar IE/Edge */
  /* RIGHT FADE MASK */
  mask-image: none;
  -webkit-mask-image: none;
  /* ✅ SMOOTH TRANSITION */
  transition: mask-image 1s cubic-bezier(0.4, 0.0, 0.2, 1);
  -webkit-transition: -webkit-mask-image 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}


/* Niche fade classes (same as clients) */

/* LEFT FADE active */
.niche-cards.fade-left {
  mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%);
}

/* RIGHT FADE active */
.niche-cards.fade-right {
  mask-image: linear-gradient(to right, black 0%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 75%, transparent 100%);
}


/* BOTH FADES active */
.niche-cards.fade-both {
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 75%, transparent 100%);
}




/* 🔥 3-PNG OVERLAY - Works with your existing HTML */
.overlay-card {
  flex: 0 0 400px;
  height: 200px;
  /* ← Your niche card height */
  min-width: 300px;
  position: relative;
  overflow: visible;
  border-radius: 10px;
  /* ← Matches .card-image */
  margin-left: 0.6vw;
}

/* PNG LAYER 1: BACKGROUND (fills entire card) */
.card-bg-png {
  position: absolute;
  inset: 0;
  /* ← Matches .card-image */
  z-index: 1;
  aspect-ratio: 16 / 9;
  /* ← Matches .card-image */
  border-radius: 10px;
  /* ← EXACT radius */
  width: 100%;
  height: 81%;
  /* ← Matches your .niche-cards img */
  object-fit: contain;
  object-position: center;
  border-radius: 10px;

  bottom: 0;
  top: 7%;
}

/* PNG LAYER 2: CHARACTER (RIGHT SIDE) */
.card-character-png {
  position: absolute;
  right: 0%;
  top: -11%;
  width: 110%;
  height: 110%;
  object-fit: contain;
  z-index: 9999;
}

/* PNG LAYER 3: TEXT (LEFT SIDE) */
.card-text-png {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 10;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.6));
}



/* 🔥 BG-ONLY OUTLINE - Full Card Hover Area */
.niche-cards .card {
  position: relative;
  transition: transform 0.3s ease;
}

.niche-cards .card:hover {
  transform: translateY(-1px);
}

/* OUTLINE on BG IMAGE ONLY */
.niche-cards .card:hover .card-bg-png {
  outline: 1px solid rgba(255, 255, 255, 0.9);
  /* ← Thin white line */
  outline-offset: 2px;
  /* ← Perfect spacing */
  border-radius: 12px;
  /* Slightly larger */
  box-shadow:
    0 12px 20px rgba(255, 255, 255, 0.13),
    /* Soft lift shadow */
    inset 0 2px 8px rgba(255, 255, 255, 0);
  /* Inner shine */
}















.case-card-content {
  flex: 1; /* Takes ALL remaining space */
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Tags won't overflow */
  margin-top: -0.5vh;
  justify-content: flex-start; /* 🔑 ALIGN TOP */
  aspect-ratio: 16 / 9;
}




/* NICHE TAG - Matches your screenshot */
.niche-tag {
  font-family: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: #ff4d00; /* Orange like screenshot */
  border-radius: 20px;
  margin: 1vh 0 0 1vh;
  display: inline-block;
  letter-spacing: 0.5px;
  align-self: flex-start; /* Stick to left */
  order: -1; /* Force to TOP (backup) */
}



/* SERVICES TAGS */
.services-tags {
flex: 1; /* Takes remaining content space */
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-content: flex-start;
  margin: 1vh 0 0 1vh;
}

.service-tag {
  font-size: 0.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

/* Hover states */
.case-card:hover .service-tag {
  background: rgba(255, 81, 0, 0.2);
}





 .niche-section {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 1.2vw, 3rem);
  overflow: hidden;
  position: relative;
  top: -10vh; /* Match testimonials overlap */
}

/* Dynamic gradients (same as testimonials) */
.niche-section.fade-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to right, #220000 30%, transparent 100%);
  z-index: 5;
  pointer-events: none;
  opacity: 1 !important;
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.niche-section.fade-right::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to left, #220000 30%, transparent 100%);
  z-index: 5;
  pointer-events: none;
  opacity: 1 !important;
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.niche-section:not(.fade-left)::before,
.niche-section:not(.fade-right)::after {
  opacity: 0 !important;
}

.niche-section {
  contain: layout style;
  will-change: opacity;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.niche-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 20;
}

.niche-head h2 {
  font-family: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(0.7rem, 1.2rem, 1.2rem);
  color: #fff;
  margin: 0;
}

.niche-nav {
  display: flex;
  gap: 0.6rem;
  z-index: 30;
}

.niche-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  position: relative;
  z-index: 30;
}

.niche-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,107,0,.55);
  background: rgba(255,107,0,.12);
}

.niche-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.niche-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 0.5rem;
  padding-bottom: 0.8rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
  margin-top: -1vh;
}

.niche-track::-webkit-scrollbar { display: none; }



.niche-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.niche-text {
  position: absolute;
  left: 1%;
  right: 1%;
  z-index: 2;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.8));
  bottom: 1%;
}

.niche-character {
  position: absolute;
  right: 4.5%;
  top: -7px;
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 2;
  border-radius: 16px; /* Slightly smaller radius */
}


.niche-overlay {
  position: absolute;
  bottom: 0.8rem;
  left: 1rem;
  right: 1.2rem;
  z-index: 4; /* Above BG/text, below character */
  margin-bottom: 1.4rem;
  pointer-events: none;
  justify-content: flex-end; /* Push to bottom */
  height: 2.2rem; /* Fixed height container */
  padding: 0;
  bottom: 0; /* Changed from 0.8rem - FLUSH BOTTOM */
}

.niche-title {
  font-family: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin: 0 0 0 0;
  letter-spacing: 0.5px;
  padding-bottom: 0.1rem;
  line-height: 1.1;
  transform: translateY(0);
}

.niche-subtitle {
  font-family: "Golos Text", sans-serif;
  font-weight: 400;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
    /* FIXED ALIGNMENT */
  line-height: 1.15;
  padding-top: 0.05rem;
  transform: translateY(0);
}

.niche-card {
  flex: 0 0 400px; /* Epic Games width */
  min-height: 300px; /* 16:9 ratio */
  position: relative;
  border-radius: 18px;
  overflow: visible;
  padding-bottom: 2.5rem; /* Text space */
  transition: transform 0.25s ease;
}

.niche-inner {
  position: absolute;
  inset: 0.4rem; /* Match padding */
  border-radius: 16px; /* Slightly smaller radius */
  overflow: hidden; /* Clips BG/text only */
  z-index: 1;
  height: 212px; /* Fixed 16:9 height */
  aspect-ratio: 16 / 9; /* Enforces ratio */
  padding: 1rem;
  box-shadow: 0 0 0 1px transparent; /* Invisible base */
  padding: 0 !important; /* Zero gaps */
\\
}


/* Initial state - offscreen + faded */
.niche-text,
.niche-character {
  opacity: 0;
  transform: translateY(10px); /* Swipe up from bottom */
  will-change: transform, opacity;
}

/* Animate IN */
.niche-card.animate .niche-text,
.niche-card.animate .niche-character {
  opacity: 1;
  transform: translateY(0);
  transition: 
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.2s; /* Slight stagger */
}

/* Stagger text first, character second */
.niche-card.animate .niche-text {
  transition-delay: 0.1s;
}

.niche-card.animate .niche-character {
  transition-delay: 0.3s;
}


/* 🔥 KEY: Allow hover through card */
.niche-card,
.niche-overlay {
  pointer-events: none; /* Let events pass to .niche-inner */
}

.niche-inner {
  /* Your existing + */
  pointer-events: auto; /* Capture hover */
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.niche-inner:hover {
 box-shadow: 
    0 0 0 2px rgb(255, 255, 255),              /* 🔥 White outline */
    0 8px 25px rgba(255, 102, 0, 0.15); /* Glow */
  transform: scale(1.01);
}

.niche-card:hover {
  transform: translateY(-3px); /* Whole card lifts */
}












.filter-section {
  width: 100%;
  min-height: 100vh;
  width: 100vw;
  max-width: 75rem;
  gap: 4rem;
  width: 100%;
  margin: 0 auto;
  margin-top: -10%;
}

.filter-section .clients-heading h2 {
  margin: 0 0 -2rem 0; /* adjust bottom spacing; use 0 or a smaller value if you want less */
}



/* SORT: Top-Left (Exact design match) */
.sort-wrapper {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 1vw, 3rem);
  position: relative;
  z-index: 10;
  margin-top: 6vh;
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  /* #402715 */
  border-radius: 12px;
  padding: 0.6rem 0;
  max-width: 280px;
margin-bottom: -1%;
}

.sort-label {
  font-family: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #ff4d00;
  white-space: nowrap;
}

.sort-select {
  flex: 1;
  background: transparent;
  border: none;
  font-family: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.sort-select option {
  background: #402715;
  color: rgb(255, 255, 255);
  padding: 0.2rem;
}


/* SORT CONTAINER - Matches filter panel glassmorphism */
.sort-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  max-width: 320px;
  transition: all 0.2s ease;
}

/* Sort dropdown matches filter styling */
.sort-select-wrapper .select-display {
  min-height: 44px;
  font-family:"Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  background: transparent;
  border: none;
  justify-content: flex-start !important;
}

.sort-select-wrapper .select-arrow {
  margin-left: 10px !important;
  margin-right: 0;
}

.sort-select-wrapper .select-options {
  background: rgba(64, 39, 21, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.15);
  border-top: none;
  max-height: 180px; /* Shorter for sort */
}




.filter-container {
  max-width: 75rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 1vh;
}

/* LEFT: Cards Grid */
.filter-left {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-left: 1rem;
}

.case-card {
  border-radius: 20px;
  padding: 0 0 3rem 0;
  text-align: center;
  transition: all 0.3s ease;
  height: 480px;
  display: flex;
  flex-direction: column;
  background-color: #402715;
  overflow: hidden; /* CRITICAL: Contain content */
  position: relative;
  aspect-ratio: 9 / 16;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(255, 81, 0, 0.3);
}

.cs-img {
  flex: 0 0 320px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
}

.cs-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.case-card h3 {
  font-family: "Golos Text", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: white;
  margin: 0.5rem 0 0 0;
  text-align: left;
  padding-left: 0.5rem;
}




/* RIGHT: Filter Panel */
.filter-right {
  max-width: 280px;
}

.filter-panel {
  border-radius: 20px;
  padding: 1.5rem;

  backdrop-filter: blur(10px);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;

}

.filter-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0 0;

}

.filter-group {
  margin-bottom: 1rem;

}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;  /* Orange */
  margin-bottom: 0.4rem;
  font-weight: 600;
  
}

.filter-input-wrap {
  display: flex;
  gap: 0.5rem;
}

.filter-search {
  flex: 1;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.9rem;
  
}

.filter-search::placeholder {
  color: rgba(255,255,255,0.5);
}

.filter-select {
  width: 100%;
  flex: 1 1 auto;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.85rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}

/* limited support: Firefox allows some option styling */
.filter-select option {
  background: #402715;
  color: #fff;
  padding: 0.4rem 0.6rem;
}



.reset {
  color: #ff7b00;
  margin: 0.8vh 0 0 0;
  background: none;
  border: none;
}




/* 🔥 CUSTOM ORANGE DROPDOWN */
.custom-select {
  position: relative;
  width: 100%;
}

.select-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px; /* Touch target */
}

.select-display:hover {
  border-color: #ff8c00;
  background: rgba(255,107,0,0.1);
}

.select-display:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,109,0,0.4);
  border-color: #ff6b00;
}

/* OPEN STATE */
.custom-select.open .select-display {
  border-radius: 10px 10px 0 0;
  box-shadow: 0 8px 20px rgba(255,107,0,0.3);
}

.select-arrow {
  transition: transform 0.2s ease;
  color: #ff6b00;
  margin-left: 10px !important;
  margin-right: 0;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
  margin-left: 10px !important;
  margin-right: 0;
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(64, 39, 21, 0.856); /* #402715 */
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.15);
  border-top: none;
  border-radius: 0 0 10px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.custom-select.open .select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-options li {
  padding: 0.8rem 1rem;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.85rem;
}

.select-options li:hover {
  background: rgba(255,107,0,0.3);
  color: #fff;
  padding-left: 1.2rem;
}

.select-options li.selected {
  background: rgba(255,107,0,0.6);
  font-weight: 600;
}

/* Scrollbar */
.select-options::-webkit-scrollbar {
  width: 4px;
}
.select-options::-webkit-scrollbar-track {
  background: transparent;
}
.select-options::-webkit-scrollbar-thumb {
  background: rgba(255,107,0,0.5);
  border-radius: 2px;
}





/* 🔥 FIXED: Vertical Stacking Dropdowns */
.custom-select {
  position: relative;
  width: 100%;
  z-index: 10; /* Each dropdown has stacking context */
}

/* DROPDOWN CONTAINER - Pushes content down */
.custom-select.open .select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(64,39,21,0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.15);
  border-top: none;
  border-radius: 0 0 10px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* 🔥 PUSH DOWN EFFECT */
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* 🔥 KEY: Subsequent filter groups move down */
.filter-group {
  position: relative;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* When Services dropdown opens → Industry moves down */
.filter-group.services-open + .filter-group {
  transform: translateY(220px); /* Dropdown height + gap */
}

/* When Industry dropdown opens → Stays in place (last one) */
.filter-group.industry-open {
  /* No push needed */
}

/* Smooth return when closed */
.filter-group:not(.services-open + .filter-group) {
  transform: translateY(0);
}









