﻿/* =====================================================
   HERO CAROUSEL  –  hero_styles.css
   ===================================================== */

/* ── Section ── */
.hc-section {
  position: relative;
  background: #07132a;
  overflow: hidden;
}

/* ── Track ── */
.hc-track { position: relative; height: 580px; }

/* ── Slide ── */
.hc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease;
}
.hc-slide.active { opacity: 1; pointer-events: auto; }

/* ── Per-slide brand gradients ── */
.hc-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hc-slide--1 .hc-slide__bg {
  background: linear-gradient(118deg, #06122a 0%, #081a3e 40%, #0d2b6e 100%);
}
.hc-slide--2 .hc-slide__bg {
  background: linear-gradient(118deg, #0c0620 0%, #160a38 40%, #2d107a 100%);
}
.hc-slide--3 .hc-slide__bg {
  background: linear-gradient(118deg, #061510 0%, #081e14 40%, #0e3824 100%);
}

/* ── Inner layout ── */
.hc-slide__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: stretch;
}
.hc-slide__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

/* ── Content (left) ── */
.hc-content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 3.5rem 2rem 3.5rem 0;
}

.hc-tag {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0;
}
.hc-tag__dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #38bdf8;
}
.hc-slide--2 .hc-tag__dot { background: #a78bfa; }
.hc-slide--3 .hc-tag__dot { background: #34d399; }

.hc-title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0;
}
.hc-title em {
  font-style: normal;
  background: var(--blue-300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hc-slide--2 .hc-title em {
  background: linear-gradient(90deg, #c084fc, #818cf8);
  -webkit-background-clip: text; background-clip: text;
}
.hc-slide--3 .hc-title em {
  background: linear-gradient(90deg, #34d399, #38bdf8);
  -webkit-background-clip: text; background-clip: text;
}

.hc-sub {
  font-size: .97rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  max-width: 480px;
  margin: 0;
}

.hc-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hc-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.6rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .22s ease;
  white-space: nowrap;
}
.hc-btn--primary { background: #0095FF; color: #fff; border: 1px solid transparent; }
.hc-btn--primary:hover { background: #0077CC; color: #fff; }
.hc-slide--2 .hc-btn--primary { background: #0095FF; }
.hc-slide--2 .hc-btn--primary:hover { background: #0077CC; }
.hc-slide--3 .hc-btn--primary { background: #0095FF; }
.hc-slide--3 .hc-btn--primary:hover { background: #0077CC; }
.hc-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.2);
}
.hc-btn--ghost:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.38);
  color: #fff;
}

.hc-stats { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.hc-stat { display: flex; flex-direction: column; }
.hc-stat strong { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.1; }
.hc-stat span { font-size: .7rem; color: rgba(255,255,255,.42); text-transform: uppercase; letter-spacing: .06em; }
.hc-stat__sep { width: 1px; height: 30px; background: rgba(255,255,255,.14); flex-shrink: 0; }

.hc-subjects { display: flex; flex-wrap: wrap; gap: .5rem; }
.hc-subjects span {
  padding: .32rem .8rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}

/* ── Visual (right) ── */
.hc-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

/* Hive canvas — full height, extreme right edge with gradient fade */
.hc-hive {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: 60%;
  height: 100%;
  z-index: 1;
  display: block;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 30%, black 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 30%, black 100%);
}

.hc-img {
  display: block;
  position: relative;
  z-index: 2;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  border: none;
  box-shadow: none;
  user-select: none;
  pointer-events: none;
}

/* ── Content entrance animations ── */
.hc-slide.active .hc-content > * { animation: hcFadeUp .5s ease both; }
.hc-slide.active .hc-content > *:nth-child(1) { animation-delay: .06s; }
.hc-slide.active .hc-content > *:nth-child(2) { animation-delay: .14s; }
.hc-slide.active .hc-content > *:nth-child(3) { animation-delay: .22s; }
.hc-slide.active .hc-content > *:nth-child(4) { animation-delay: .30s; }
.hc-slide.active .hc-content > *:nth-child(5) { animation-delay: .38s; }
.hc-slide.active .hc-img   { animation: hcImgIn  .7s ease both .12s; }

@keyframes hcFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hcImgIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Nav ── */
.hc-nav {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .6rem;
  z-index: 10;
}
.hc-dots { display: flex; gap: .45rem; }
.hc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  border: none; cursor: pointer; padding: 0;
  transition: background .25s, transform .25s;
}
.hc-dot.active { background: #fff; transform: scale(1.3); }
.hc-arrow {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.hc-arrow:hover { background: rgba(255,255,255,.16); color: #fff; }
.hc-arrow .material-symbols-outlined { font-size: 18px; }

/* ── Animated Floating Tags (Desktop Only, Slide 3 only) ── */
.hc-floating-tags {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: none;
}

.hc-slide--3 .hc-visual { overflow: visible; }

.hc-slide--3 .hc-floating-tags {
  display: block;
}

.hc-floating-tag {
  position: absolute;
  font-size: .8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #e2fff6;
  padding: .45rem .9rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  animation: hcFloatTags 15s infinite ease-in-out;
}

.hc-floating-tag:nth-child(1) { top: 12%; left: 18%; animation-duration: 20s; }
.hc-floating-tag:nth-child(2) { top: 30%; left: 5%;  animation-duration: 18s; animation-direction: reverse; }
.hc-floating-tag:nth-child(3) { top: 28%; left: 48%; animation-duration: 22s; }
.hc-floating-tag:nth-child(4) { top: 55%; left: 10%; animation-duration: 19s; animation-direction: reverse; }
.hc-floating-tag:nth-child(5) { top: 68%; left: 40%; animation-duration: 21s; }
.hc-floating-tag:nth-child(6) { top: 50%; left: 28%; animation-duration: 23s; animation-direction: reverse; }

@keyframes hcFloatTags {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  25% { transform: translate(8px, -18px) scale(1.04); opacity: 0.85; }
  50% { transform: translate(-8px, -32px) scale(1); opacity: 0.6; }
  75% { transform: translate(12px, -12px) scale(1.04); opacity: 0.75; }
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .hc-floating-tags { display: none !important; }
  .hc-track { height: auto; min-height: 560px; }
  .hc-slide__grid { grid-template-columns: 1fr; grid-template-rows: auto 240px; }
  .hc-visual { max-height: 240px; justify-content: center; }
  .hc-img { max-height: 240px; }
  .hc-content { padding: 2.8rem 1.5rem 1.5rem; align-items: center; text-align: center; }
  .hc-sub { text-align: center; max-width: 100%; }
  .hc-actions, .hc-stats, .hc-subjects { justify-content: center; }
  .hc-title { font-size: clamp(1.75rem, 4vw, 2.4rem); }
}

@media (max-width: 900px) {
  .hc-track { min-height: 520px; }
  .hc-slide__grid { grid-template-rows: auto 210px; }
  .hc-visual { max-height: 210px; }
  .hc-img { max-height: 210px; }
  .hc-content { padding: 2.4rem 1rem 1rem; }
  .hc-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
  .hc-sub { font-size: 0.9rem; }
}

@media (max-width: 768px) {
  .hc-track { min-height: 480px; }
  .hc-slide__grid { grid-template-rows: auto 180px; }
  .hc-visual { max-height: 180px; }
  .hc-img { max-height: 180px; }
  .hc-content { padding: 2rem 1rem; }
  .hc-title { font-size: clamp(1.4rem, 3vw, 2rem); }
  .hc-sub { font-size: 0.85rem; }
  .hc-tag { font-size: 0.7rem; }
  .hc-btn { padding: 0.6rem 1.3rem; font-size: 0.8rem; }
  .hc-stat strong { font-size: 1rem; }
  .hc-stat span { font-size: 0.65rem; }
}

@media (max-width: 600px) {
  .hc-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
  .hc-track { min-height: 420px; }
  .hc-visual { max-height: 150px; }
  .hc-img { max-height: 150px; }
  .hc-content { padding: 1.6rem 0.8rem; gap: 1rem; }
  .hc-sub { font-size: 0.8rem; line-height: 1.5; }
  .hc-btn { padding: 0.55rem 1rem; font-size: 0.75rem; }
  .hc-nav { bottom: 0.8rem; gap: 0.4rem; }
  .hc-arrow { width: 30px; height: 30px; }
  .hc-arrow .material-symbols-outlined { font-size: 16px; }
  .hc-stats { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .hc-track { min-height: 380px; }
  .hc-slide__grid { grid-template-rows: auto 140px; }
  .hc-visual { max-height: 140px; }
  .hc-img { max-height: 140px; }
  .hc-title { font-size: 1.2rem; }
  .hc-sub { font-size: 0.75rem; }
  .hc-content { padding: 1.4rem 0.6rem 1rem; gap: 0.8rem; }
  .hc-btn { padding: 0.5rem 0.9rem; font-size: 0.7rem; }
  .hc-tag { font-size: 0.65rem; }
}
