/* ==========================================================================
   DOYANCODING.COM - 3D TRUK SOUND HOREG DIGITAL
   Ultra-Modern, Energetic, Playful yet Professional 3D Digital Sound Truck
   Theme: Clean White Background with Vibrant Cyber Blue, Cyan & Neon Stage Lights
   ========================================================================== */

/* Outer Section & Embedded Showcase */
.truk-horeg-section,
.truk-horeg-showcase {
  position: relative;
  width: 100%;
  margin: 10px auto 40px;
  overflow: visible;
}

/* Background Ambient Multi-Color Festival Lighting for Stage */
.truk-stage-ambient {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1100px;
  height: 480px;
  background: 
    radial-gradient(ellipse at 50% 25%, rgba(0, 242, 254, 0.16) 0%, transparent 65%),
    radial-gradient(circle at 18% 40%, rgba(236, 72, 153, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 82% 40%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 75%, rgba(16, 185, 129, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 35% 60%, rgba(168, 85, 247, 0.14) 0%, transparent 50%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}

/* Section Header for Sound Horeg */
.truk-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
}

.truk-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.truk-badge-pill .pulse-speaker {
  display: inline-block;
  animation: speakerShake 0.6s infinite alternate;
}

@keyframes speakerShake {
  from { transform: scale(1) rotate(-4deg); }
  to { transform: scale(1.18) rotate(4deg); }
}

.truk-main-title {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 12px;
}

.truk-main-title span {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.truk-concept-quote {
  font-size: 1.12rem;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.truk-subtext {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 16px;
}

/* Sound Horeg Interactive Control Bar */
.truk-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.btn-horeg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1.5px solid #2563eb;
  color: #2563eb;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transition: all var(--transition-fast);
}

.btn-horeg-toggle.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-horeg-toggle:hover {
  transform: translateY(-2px);
}

.horeg-hint-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   3D TRUCK STAGE & PERSPECTIVE
   ========================================================================== */
.truk-stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 600px;
  margin: 0 auto;
  perspective: 1200px;
  perspective-origin: 50% 45%;
  user-select: none;
  z-index: 2;
}

@media (max-width: 991px) {
  .truk-stage-wrapper {
    height: 480px;
  }
}

@media (max-width: 640px) {
  .truk-stage-wrapper {
    height: 380px;
  }
}

/* 3D Moving Object Root */
.truk-3d-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sound Horeg Bass Suspension Bounce */
.truk-rig-body {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 100%;
  transform-style: preserve-3d;
  animation: horegBassBounce 0.9s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}

.truk-rig-body.bass-boost {
  animation: horegBassBounceBoost 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) infinite alternate;
}

@keyframes horegBassBounce {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(0.15deg); }
  100% { transform: translateY(3px) rotate(-0.15deg); }
}

@keyframes horegBassBounceBoost {
  0% { transform: translateY(-3px) scale(0.995); }
  50% { transform: translateY(6px) scale(1.01); }
  100% { transform: translateY(-4px) scale(1); }
}

/* Background Stage Spotlights / 5 Multi-Color Laser Beams */
.truk-laser-beams {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 260px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.laser-beam {
  position: absolute;
  bottom: 0;
  width: 18px;
  height: 350px;
  transform-origin: bottom center;
  opacity: 0.75;
  filter: blur(7px);
}

/* 1. Electric Cyan */
.laser-beam.b1 {
  left: 18%;
  background: linear-gradient(to top, rgba(0, 242, 254, 0.9), rgba(0, 242, 254, 0.4) 60%, transparent);
  animation: swingLaser1 3.8s ease-in-out infinite alternate;
}

/* 2. Hot Neon Pink */
.laser-beam.b2 {
  left: 34%;
  background: linear-gradient(to top, rgba(236, 72, 153, 0.9), rgba(236, 72, 153, 0.4) 60%, transparent);
  animation: swingLaser2 3.2s ease-in-out infinite alternate;
}

/* 3. Laser Emerald Green */
.laser-beam.b3 {
  left: 50%;
  background: linear-gradient(to top, rgba(16, 185, 129, 0.9), rgba(16, 185, 129, 0.4) 60%, transparent);
  animation: swingLaser3 4.2s ease-in-out infinite alternate;
}

/* 4. Golden Sunset Amber */
.laser-beam.b4 {
  left: 66%;
  background: linear-gradient(to top, rgba(245, 158, 11, 0.9), rgba(245, 158, 11, 0.4) 60%, transparent);
  animation: swingLaser4 3.5s ease-in-out infinite alternate;
}

/* 5. Electric Violet Purple */
.laser-beam.b5 {
  left: 82%;
  background: linear-gradient(to top, rgba(168, 85, 247, 0.9), rgba(168, 85, 247, 0.4) 60%, transparent);
  animation: swingLaser5 4.6s ease-in-out infinite alternate;
}

@keyframes swingLaser1 {
  0% { transform: rotate(-35deg); }
  100% { transform: rotate(15deg); }
}

@keyframes swingLaser2 {
  0% { transform: rotate(25deg); }
  100% { transform: rotate(-20deg); }
}

@keyframes swingLaser3 {
  0% { transform: rotate(-15deg); }
  100% { transform: rotate(20deg); }
}

@keyframes swingLaser4 {
  0% { transform: rotate(-25deg); }
  100% { transform: rotate(25deg); }
}

@keyframes swingLaser5 {
  0% { transform: rotate(20deg); }
  100% { transform: rotate(-30deg); }
}

/* Base Truck SVG Illustration Layer */
.truk-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.truk-svg-layer svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 15px 25px rgba(15, 23, 42, 0.12));
}

/* Audio Visualizer Spectrum Bar Canvas */
.truk-visualizer-canvas {
  position: absolute;
  top: 110px;
  left: 17%;
  width: 53%;
  height: 48px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.9;
}

/* ==========================================================================
   DIGITAL APPLICATION SCREENS (BAK TRUK MONITOR RACK)
   ========================================================================== */
.truk-screens-grid {
  position: absolute;
  top: 155px;
  left: 17%;
  width: 53%;
  height: 250px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .truk-screens-grid {
    top: 130px;
    left: 15%;
    width: 57%;
    height: 190px;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .truk-screens-grid {
    top: 115px;
    left: 14%;
    width: 60%;
    height: 160px;
    gap: 4px;
  }
}

/* Single Digital Screen Panel */
.app-screen {
  position: relative;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  border-radius: 8px;
  padding: 5px 6px;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(2, 132, 199, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  text-decoration: none;
}

/* Scanline / Glass Sheen */
.app-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* Screen Top Header */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.screen-icon {
  font-size: 13px;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.6));
}

.screen-badge {
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 0.5px solid rgba(56, 189, 248, 0.3);
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

/* Screen Content Preview */
.screen-content {
  margin-top: 2px;
}

.screen-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 9.5px;
  color: #ffffff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

/* Dynamic Mini Animation Elements inside screens */
.mini-viz {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-top: 3px;
}

.mini-viz .bar {
  flex: 1;
  background: linear-gradient(to top, #2563eb, #38bdf8);
  border-radius: 1px;
  animation: barBounce 0.8s ease-in-out infinite alternate;
}

.mini-viz .bar:nth-child(1) { animation-delay: 0.1s; height: 40%; }
.mini-viz .bar:nth-child(2) { animation-delay: 0.3s; height: 80%; }
.mini-viz .bar:nth-child(3) { animation-delay: 0.2s; height: 60%; }
.mini-viz .bar:nth-child(4) { animation-delay: 0.5s; height: 100%; }
.mini-viz .bar:nth-child(5) { animation-delay: 0.4s; height: 50%; }

@keyframes barBounce {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

.mini-code-tag {
  font-family: var(--font-mono);
  font-size: 7px;
  color: #10b981;
  letter-spacing: 0.5px;
  animation: codeBlink 1.4s infinite;
}

@keyframes codeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mini-stat-text {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  color: #38bdf8;
}

/* Hover State on Digital Screens */
.app-screen:hover {
  transform: scale(1.18) translateY(-4px) translateZ(30px);
  border-color: #00f2fe;
  background: rgba(8, 17, 36, 0.98);
  box-shadow: 
    0 12px 28px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 242, 254, 0.7),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
  z-index: 50 !important;
}

.app-screen:hover .screen-title {
  color: #00f2fe;
}

/* ==========================================================================
   9 VIBRANT SCREEN COLOR IDENTITIES (WARNA-WARNI KHAS SOUND HOREG)
   Setiap monitor memiliki identitas warna neon sendiri yang kontras & menyala
   ========================================================================== */
/* 1. Cyan (Company Profile) */
.app-screen.screen-cyan {
  border-color: rgba(0, 242, 254, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(0, 242, 254, 0.35);
}
.app-screen.screen-cyan .screen-badge {
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.18);
  border-color: rgba(0, 242, 254, 0.45);
}
.app-screen.screen-cyan .mini-stat-text { color: #38bdf8; }
.app-screen.screen-cyan:hover,
.app-screen.screen-cyan.pulse-active {
  border-color: #00f2fe;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 242, 254, 0.75);
}
.app-screen.screen-cyan:hover .screen-title { color: #00f2fe; }

/* 2. Emerald Green (Sistem Kasir) */
.app-screen.screen-green {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(16, 185, 129, 0.35);
}
.app-screen.screen-green .screen-badge {
  color: #10b981;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
}
.app-screen.screen-green .mini-stat-text { color: #34d399; }
.app-screen.screen-green:hover,
.app-screen.screen-green.pulse-active {
  border-color: #10b981;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(16, 185, 129, 0.75);
}
.app-screen.screen-green:hover .screen-title { color: #34d399; }

/* 3. Warm Amber Gold (Inventory) */
.app-screen.screen-amber {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(245, 158, 11, 0.35);
}
.app-screen.screen-amber .screen-badge {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
}
.app-screen.screen-amber .mini-stat-text { color: #fbbf24; }
.app-screen.screen-amber:hover,
.app-screen.screen-amber.pulse-active {
  border-color: #f59e0b;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(245, 158, 11, 0.75);
}
.app-screen.screen-amber:hover .screen-title { color: #fbbf24; }

/* 4. Hot Neon Pink (Dashboard) */
.app-screen.screen-pink {
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(236, 72, 153, 0.35);
}
.app-screen.screen-pink .screen-badge {
  color: #ec4899;
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.45);
}
.app-screen.screen-pink .mini-stat-text { color: #f472b6; }
.app-screen.screen-pink .mini-viz .bar {
  background: linear-gradient(to top, #ec4899, #f43f5e);
}
.app-screen.screen-pink:hover,
.app-screen.screen-pink.pulse-active {
  border-color: #ec4899;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(236, 72, 153, 0.75);
}
.app-screen.screen-pink:hover .screen-title { color: #f472b6; }

/* 5. Electric Purple (E-Commerce) */
.app-screen.screen-purple {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(168, 85, 247, 0.35);
}
.app-screen.screen-purple .screen-badge {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
}
.app-screen.screen-purple .mini-stat-text { color: #c084fc; }
.app-screen.screen-purple:hover,
.app-screen.screen-purple.pulse-active {
  border-color: #a855f7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(168, 85, 247, 0.75);
}
.app-screen.screen-purple:hover .screen-title { color: #c084fc; }

/* 6. Cyber Lime (Aplikasi Custom) */
.app-screen.screen-lime {
  border-color: rgba(132, 204, 22, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(132, 204, 22, 0.35);
}
.app-screen.screen-lime .screen-badge {
  color: #84cc16;
  background: rgba(132, 204, 22, 0.18);
  border-color: rgba(132, 204, 22, 0.45);
}
.app-screen.screen-lime .mini-code-tag { color: #a3e635; }
.app-screen.screen-lime:hover,
.app-screen.screen-lime.pulse-active {
  border-color: #84cc16;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(132, 204, 22, 0.75);
}
.app-screen.screen-lime:hover .screen-title { color: #a3e635; }

/* 7. Fiery Coral Orange (Administrasi) */
.app-screen.screen-coral {
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(249, 115, 22, 0.35);
}
.app-screen.screen-coral .screen-badge {
  color: #f97316;
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.45);
}
.app-screen.screen-coral .mini-stat-text { color: #fb923c; }
.app-screen.screen-coral:hover,
.app-screen.screen-coral.pulse-active {
  border-color: #f97316;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(249, 115, 22, 0.75);
}
.app-screen.screen-coral:hover .screen-title { color: #fb923c; }

/* 8. Sky Indigo (Mobile App) */
.app-screen.screen-indigo {
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(99, 102, 241, 0.35);
}
.app-screen.screen-indigo .screen-badge {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.45);
}
.app-screen.screen-indigo .mini-stat-text { color: #818cf8; }
.app-screen.screen-indigo:hover,
.app-screen.screen-indigo.pulse-active {
  border-color: #6366f1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(99, 102, 241, 0.75);
}
.app-screen.screen-indigo:hover .screen-title { color: #818cf8; }

/* 9. Electric Teal (API Integration) */
.app-screen.screen-teal {
  border-color: rgba(20, 184, 166, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(20, 184, 166, 0.35);
}
.app-screen.screen-teal .screen-badge {
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.18);
  border-color: rgba(20, 184, 166, 0.45);
}
.app-screen.screen-teal .mini-stat-text { color: #2dd4bf; }
.app-screen.screen-teal:hover,
.app-screen.screen-teal.pulse-active {
  border-color: #14b8a6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(20, 184, 166, 0.75);
}
.app-screen.screen-teal:hover .screen-title { color: #2dd4bf; }

/* Hologram Particle Embers around the Truck */
.truk-particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hologram-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #00f2fe;
  animation: floatParticle 4s linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-120px) translateX(20px); opacity: 0; }
}

/* ==========================================================================
   TRANSITION DIVIDER TO HERO HEADLINE
   ========================================================================== */
.truk-to-hero-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  cursor: pointer;
  color: var(--blue-primary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.truk-to-hero-divider:hover {
  color: #1d4ed8;
  transform: translateY(2px);
}

.divider-arrow-bounce {
  font-size: 1.4rem;
  animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Responsive Styles for Mobile */
@media (max-width: 640px) {
  .truk-horeg-section {
    padding-top: 90px;
    padding-bottom: 30px;
  }

  .truk-main-title {
    font-size: 1.65rem;
  }

  .truk-concept-quote {
    font-size: 0.96rem;
  }

  .app-screen {
    padding: 3px 4px;
  }

  .screen-title {
    font-size: 7.5px;
  }

  .screen-icon {
    font-size: 10px;
  }

  .screen-badge {
    font-size: 5.5px;
    padding: 1px 2px;
  }

  .mini-viz {
    height: 8px;
  }
}
