/* ===========================
   HERO — human.tech style
   Full screen, dark, 3D object
   =========================== */

/* Reset hero from main style */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 32px 80px;
  overflow: hidden;
  background: #0a1628;
  gap: 0;
}

/* ===== BOKEH BACKGROUND ===== */
.hero-bg-scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, #1a3a5c 0%, #0a1628 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, #0d2b1a 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, #1a0d2e 0%, transparent 60%);
  z-index: 0;
}

/* Bokeh dots — animated blurred circles */
.bokeh {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.bokeh-dot {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  animation: bokehFloat linear infinite;
  opacity: 0;
}
/* Generated via JS */

@keyframes bokehFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0.8); }
  10%  { opacity: 1; }
  80%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-120vh) scale(1.2); }
}

/* Large soft glow blobs */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blobDrift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
.bg-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,120,60,0.22), transparent 65%);
  top: 5%; right: 5%;
  animation-delay: 0s;
}
.bg-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(60,180,120,0.18), transparent 65%);
  bottom: 15%; left: 5%;
  animation-delay: -7s;
}
.bg-blob-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(120,80,220,0.2), transparent 65%);
  top: 30%; left: 15%;
  animation-delay: -14s;
}
.bg-blob-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,200,80,0.15), transparent 65%);
  bottom: 20%; right: 20%;
  animation-delay: -5s;
}
@keyframes blobDrift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(30px,-20px) scale(1.08); }
  66%  { transform: translate(-20px,25px) scale(0.95); }
  100% { transform: translate(20px,-10px) scale(1.04); }
}

/* 3D object handled by Three.js canvas — no CSS object needed */

/* ===== NAVBAR LOGO ===== */
.logo-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,200,50,0.4)) brightness(1.05);
  transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1), filter 0.3s;
}
.nav-logo-img:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 16px rgba(255,210,80,0.7)) brightness(1.15);
}

/* ===== ANNOUNCEMENT BAR ===== */
.hero-announce {
  position: relative;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  margin-bottom: 32px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}
.hero-announce:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}
.hero-announce .arrow {
  display: inline-flex; align-items: center;
  font-size: 14px; opacity: 0.7;
}

/* ===== HERO LAYOUT ===== */
.hero {
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
}

/* Canvas — only upper portion, text lives below */
#heroCanvas {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100% !important;
  height: 68% !important;
  z-index: 10;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 20;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 0;
  /* sits below the canvas area */
}

.hero-title {
  color: var(--white) !important;
  font-size: clamp(3rem, 9vw, 6.5rem) !important;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
  margin-bottom: 20px !important;
}
.hero-title-xs {
  font-size: clamp(0.95rem, 2vw, 1.6rem) !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
}

/* Override letter color for dark bg */
.ht-char { color: var(--white); }

.hero-subtitle {
  color: rgba(255,255,255,0.75) !important;
  font-weight: 500 !important;
}

.hero-buttons { z-index: 20; position: relative; }

/* Buttons on dark bg */
.hero-buttons .btn-primary {
  background: rgba(255,255,255,0.95) !important;
  color: var(--black) !important;
}
.hero-buttons .btn-secondary {
  color: rgba(255,255,255,0.9) !important;
  border-color: rgba(255,255,255,0.35) !important;
}
.hero-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.1) !important;
}

.hero-scroll {
  color: rgba(255,255,255,0.4) !important;
  z-index: 20;
}

/* ===== GRADIENT OVERLAY bottom ===== */
.hero-gradient-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.6) 50%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

/* ===== NAVBAR on dark bg ===== */
.navbar-dark {
  background: rgba(10,22,40,0.7) !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
}
.navbar-dark .nav-logo { color: var(--white) !important; }
.navbar-dark .nav-links a { color: rgba(255,255,255,0.75) !important; }
.navbar-dark .nav-links a:hover { color: var(--white) !important; }
.navbar-dark.scrolled {
  background: rgba(10,22,40,0.95) !important;
}
.navbar-dark .btn-primary {
  background: var(--white) !important;
  color: var(--black) !important;
}

@media (max-width: 768px) {
  .hero-object { width: 220px; height: 220px; transform: translate(-50%,-65%); }
  .orbit-particle { display: none; }
  .hero-content { padding-top: 25vh; }
}
