/* ==========================================================================
   KONTEN KILAT - Premium Design Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* --------------------------------------------------------------------------
   0. DESIGN SYSTEM TOKENS & VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palettes - HSL Custom Curated */
  --bg-midnight: hsl(222, 47%, 4%);      /* Deep Midnight Space Blue */
  --bg-card: hsla(220, 35%, 8%, 0.55);   /* Dark Glass Card Base */
  --bg-card-hover: hsla(220, 35%, 12%, 0.75);
  
  --primary-orange: hsl(25, 100%, 50%);  /* Speed/Lightning Amber-Orange */
  --primary-orange-rgb: 255, 107, 0;
  --primary-cyan: hsl(184, 100%, 50%);   /* Tech/AI Cyan Glow */
  --primary-cyan-rgb: 0, 240, 255;
  
  --text-white: hsl(0, 0%, 98%);         /* Crystal White Headings */
  --text-muted: hsl(215, 20%, 65%);      /* Elegant Slate Gray Body */
  --border-glass: hsla(220, 20%, 30%, 0.2);
  --border-glass-glow: hsla(184, 100%, 50%, 0.15);
  
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Speeds & Transistions */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1); /* Custom smooth ease-out */
  --transition-normal: 0.35s var(--ease-premium);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   1. RESET & GLOBALS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-orange) var(--bg-midnight);
}

body {
  background-color: var(--bg-midnight);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-midnight);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-orange), var(--primary-cyan));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-orange);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

input, select, textarea, button {
  font-family: inherit;
  color: inherit;
}

/* Utility Layouts */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.overflow-hidden {
  overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   2. REUSABLE PREMIUM COMPONENTS
   -------------------------------------------------------------------------- */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), hsl(15, 100%, 45%));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(var(--primary-orange-rgb), 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--primary-orange-rgb), 0.45);
}

.btn-secondary {
  background: hsla(0, 0%, 100%, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-white);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: hsla(0, 0%, 100%, 0.1);
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
}

/* Glowing text & components */
.text-glow-orange {
  text-shadow: 0 0 15px rgba(var(--primary-orange-rgb), 0.5);
}

.text-glow-cyan {
  text-shadow: 0 0 15px rgba(var(--primary-cyan-rgb), 0.5);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 55%
  );
  transform: rotate(-45deg);
  transition: none;
  animation: shine 4s infinite linear;
}

@keyframes shine {
  0% { transform: translate(-30%, -30%) rotate(-45deg); }
  100% { transform: translate(130%, 130%) rotate(-45deg); }
}

/* Glassmorphism Card Frame */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px) saturate(180%);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-glass-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(var(--primary-cyan-rgb), 0.05);
}

/* Badge tags */
.badge-kilat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  background: rgba(var(--primary-orange-rgb), 0.12);
  border: 1px solid rgba(var(--primary-orange-rgb), 0.3);
  color: var(--primary-orange);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
}

.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  background: rgba(var(--primary-cyan-rgb), 0.12);
  border: 1px solid rgba(var(--primary-cyan-rgb), 0.3);
  color: var(--primary-cyan);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background: transparent;
  transition: padding 0.5s var(--ease-premium), background-color 0.4s var(--ease-premium);
}

/* Shrinking header triggered by JS fallback */
.header-scrolled {
  padding: 0.8rem 0;
  background-color: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

/* Native CSS Scroll timeline Shrinking Header support */
@supports (animation-timeline: scroll()) and (animation-range: 0% 100%) {
  @keyframes shrinkHeader {
    to {
      padding: 0.8rem 0;
      background-color: rgba(7, 9, 14, 0.85);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-glass);
    }
  }
  
  .main-header {
    animation: shrinkHeader auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo Styling */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -0.03em;
}

.logo-lightning-svg {
  filter: drop-shadow(0 0 8px rgba(243, 172, 60, 0.6));
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: rotate3dLightning 4s linear infinite;
  display: inline-block;
}

@keyframes rotate3dLightning {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.logo-text-accent {
  color: var(--primary-orange);
}

/* Nav Menu links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.2rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-cyan));
  transition: width var(--transition-normal);
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger mobile burger button */
.mobile-burger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: none;
  padding: 0.5rem;
}

.burger-bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--text-white);
  transition: var(--transition-normal);
}

/* --------------------------------------------------------------------------
   4. HERO BANNER SECTION WITH PARTICLE EFFECTS
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 50px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Hero Background Cyborg face overlay */
.hero-bg-cyborg-container {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-cyborg-img {
  width: 100%;
  height: 100%;
  background-image: url('../img/cyber-head.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
}

.hero-bg-cyborg-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-midnight) 0%, transparent 40%),
              linear-gradient(to bottom, var(--bg-midnight) 0%, transparent 15%, transparent 85%, var(--bg-midnight) 100%);
}

@media (max-width: 991px) {
  .hero-bg-cyborg-container {
    width: 100%;
  }
  
  .hero-bg-cyborg-img {
    opacity: 0.15; /* Faded on mobile for better text readability */
  }
  
  .hero-bg-cyborg-fade {
    background: radial-gradient(circle at center, transparent 10%, var(--bg-midnight) 90%),
                linear-gradient(to bottom, var(--bg-midnight) 0%, transparent 20%, transparent 80%, var(--bg-midnight) 100%);
  }
}


.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-title-lead {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.05;
  margin-top: 0.5rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 0.8rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-stats-quick {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.8rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
}

.stat-num-cyan {
  color: var(--primary-cyan);
  text-shadow: 0 0 10px rgba(var(--primary-cyan-rgb), 0.3);
}

.stat-num-orange {
  color: var(--primary-orange);
  text-shadow: 0 0 10px rgba(var(--primary-orange-rgb), 0.3);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Brand Graphic Frame */
.hero-visual-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic-wrap {
  width: 100%;
  max-width: 440px;
  position: relative;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(var(--primary-cyan-rgb), 0.08) 0%, transparent 70%);
}

.glow-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(var(--primary-cyan-rgb), 0.2);
  animation: rotateClockwise 25s infinite linear;
}

.glow-ring-inner {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 1px solid rgba(var(--primary-orange-rgb), 0.15);
  animation: rotateCounterClockwise 15s infinite linear;
}

.visual-floating-shutter {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass-glow);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: floatMotion 6s ease-in-out infinite;
}

.shutter-svg-inner {
  filter: drop-shadow(0 0 15px var(--primary-cyan));
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes floatMotion {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

/* 3D Rotating Sphere */
.sphere-3d-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sphere-3d-container {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: spin3DSphere 12s infinite linear;
}

.sphere-slice {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  backface-visibility: visible;
  border: 1.5px solid rgba(0, 240, 255, 0.45);
  background: rgba(7, 9, 14, 0.2);
  box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.15);
  opacity: 0.8;
}

.sphere-slice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

@keyframes spin3DSphere {
  0% { transform: rotateX(12deg) rotateY(0deg); }
  100% { transform: rotateX(12deg) rotateY(360deg); }
}


/* --------------------------------------------------------------------------
   5. SECTIONS GENERAL STYLING
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   6. SPEED FEATURE / ADVANTAGE SECTION
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(var(--primary-cyan-rgb), 0.08);
  border: 1px solid rgba(var(--primary-cyan-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
}

.feature-box:nth-child(2) .feature-icon-wrapper {
  background: rgba(var(--primary-orange-rgb), 0.08);
  border: 1px solid rgba(var(--primary-orange-rgb), 0.2);
  color: var(--primary-orange);
}

.feature-icon-wrapper svg {
  filter: drop-shadow(0 0 4px currentColor);
}

.feature-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. SERVICES GRID SECTION
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
}

.service-num-badge {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: hsla(0, 0%, 100%, 0.05);
  line-height: 0.8;
  transition: var(--transition-normal);
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card:hover .service-num-badge {
  background: linear-gradient(180deg, var(--primary-cyan), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card-body h3 {
  font-size: 1.4rem;
}

.service-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   8. ESTIMATOR CALCULATOR SECTION
   -------------------------------------------------------------------------- */
.calc-card-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.calc-input-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-white);
  display: flex;
  justify-content: space-between;
}

.label-val {
  color: var(--primary-cyan);
}

.calc-select {
  background: hsla(220, 30%, 5%, 0.6);
  border: 1px solid var(--border-glass);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  color: var(--text-white);
  outline: none;
  font-size: 0.95rem;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.calc-select:focus {
  border-color: var(--primary-cyan);
}

/* Premium Range Sliders */
.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: hsla(220, 30%, 5%, 0.6);
  outline: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: 0 0 8px rgba(var(--primary-cyan-rgb), 0.6);
  transition: var(--transition-fast);
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--primary-orange);
  box-shadow: 0 0 8px rgba(var(--primary-orange-rgb), 0.6);
}

.calc-range-orange::-webkit-slider-thumb {
  background: var(--primary-orange);
  box-shadow: 0 0 8px rgba(var(--primary-orange-rgb), 0.6);
}

/* Styled checkbox toggle switch */
.calc-switch-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsla(220, 30%, 5%, 0.4);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px dashed rgba(var(--primary-orange-rgb), 0.2);
}

.switch-label-wrap {
  display: flex;
  flex-direction: column;
}

.switch-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-white);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: var(--primary-orange);
}

input:checked + .slider-round:before {
  transform: translateX(22px);
}

/* Calculator Visual Output Display Panel */
.calc-results {
  background: radial-gradient(circle at top right, rgba(var(--primary-orange-rgb), 0.04), transparent),
              rgba(7, 9, 14, 0.5);
  border-radius: 16px;
  border: 1px solid var(--border-glass-glow);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.result-panel-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.result-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.metric-lbl {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.time-badge {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  transition: var(--transition-normal);
}

/* Est waktu colors depending on fast booster */
.speed-ultra {
  color: var(--primary-cyan);
  text-shadow: 0 0 20px rgba(var(--primary-cyan-rgb), 0.5);
}

.speed-fast {
  color: var(--primary-orange);
  text-shadow: 0 0 20px rgba(var(--primary-orange-rgb), 0.5);
}

.speed-standard {
  color: var(--text-white);
}

.cost-display {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
}

.calc-results-footer {
  margin-top: 2rem;
  width: 100%;
}

.btn-order-wa {
  width: 100%;
}

/* --------------------------------------------------------------------------
   9. VIDEO GALLERY SECTION
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-white);
}

.tab-active {
  background: var(--primary-cyan);
  color: #07090e;
  border-color: var(--primary-cyan);
  box-shadow: 0 4px 15px rgba(var(--primary-cyan-rgb), 0.3);
}

.tab-active:hover {
  background: var(--primary-cyan);
  color: #07090e;
}

/* Card lists */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass-glow);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4),
              0 0 25px rgba(var(--primary-cyan-rgb), 0.08);
}

/* Thumbnail block */
.card-thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-premium);
}

.video-card:hover .card-thumb {
  transform: scale(1.06);
}

/* Play button overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 14, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 2;
}

.video-card:hover .card-overlay {
  opacity: 1;
}

.play-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-orange);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(var(--primary-orange-rgb), 0.6);
  transform: scale(0.85);
  transition: var(--transition-normal);
}

.video-card:hover .play-btn-circle {
  transform: scale(1);
}

.play-btn-circle:hover {
  background: var(--primary-cyan);
  box-shadow: 0 0 20px rgba(var(--primary-cyan-rgb), 0.6);
}

.card-duration {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(4px);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 3;
}

/* Body content details */
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  margin-bottom: 0.4rem;
}

.card-category {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.card-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.card-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.empty-gallery-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  border: 1px dashed var(--border-glass);
  border-radius: 16px;
}

/* --------------------------------------------------------------------------
   10. CREATIVE CREW PIPELINE SECTION
   -------------------------------------------------------------------------- */
.pipeline-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Connector line behind pipeline cards for desktops */
.pipeline-cards-row::before {
  content: '';
  position: absolute;
  top: 110px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-cyan));
  z-index: 1;
  opacity: 0.25;
}

.pipe-card {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pipe-step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-midnight);
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(var(--primary-orange-rgb), 0.25);
  transition: var(--transition-normal);
}

.pipe-card:nth-child(even) .pipe-step-num {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(var(--primary-cyan-rgb), 0.25);
}

.pipe-card:hover .pipe-step-num {
  transform: scale(1.15);
  background: var(--primary-orange);
  color: #07090e;
  box-shadow: 0 0 25px rgba(var(--primary-orange-rgb), 0.6);
}

.pipe-card:nth-child(even):hover .pipe-step-num {
  background: var(--primary-cyan);
  color: #07090e;
  box-shadow: 0 0 25px rgba(var(--primary-cyan-rgb), 0.6);
}

.pipe-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pipe-body h4 {
  font-size: 1.15rem;
}

.pipe-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. IMMERSIVE VIDEO OVERLAY MODAL
   -------------------------------------------------------------------------- */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-premium);
  padding: 2rem;
}

.modal-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 92%;
  max-width: 850px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass-glow);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.4s var(--ease-premium);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.modal-active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.modal-close-btn:hover {
  background: var(--primary-orange);
  color: #07090e;
  border-color: var(--primary-orange);
  transform: rotate(90deg);
}

.modal-content-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Video iframe wrapper maintaining 16:9 ratio */
.modal-iframe-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-info-panel {
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  background: linear-gradient(180deg, var(--bg-card), rgba(7, 9, 14, 0.95));
}

.modal-info-left {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-title {
  font-size: 1.5rem;
  line-height: 1.25;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.modal-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-cta-box {
  background: rgba(var(--primary-orange-rgb), 0.05);
  border: 1px dashed rgba(var(--primary-orange-rgb), 0.2);
  padding: 1.2rem;
  border-radius: 12px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-cta-box p {
  font-size: 0.82rem;
  color: var(--text-white);
}

.modal-cta-btn {
  width: 100%;
  font-size: 0.88rem;
  padding: 0.7rem 1.2rem;
}

/* --------------------------------------------------------------------------
   12. FOOTER SECTION
   -------------------------------------------------------------------------- */
.main-footer {
  border-top: 1px solid var(--border-glass);
  background: #040508;
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-nav h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-cyan);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-detail-item svg {
  color: var(--primary-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Floating WA bubble bottom-right */
.whatsapp-bubble-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition-normal);
  animation: waPulse 2s infinite;
}

.whatsapp-bubble-float:hover {
  transform: scale(1.1) translateY(-5px);
  background: #128c7e;
  box-shadow: 0 8px 30px rgba(18, 140, 126, 0.6);
}

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0px rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0px rgba(37, 211, 102, 0); }
}

/* --------------------------------------------------------------------------
   13. MODERN SCROLL DRIVEN ENTRANCE ANIMATIONS (VIEWTIMELINE)
   -------------------------------------------------------------------------- */
/* Fade & Slide upward for elements as they enter view */
@keyframes revealEntrance {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Supported Browsers: Native view() timeline */
@supports (animation-timeline: view()) and (animation-range: entry) {
  .reveal-on-scroll {
    animation: revealEntrance auto linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
}

/* Fallback Observer styling (for Unsupported Browsers e.g. Firefox) */
@supports not ((animation-timeline: view()) and (animation-range: entry)) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    transition: opacity 0.8s var(--ease-premium), 
                transform 0.8s var(--ease-premium);
  }
  
  .reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE MEDIA QUERIES (TABLETS & PHONES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-title-lead {
    font-size: 3.2rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline-cards-row::before {
    display: none; /* Hide connector */
  }
  .pipeline-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4.5rem 0;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-tagline {
    margin: 0 auto;
  }
  .hero-stats-quick {
    justify-content: center;
  }
  .hero-visual-frame {
    order: -1; /* Graphic above text on phone */
  }
  
  /* Mobile Navigation burger menu show */
  .mobile-burger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    z-index: 1000;
    border-left: 1px solid var(--border-glass);
    transition: right 0.4s var(--ease-premium);
  }
  
  .nav-active {
    right: 0;
  }
  
  /* Burger Animation */
  .burger-active .burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .burger-active .burger-bar:nth-child(2) {
    opacity: 0;
  }
  .burger-active .burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .modal-content-grid {
    flex-direction: column;
  }
  .modal-info-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .whatsapp-bubble-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 580px) {
  .hero-title-lead {
    font-size: 2.5rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-cards-row {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   10. 3D GOLD VOLUMETRIC LIGHTNING LOGO
   ========================================================================== */
.logo-3d-container {
  display: inline-block;
  position: relative;
  perspective: 1000px;
}

.logo-3d-container.size-26 {
  width: 26px;
  height: 26px;
}

.logo-3d-container.size-28 {
  width: 28px;
  height: 28px;
}

.logo-3d-container.size-36 {
  width: 36px;
  height: 36px;
}

.logo-3d-bolt {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate3dLightning 5s linear infinite;
}

.bolt-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: none;
}

/* Extrusion layers (simulates real volumetric thickness with 3D translation) */
.layer-back-10 { transform: translateZ(-8.0px); fill: #522f00; stroke: #522f00; stroke-width: 0.6px; }
.layer-back-9  { transform: translateZ(-7.2px); fill: #613700; stroke: #613700; stroke-width: 0.6px; }
.layer-back-8  { transform: translateZ(-6.4px); fill: #6f3f00; stroke: #6f3f00; stroke-width: 0.6px; }
.layer-back-7  { transform: translateZ(-5.6px); fill: #7e4800; stroke: #7e4800; stroke-width: 0.6px; }
.layer-back-6  { transform: translateZ(-4.8px); fill: #8c5000; stroke: #8c5000; stroke-width: 0.6px; }
.layer-back-5  { transform: translateZ(-4.0px); fill: #9a5800; stroke: #9a5800; stroke-width: 0.6px; }
.layer-back-4  { transform: translateZ(-3.2px); fill: #a86000; stroke: #a86000; stroke-width: 0.6px; }
.layer-back-3  { transform: translateZ(-2.4px); fill: #b66800; stroke: #b66800; stroke-width: 0.6px; }
.layer-back-2  { transform: translateZ(-1.6px); fill: #c47000; stroke: #c47000; stroke-width: 0.6px; }
.layer-back-1  { transform: translateZ(-0.8px); fill: #d37900; stroke: #d37900; stroke-width: 0.6px; }

.layer-front {
  transform: translateZ(0px);
}

.layer-front .bolt-base {
  fill: #d37900; /* Outer gold rim */
  stroke: #ffe07d;
  stroke-width: 0.6px;
}

.layer-front .bolt-inset {
  fill: url(#goldFaceHeader); /* Default fallbacks or local gradient overrides */
}

/* Specific linear gradients for each document instance logo */
.layer-front .bolt-inset[fill="url(#goldFaceHeader)"] { fill: url(#goldFaceHeader); }
.layer-front .bolt-inset[fill="url(#goldFaceFooter)"] { fill: url(#goldFaceFooter); }
.layer-front .bolt-inset[fill="url(#goldFaceAdminLogin)"] { fill: url(#goldFaceAdminLogin); }
.layer-front .bolt-inset[fill="url(#goldFaceAdminHeader)"] { fill: url(#goldFaceAdminHeader); }
.layer-front .bolt-inset[fill="url(#goldFaceClientLogin)"] { fill: url(#goldFaceClientLogin); }
.layer-front .bolt-inset[fill="url(#goldFaceClientHeader)"] { fill: url(#goldFaceClientHeader); }

@keyframes rotate3dLightning {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
