/* ==========================================================================
   Hero Section
   Monotics WordPress Theme
   ========================================================================== */

/* --- Hero Container --- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #020912;
}

/* --- Hero Canvas Background --- */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-hero-bg);
}

/* --- Hero Background Image --- */
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: var(--z-hero-bg);
  background: url('../../images/hero/hero-bg.webp') center/cover no-repeat;
  opacity: 0.35;
  filter: saturate(0.4) brightness(0.7);
}

/* --- Cleaning Sweep Beam --- */
.clean-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-hero-overlay);
  overflow: hidden;
}

.sweep-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 220, 255, 0.04) 30%,
    rgba(0, 220, 255, 0.22) 50%,
    rgba(0, 220, 255, 0.04) 70%,
    transparent 100%);
  animation: sweep-move 10s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  filter: blur(2px);
}

.sweep-beam::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(0, 240, 255, 0.7);
  box-shadow: 0 0 18px 4px rgba(0, 240, 255, 0.5);
}

/* --- Dust Particles --- */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-hero-overlay);
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: dust-sweep linear infinite;
}

/* --- Clean Zone Glow --- */
.clean-zone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-hero-overlay);
  background: linear-gradient(90deg,
    rgba(0, 200, 255, 0.04) 0%,
    transparent 40%);
  animation: clean-zone-expand 10s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --- Glow Orbs --- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-hero-overlay);
  filter: blur(80px);
  animation: orb-drift ease-in-out infinite alternate;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 87, 255, 0.20), transparent 70%);
  right: 10%;
  top: -10%;
  animation-duration: 8s;
}

.glow-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.15), transparent 70%);
  left: 5%;
  bottom: 5%;
  animation-duration: 11s;
  animation-delay: -4s;
}

.glow-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 220, 255, 0.10), transparent 70%);
  left: 40%;
  top: 30%;
  animation-duration: 7s;
  animation-delay: -2s;
}

/* --- Hero Content Grid --- */
.hero-content {
  position: relative;
  z-index: var(--z-hero-content);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* --- Hero Eyebrow --- */
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: hero-fadein 0.8s ease forwards 0.3s;
}

.hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--cyan);
}

/* --- Hero Title --- */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  opacity: 0;
  animation: hero-fadein 0.9s ease forwards 0.6s;
}

.hero-title-type {
  white-space: pre-line;
  display: inline-block;
}

.hero-title em {
  font-style: normal;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hero Typewriter --- */
.hero-typewriter-wrap {
  min-height: 56px;
  margin-bottom: 32px;
  opacity: 0;
  animation: hero-fadein 0.5s ease forwards 1.2s;
  overflow: hidden;
  width: 100%;
}

.hero-typewriter {
  font-size: 17px;
  font-weight: 500;
  color: var(--cyan);
  font-family: 'DM Sans', monospace;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  display: inline-block;
  min-height: 1.3em;
}

/* --- Hero Description --- */
.hero-desc {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 440px;
  opacity: 0;
  animation: hero-fadein 0.8s ease forwards 1.4s;
}

/* --- Hero Buttons --- */
.hero-btns {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: hero-fadein 0.8s ease forwards 1.7s;
}

/* --- Hero Visual (Right Column) --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: hero-fadein 1s ease forwards 0.8s;
}

/* --- Machine Wrap --- */
.hero-machine-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
}

/* --- Spinning Rings --- */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  animation: spin-slow linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-ring:nth-child(1) {
  width: 440px;
  height: 440px;
  border: 1px solid rgba(0, 200, 255, 0.12);
  animation-duration: 22s;
}

.hero-ring:nth-child(2) {
  width: 350px;
  height: 350px;
  border: 1px solid rgba(0, 87, 255, 0.18);
  animation-duration: 16s;
  animation-direction: reverse;
}

.hero-ring:nth-child(3) {
  width: 260px;
  height: 260px;
  border: 1px solid rgba(0, 200, 255, 0.12);
  animation-duration: 11s;
}

/* Dashed orbit ring */
.hero-ring:nth-child(1)::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 200, 255, 0.08);
}

/* Ring dots */
.ring-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 2px rgba(0, 200, 255, 0.6);
  top: 50%;
  left: -3px;
  transform-origin: calc(220px + 3px) 3px;
  animation: spin-slow linear 22s infinite;
}

.ring-dot:nth-child(2) {
  animation-duration: 16s;
  animation-direction: reverse;
  transform-origin: calc(175px + 3px) 3px;
}

/* --- Hero Machine Card --- */
.hero-machine-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(13, 30, 56, 0.96), rgba(5, 13, 26, 0.92));
  border: var(--border-cyan-strong);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 40px rgba(0, 200, 255, 0.06);
}

.machine-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.machine-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.machine-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 20px;
}

.machine-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  background: rgba(0, 200, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  transition: background var(--transition-base);
}

.spec-item:hover {
  background: rgba(0, 200, 255, 0.1);
}

.spec-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  font-family: var(--font-heading);
}

.spec-key {
  font-size: 11px;
  color: var(--gray);
  margin-top: 2px;
}

/* --- Card Pulse Ring --- */
.card-pulse {
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  pointer-events: none;
  border: 1px solid rgba(0, 200, 255, 0.15);
  animation: card-pulse 3s ease-out infinite;
}

/* --- Hero Card Badge (overrides about.css absolute positioning) --- */
.hero-machine-card .about-card-main-overlay {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin-bottom: 16px;
}

/* --- Scroll Indicator --- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 11px;
  letter-spacing: 1px;
  z-index: var(--z-hero-content);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--cyan), transparent);
}
