/* Bharat Tech Hub — Optimized Home Hero */
.bth-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 6.25rem 1.15rem 3rem;
  contain: layout paint style;
}

.bth-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 12% 30%, rgba(56, 189, 248, 0.2), transparent 60%),
    radial-gradient(ellipse 55% 40% at 50% 42%, rgba(30, 58, 138, 0.32), transparent 70%),
    linear-gradient(165deg, #020617 0%, #071428 45%, #020617 100%);
}

.bth-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 72%);
}

.bth-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bth-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  margin-bottom: 1.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(15, 23, 42, 0.7);
  color: #fbbf24;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bth-hero__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.65);
}

.bth-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}

.bth-hero__title span {
  color: #fbbf24;
  background: linear-gradient(115deg, #fef9c3 0%, #fbbf24 48%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .bth-hero__title span {
    color: #fbbf24;
    -webkit-text-fill-color: #fbbf24;
  }
}

.bth-hero__sub {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: #94a3b8;
  font-size: clamp(0.94rem, 1.9vw, 1.1rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.bth-hero__icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto 1.5rem;
}

.bth-hero__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.bth-hero__icon i {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  color: #fbbf24;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
  font-style: normal;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}

.bth-hero__icon span {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
}

.bth-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 20rem;
}

.bth-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  will-change: transform;
}

.bth-hero__btn--primary {
  color: #0f172a;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 52%, #d97706 100%);
  border: 1px solid rgba(253, 230, 138, 0.55);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.32);
}

.bth-hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(251, 191, 36, 0.42);
}

.bth-hero__btn--secondary {
  color: #fbbf24;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.5);
}

.bth-hero__btn--secondary:hover {
  background: rgba(251, 191, 36, 0.1);
  transform: translateY(-2px);
}

.bth-hero__arrow {
  margin-top: 1.1rem;
  color: rgba(251, 191, 36, 0.75);
  animation: bthArrow 1.8s ease-in-out infinite;
}

@keyframes bthArrow {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* Below-fold home sections: paint cheaper until near viewport */
.home-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

@media (min-width: 640px) {
  .bth-hero__cta {
    flex-direction: row;
    width: auto;
    max-width: none;
  }
  .bth-hero__btn {
    min-width: 12rem;
  }
}

@media (min-width: 375px) {
  .bth-hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 768px) {
  .bth-hero {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }
  .bth-hero__icons {
    max-width: 26rem;
    gap: 0.85rem;
  }
  .bth-hero__icon i {
    width: 3.25rem;
    height: 3.25rem;
  }
}

@media (min-width: 1200px) {
  .bth-hero__inner {
    max-width: 56rem;
  }
}

@media (max-width: 480px) {
  .bth-hero {
    padding-top: 5.75rem;
  }
  .bth-hero__icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 13rem;
  }
}

@media (hover: none) {
  .bth-hero__btn {
    will-change: auto;
  }
  .bth-hero__btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bth-hero__arrow {
    animation: none;
  }
  .bth-hero__btn {
    transition: none;
  }
}
