/* ================================================================
   SMARTTECH KITCHEN SOLUTIONS — 3D HERO STYLES
   hero.css | Cinematic 3D hero with orbiting equipment cards
   ================================================================ */

/* ══════════════════════════════════════════════════
   BASE HERO 3D WRAPPER
══════════════════════════════════════════════════ */
.hero3d {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #060e1c 0%, #0a1628 35%, #0d1e38 65%, #091527 100%);
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════
   ANIMATED GRID BACKGROUND
══════════════════════════════════════════════════ */
.hero3d-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridSlide 20s linear infinite;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}
@keyframes gridSlide {
  0%   { transform: perspective(600px) rotateX(20deg) translateY(0); }
  100% { transform: perspective(600px) rotateX(20deg) translateY(50px); }
}

/* ══════════════════════════════════════════════════
   FLOATING LIGHT ORBS
══════════════════════════════════════════════════ */
.hero3d-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 6s ease-in-out infinite;
}
.hero3d-orb1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, transparent 70%);
  top: -80px; right: 10%;
  animation-delay: 0s;
}
.hero3d-orb2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 70%);
  bottom: 10%; left: 5%;
  animation-delay: 2s;
}
.hero3d-orb3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(232,90,0,0.15) 0%, transparent 70%);
  top: 50%; right: 30%;
  animation-delay: 4s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ══════════════════════════════════════════════════
   SCAN LINE EFFECT
══════════════════════════════════════════════════ */
.hero3d-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
}

/* ══════════════════════════════════════════════════
   INNER LAYOUT
══════════════════════════════════════════════════ */
.hero3d-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* ══════════════════════════════════════════════════
   LEFT — CONTENT
══════════════════════════════════════════════════ */
.hero3d-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Live badge */
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  width: fit-content;
  backdrop-filter: blur(10px);
}
.hero-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: livePulse 1.5s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Headline */
.hero3d-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero3d-gradient-text {
  background: linear-gradient(90deg, #60A5FA 0%, #38BDF8 50%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero3d-outline-text {
  -webkit-text-stroke: 2px rgba(255,255,255,0.5);
  color: transparent;
  font-style: italic;
}

/* Subtitle */
.hero3d-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  max-width: 520px;
  margin: 0;
}
.hero3d-sub strong { color: rgba(255,255,255,0.95); font-weight: 600; }

/* CTAs */
.hero3d-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hero3d-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.hero3d-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.25s;
}
.hero3d-btn:hover::after { background: rgba(255,255,255,0.08); }
.hero3d-btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,99,235,0.45);
}
.hero3d-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,99,235,0.55);
  color: #fff;
}
.hero3d-btn-wa {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(22,163,74,0.4);
}
.hero3d-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(22,163,74,0.5);
  color: #fff;
}
.hero3d-btn-ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.hero3d-btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: translateY(-2px);
}

/* Trust pills */
.hero3d-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero3d-trust span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

/* Stats bar */
.hero3d-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}
.hero3d-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.hero3d-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero3d-stat-plus {
  font-size: 1rem;
  color: #60A5FA;
  font-weight: 700;
}
.hero3d-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero3d-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   RIGHT — 3D VISUAL SCENE
══════════════════════════════════════════════════ */
.hero3d-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero3d-scene {
  position: relative;
  width: 480px;
  height: 480px;
  flex-shrink: 0;
}

/* ── Central Hub ── */
.hero3d-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero3d-hub-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,0.25);
  animation: hubPulse 3s ease-in-out infinite;
}
.hero3d-hub-ring1 { width: 110px; height: 110px; animation-delay: 0s; }
.hero3d-hub-ring2 { width: 150px; height: 150px; animation-delay: 0.5s; border-color: rgba(6,182,212,0.18); }
.hero3d-hub-ring3 { width: 200px; height: 200px; animation-delay: 1s; border-color: rgba(37,99,235,0.1); }
@keyframes hubPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.7; }
}

.hero3d-hub-core {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, #1e3a5f, #1d4ed8);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px rgba(37,99,235,0.3),
    0 0 40px rgba(37,99,235,0.5),
    0 0 80px rgba(37,99,235,0.25);
  position: relative;
  z-index: 2;
  animation: coreGlow 3s ease-in-out infinite;
}
@keyframes coreGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37,99,235,0.3), 0 0 40px rgba(37,99,235,0.5), 0 0 80px rgba(37,99,235,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(37,99,235,0.4), 0 0 60px rgba(37,99,235,0.7), 0 0 120px rgba(37,99,235,0.35); }
}

/* ── Orbiting Cards ── */
.hero3d-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  animation: orbit 18s linear infinite;
}
.hero3d-orbit1 { animation-duration: 14s; animation-delay: 0s; }
.hero3d-orbit2 { animation-duration: 18s; animation-delay: -3s; }
.hero3d-orbit3 { animation-duration: 22s; animation-delay: -6s; }
.hero3d-orbit4 { animation-duration: 16s; animation-delay: -9s; }
.hero3d-orbit5 { animation-duration: 20s; animation-delay: -12s; }
.hero3d-orbit6 { animation-duration: 25s; animation-delay: -5s; }

@keyframes orbit {
  0%   { transform: rotate(0deg)   translateX(200px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

.hero3d-equip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 14px;
  background: rgba(10,20,40,0.85);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
  transform: translateX(-50%) translateY(-50%);
  white-space: nowrap;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.hero3d-equip-card:hover {
  transform: translateX(-50%) translateY(-50%) scale(1.1);
  box-shadow: 0 8px 30px rgba(37,99,235,0.4);
  border-color: rgba(96,165,250,0.5);
}
.hero3d-equip-icon { font-size: 1.4rem; }
.hero3d-equip-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}
.hero3d-equip-status {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hero3d-status-live    { color: #4ade80; }
.hero3d-status-progress { color: #fbbf24; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Card-specific accent borders */
.hero3d-card-oven   { border-color: rgba(248,113,113,0.4); }
.hero3d-card-cold   { border-color: rgba(56,189,248,0.4); }
.hero3d-card-fab    { border-color: rgba(251,191,36,0.4); }
.hero3d-card-broast { border-color: rgba(253,186,116,0.4); }
.hero3d-card-hood   { border-color: rgba(167,243,208,0.4); }
.hero3d-card-gas    { border-color: rgba(252,165,165,0.4); }

/* ── Live Ticker ── */
.hero3d-ticker {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  background: rgba(6,14,28,0.85);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 12px;
  padding: 8px 12px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.hero3d-ticker-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f87171;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero3d-ticker-scroll {
  display: flex;
  gap: 2rem;
  animation: tickerScroll 20s linear infinite;
  white-space: nowrap;
}
.hero3d-ticker-scroll span {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .hero3d-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }
  .hero-live-badge { margin: 0 auto; }
  .hero3d-sub { margin: 0 auto; }
  .hero3d-ctas { justify-content: center; }
  .hero3d-trust { justify-content: center; }
  .hero3d-stats { justify-content: center; }
  .hero3d-right { display: none; }
}
@media (max-width: 639px) {
  .hero3d-title { font-size: 2rem; }
  .hero3d-stats { flex-wrap: wrap; gap: 1rem; }
  .hero3d-stat-divider { display: none; }
  .hero3d-ctas { flex-direction: column; align-items: center; }
  .hero3d-btn { width: 100%; justify-content: center; }
}
