/*!
 * Hero Banner Concepts — template-specific styles
 * Five distinct, self-contained hero designs (Technology, AI Humanoid,
 * Cloud Data, Power Energy, Cybersecurity). Every visual (windows, gauges,
 * neural net, clouds, shield) is pure CSS/SVG — no stock photography.
 */

/* ---------------------------------------------------
   0. Tokens
--------------------------------------------------- */
:root {
  --hb-tech-a: #22d3ee;
  --hb-tech-b: #6366f1;
  --hb-ai-a: #a78bfa;
  --hb-ai-b: #f472b6;
  --hb-cloud-a: #2563eb;
  --hb-cloud-b: #06b6d4;
  --hb-power-a: #f59e0b;
  --hb-power-b: #ef4444;
  --hb-cyber-a: #10b981;
  --hb-cyber-b: #22d3ee;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.text-accent {
  background: linear-gradient(90deg, var(--hb-tech-a), var(--hb-ai-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------
   1. Navbar + dot navigation
--------------------------------------------------- */
.hb-navbar {
  background: rgba(8, 10, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hb-navbar.is-scrolled {
  background: rgba(8, 10, 20, 0.85);
}

.hb-navbar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.92rem;
}

.hb-navbar .nav-link:hover,
.hb-navbar .nav-link.active {
  color: #fff;
}

.hb-dotnav {
  position: fixed;
  top: 50%;
  right: 1.75rem;
  transform: translateY(-50%);
  z-index: 1000;
  flex-direction: column;
  gap: 0.9rem;
}

.hb-dotnav a {
  position: relative;
  display: block;
}

.hb-dotnav a span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.hb-dotnav a:hover span,
.hb-dotnav a.active span {
  transform: scale(1.35);
  background: #fff;
}

.hb-dotnav a::before {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: rgba(8, 10, 20, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast);
}

.hb-dotnav a:hover::before {
  opacity: 1;
  visibility: visible;
}

/* ---------------------------------------------------
   2. Hero shell shared by all 5 concepts
--------------------------------------------------- */
.hb-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  scroll-margin-top: 70px;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hb-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  margin-bottom: 1.5rem;
}

.hb-eyebrow--light {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: #1e3a8a;
}

.hb-eyebrow--cyber {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #d1fae5;
}

.hb-title {
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hb-title--light {
  color: #0f172a;
}

.hb-gradient-text {
  display: inline-block;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hb-gradient--tech { background-image: linear-gradient(90deg, var(--hb-tech-a), var(--hb-tech-b)); }
.hb-gradient--ai { background-image: linear-gradient(90deg, var(--hb-ai-a), var(--hb-ai-b), var(--hb-tech-a)); }
.hb-gradient--cloud { background-image: linear-gradient(90deg, var(--hb-cloud-a), var(--hb-cloud-b)); }
.hb-gradient--power { background-image: linear-gradient(90deg, var(--hb-power-a), var(--hb-power-b)); }
.hb-gradient--cyber { background-image: linear-gradient(90deg, var(--hb-cyber-a), var(--hb-cyber-b)); }

.hb-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hb-lead--dark {
  color: rgba(255, 255, 255, 0.68);
}

.hb-lead--onlight {
  color: #475569;
}

.hb-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.hb-stat-row > div {
  display: flex;
  flex-direction: column;
}

.hb-stat-row strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.hb-stat-row span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.hb-stat-row--onlight strong {
  color: #0f172a;
}

.hb-stat-row--onlight span {
  color: #64748b;
}

/* Buttons */
.hb-btn-primary {
  border: none;
  color: #0b1120;
  font-weight: 700;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hb-btn-primary:hover {
  transform: translateY(-2px);
  color: #0b1120;
}

.hb-btn-primary--tech { background: linear-gradient(90deg, var(--hb-tech-a), var(--hb-tech-b)); color: #06111f; }
.hb-btn-primary--ai { background: linear-gradient(90deg, var(--hb-ai-a), var(--hb-ai-b)); color: #1a0a26; }
.hb-btn-primary--cloud { background: linear-gradient(90deg, var(--hb-cloud-a), var(--hb-cloud-b)); color: #fff; }
.hb-btn-primary--power { background: linear-gradient(90deg, var(--hb-power-a), var(--hb-power-b)); color: #2a1200; }
.hb-btn-primary--cyber { background: linear-gradient(90deg, var(--hb-cyber-a), var(--hb-cyber-b)); color: #052014; }

.hb-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
  background: transparent;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.hb-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.hb-btn-outline--dark {
  border-color: rgba(15, 23, 42, 0.3);
  color: #0f172a;
}

.hb-btn-outline--dark:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

/* Floating chips (reused across all 5 visuals) */
.hb-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(20, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
  animation: hb-float 5s ease-in-out infinite;
  z-index: 3;
}

.hb-chip--onlight {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.08);
  color: #1e293b;
  box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.25);
}

.hb-chip--1 { top: 6%; right: 4%; animation-delay: 0s; }
.hb-chip--2 { bottom: 18%; left: -2%; animation-delay: 1.2s; }
.hb-chip--3 { bottom: 4%; right: 10%; animation-delay: 2.1s; }

@keyframes hb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Ambient glows + grid background, shared */
.hb-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.hb-glow--cyan { width: 420px; height: 420px; background: var(--hb-tech-a); top: -120px; left: -100px; }
.hb-glow--indigo { width: 460px; height: 460px; background: var(--hb-tech-b); bottom: -160px; right: -120px; }
.hb-glow--violet { width: 480px; height: 480px; background: var(--hb-ai-a); top: -140px; right: -80px; }
.hb-glow--magenta { width: 400px; height: 400px; background: var(--hb-ai-b); bottom: -140px; left: -100px; }
.hb-glow--amber { width: 440px; height: 440px; background: var(--hb-power-a); top: -140px; right: -60px; }
.hb-glow--red { width: 380px; height: 380px; background: var(--hb-power-b); bottom: -140px; left: -120px; }
.hb-glow--emerald { width: 440px; height: 440px; background: var(--hb-cyber-a); top: -130px; left: -90px; }
.hb-glow--teal { width: 400px; height: 400px; background: var(--hb-cyber-b); bottom: -150px; right: -100px; }

.hb-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}

.hb-grid-bg--warm {
  background-image: linear-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.08) 1px, transparent 1px);
}

.hb-grid-bg--cyber {
  background-image: linear-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
}

/* ---------------------------------------------------
   3. HERO 01 — Technology
--------------------------------------------------- */
.hb-hero--tech {
  background: radial-gradient(ellipse at top, #101a33 0%, #0b1120 55%, #080b16 100%);
}

.hb-tech-visual {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
}

.hb-window {
  position: relative;
  z-index: 2;
  background: rgba(15, 20, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
}

.hb-window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hb-dot--r { background: #ff5f57; }
.hb-dot--y { background: #febc2e; }
.hb-dot--g { background: #28c840; }

.hb-window-title {
  margin-left: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Consolas", "SFMono-Regular", Menlo, monospace;
}

.hb-window-body {
  padding: 1.4rem 1.5rem;
  font-family: "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.88rem;
  text-align: left;
}

.hb-code-line {
  padding: 0.2rem 0;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.hb-tok--kw { color: #c084fc; font-weight: 700; }
.hb-tok--key { color: #67e8f9; }
.hb-tok--sym { color: rgba(255, 255, 255, 0.4); }
.hb-tok--str { color: #86efac; }
.hb-tok--ok { color: #4ade80; margin-left: 0.35rem; }

.hb-progress {
  display: inline-block;
  width: 110px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  vertical-align: middle;
}

.hb-progress-bar {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hb-tech-a), var(--hb-tech-b));
  animation: hb-progress-loop 2.6s ease-in-out infinite;
}

@keyframes hb-progress-loop {
  0% { width: 10%; }
  50% { width: 85%; }
  100% { width: 10%; }
}

/* ---------------------------------------------------
   4. HERO 02 — AI Humanoid
--------------------------------------------------- */
.hb-hero--ai {
  background: radial-gradient(ellipse at bottom right, #251236 0%, #150c26 50%, #0b0714 100%);
}

.hb-scanlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
}

.hb-ai-visual {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  aspect-ratio: 10 / 11;
}

.hb-ai-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.hb-ai-rings span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.35);
  animation: hb-ring-pulse 3.6s ease-out infinite;
}

.hb-ai-rings span:nth-child(1) { width: 140px; height: 140px; animation-delay: 0s; }
.hb-ai-rings span:nth-child(2) { width: 140px; height: 140px; animation-delay: 1.2s; }
.hb-ai-rings span:nth-child(3) { width: 140px; height: 140px; animation-delay: 2.4s; }

@keyframes hb-ring-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hb-ai-net {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.35));
}

.hb-net-lines line {
  opacity: 0.55;
}

.hb-net-nodes circle {
  filter: drop-shadow(0 0 6px rgba(233, 213, 255, 0.8));
}

.hb-net-core {
  animation: hb-core-pulse 2.2s ease-in-out infinite;
  transform-origin: 200px 200px;
}

@keyframes hb-core-pulse {
  0%, 100% { r: 7; opacity: 1; }
  50% { r: 11; opacity: 0.6; }
}

.hb-ai-core {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.55), rgba(244, 114, 182, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.55);
  z-index: 2;
  animation: hb-core-glow 2.2s ease-in-out infinite;
}

@keyframes hb-core-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(167, 139, 250, 0.45); }
  50% { box-shadow: 0 0 55px rgba(244, 114, 182, 0.6); }
}

/* ---------------------------------------------------
   5. HERO 03 — Cloud Data
--------------------------------------------------- */
.hb-hero--cloud {
  background: linear-gradient(180deg, #eef4ff 0%, #f7fafe 55%, #ffffff 100%);
}

.hb-cloud-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hb-cloud {
  position: absolute;
  background: #fff;
  border-radius: 100px;
  opacity: 0.9;
  box-shadow: 60px 10px 0 -10px #fff, -55px 15px 0 -12px #fff, 20px -18px 0 -8px #fff;
  animation: hb-cloud-drift 26s ease-in-out infinite;
}

.hb-cloud--1 { width: 160px; height: 60px; top: 12%; left: 6%; animation-duration: 24s; }
.hb-cloud--2 { width: 120px; height: 46px; top: 62%; left: 2%; opacity: 0.7; animation-duration: 30s; animation-delay: -6s; }
.hb-cloud--3 { width: 100px; height: 40px; top: 30%; left: 82%; opacity: 0.6; animation-duration: 20s; animation-delay: -3s; }

@keyframes hb-cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(28px); }
}

.hb-cloud-visual {
  position: relative;
  max-width: 440px;
  margin-inline: auto;
}

.hb-data-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.25);
  text-align: left;
}

.hb-data-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.hb-spin {
  animation: hb-spin-loop 3s linear infinite;
  color: var(--hb-cloud-b);
}

@keyframes hb-spin-loop {
  to { transform: rotate(360deg); }
}

.hb-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 110px;
  margin-bottom: 1.25rem;
}

.hb-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--hb-cloud-b), var(--hb-cloud-a));
  animation: hb-bar-grow 1s ease both;
}

@keyframes hb-bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

.hb-data-card-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hb-pill--up {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

/* ---------------------------------------------------
   6. HERO 04 — Power Energy
--------------------------------------------------- */
.hb-hero--power {
  background: radial-gradient(ellipse at top left, #2a1608 0%, #170f08 55%, #0d0905 100%);
}

.hb-power-visual {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hb-gauge {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: conic-gradient(var(--hb-power-a) 0% 92%, rgba(255, 255, 255, 0.08) 92% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.25);
  animation: hb-gauge-rotate-in 1.4s ease both;
}

@keyframes hb-gauge-rotate-in {
  from { clip-path: circle(0% at 50% 50%); }
  to { clip-path: circle(75% at 50% 50%); }
}

.hb-gauge-inner {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: #170f08;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-gauge-inner i {
  font-size: 1.6rem;
  color: var(--hb-power-a);
  margin-bottom: 0.35rem;
}

.hb-gauge-inner strong {
  font-size: 2rem;
  font-weight: 800;
}

.hb-gauge-inner span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------
   7. HERO 05 — Cybersecurity
--------------------------------------------------- */
.hb-hero--cyber {
  background: radial-gradient(ellipse at bottom, #0b1f19 0%, #071310 55%, #040c0a 100%);
}

.hb-cyber-visual {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hb-shield-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 70px rgba(16, 185, 129, 0.25);
}

.hb-shield-icon {
  font-size: 6rem;
  color: transparent;
  background: linear-gradient(180deg, var(--hb-cyber-a), var(--hb-cyber-b));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.5));
  z-index: 2;
}

.hb-shield-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.35), transparent);
  animation: hb-scan-move 2.8s linear infinite;
  z-index: 1;
}

@keyframes hb-scan-move {
  0% { top: -40%; }
  100% { top: 100%; }
}

/* ---------------------------------------------------
   8. Footer
--------------------------------------------------- */
.hb-footer {
  background: #080b16;
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0;
}

.hb-footer .text-muted-2 {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------
   9. Responsive tweaks
--------------------------------------------------- */
@media (max-width: 991.98px) {
  .hb-hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 4rem;
    text-align: center;
  }

  .hb-stat-row,
  .d-flex.flex-wrap.gap-3 {
    justify-content: center;
  }

  .hb-lead {
    margin-inline: auto;
  }

  .hb-tech-visual,
  .hb-ai-visual,
  .hb-cloud-visual,
  .hb-power-visual,
  .hb-cyber-visual {
    margin-top: 3rem;
  }
}

@media (max-width: 575.98px) {
  .hb-gauge { width: 240px; height: 240px; }
  .hb-gauge-inner { width: 185px; height: 185px; }
  .hb-shield-wrap { width: 220px; height: 220px; }
  .hb-shield-icon { font-size: 4.5rem; }
  .hb-chip { font-size: 0.72rem; padding: 0.45rem 0.75rem; }
}
