/* ==========================================================================
   Hero Section - Simon-Kucher Design Mimic with 4 Carousel Tabs &
   Interactive Graphics Engine for TieOx Manufacturing Clients
   ========================================================================== */

.hero-section {
  position: relative;
  background-color: #09315c;
  background-image: 
    radial-gradient(circle at 75% 25%, rgba(20, 115, 200, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 15% 75%, rgba(37, 117, 252, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #072648 0%, #0b4e88 65%, #0e5b9c 100%);
  min-height: calc(100vh - 82px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Background Grid Pattern */
.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  pointer-events: none;
  z-index: 1;
}

/* Main Hero Layout */
.hero-stage {
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}

/* Slide Container */
.slides-wrapper {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* Slide Typography & Content */
.slide-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(37, 117, 252, 0.12);
  border: 1px solid rgba(37, 117, 252, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.slide-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.slide-title .accent-word {
  color: var(--color-accent);
}

.slide-description {
  font-size: 1.1875rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 620px;
}

/* Action Buttons & Quick Metric Pill */
.slide-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.slide-metric-strip {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.strip-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.strip-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent);
}

.strip-label {
  font-size: 0.8125rem;
  color: #cbd5e1;
  font-weight: 500;
}

.strip-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Right Side: Interactive Graphics Engine Canvas & HUD Cards
   ========================================================================== */

.hero-interactive-stage {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Canvas viewport */
#heroInteractiveCanvas {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: block;
  cursor: grab;
}

#heroInteractiveCanvas:active {
  cursor: grabbing;
}

/* Floating Glassmorphic HUD Cards (Mimicking Simon-Kucher interactive overlay) */
.hud-card {
  position: absolute;
  background: rgba(10, 24, 46, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(37, 117, 252, 0.25);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 20px rgba(37, 117, 252, 0.15);
  z-index: 5;
  transition: transform 0.3s ease, border-color 0.3s ease;
  pointer-events: auto;
}

.hud-card:hover {
  border-color: rgba(239, 159, 39, 0.6);
  transform: translateY(-4px) scale(1.02);
}

.hud-top-left {
  top: 18px;
  left: 10px;
}

.hud-bottom-right {
  bottom: 25px;
  right: 15px;
}

.hud-floating-mid {
  top: 48%;
  right: -10px;
  transform: translateY(-50%);
}

.hud-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.hud-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.hud-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.hud-big-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.hud-badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.hud-badge-accent {
  background: rgba(239, 159, 39, 0.2);
  color: var(--color-accent);
}

.hud-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

/* Canvas Hint */
.interactive-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(4, 9, 18, 0.6);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* ==========================================================================
   4 Carousel Tabs (Direct Simon-Kucher Mimic)
   ========================================================================== */

.hero-tabs-bar {
  position: relative;
  z-index: 10;
  background: rgba(8, 38, 72, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0;
}

.hero-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero-tabs-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  flex-grow: 1;
}

/* Individual Tab Button */
.hero-tab-btn {
  text-align: left;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.hero-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-tab-btn.active {
  background: rgba(13, 79, 136, 0.25);
  border-color: rgba(37, 117, 252, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.tab-progress-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
  transition: width 0.1s linear;
}

.hero-tab-btn.active .tab-progress-line {
  /* Dynamic width driven by JS */
}

.tab-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.tab-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  transition: color var(--transition-fast);
}

.hero-tab-btn.active .tab-index {
  color: var(--color-accent);
}

.tab-status-icon {
  font-size: 0.8rem;
  color: #64748b;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.hero-tab-btn.active .tab-status-icon {
  opacity: 1;
  color: #60a5fa;
}

.tab-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.35;
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-tab-btn.active .tab-title {
  color: #ffffff;
  font-weight: 700;
}

/* Arrow Controls (Prev / Next) */
.hero-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hero-nav-arrow {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.hero-nav-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

/* Pause Button */
.hero-pause-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.hero-pause-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Hero Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
  .slide-title {
    font-size: 2.75rem;
  }
  
  .hero-grid-layout {
    gap: 2.5rem;
  }
  
  .hero-interactive-stage {
    height: 450px;
  }
}

@media (max-width: 992px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .slide-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .slide-actions {
    justify-content: center;
  }
  
  .hero-interactive-stage {
    height: 380px;
    order: -1;
  }
  
  .hero-tabs-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .slide-title {
    font-size: 2.1rem;
  }
  
  .hero-tabs-list {
    grid-template-columns: 1fr;
  }
  
  .hero-controls {
    display: none;
  }
  
  .hud-card {
    padding: 0.65rem 0.85rem;
  }
  
  .hud-big-num {
    font-size: 1.15rem;
  }
}
