/* ==========================================================================
   DNA Codecraft - CORE DESIGN SYSTEM
   ========================================================================== */

/* Typography & Base Tokens */
:root {
  --font-heading:
    "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fira Code", "Courier New", Courier, monospace;

  /* Color Palette - Light Theme (Default) */
  --bg-dark: #f9fafb;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f4f6;
  --border-color: rgba(var(--overlay-rgb), 0.08);
  --border-color-hover: rgba(var(--overlay-rgb), 0.15);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  /* Theme Accents (Corporate Blues) */
  --color-build: #1d4ed8;
  --color-build-rgb: 29, 78, 216;
  --color-design: #2563eb;
  --color-design-rgb: 37, 99, 235;
  --color-evolve: #3b82f6;
  --color-evolve-rgb: 59, 130, 246;
  
  /* Dynamic RGB for Overlays (Shadows, Glows) */
  --overlay-rgb: 0, 0, 0;
  --nav-bg-rgb: 255, 255, 255;
  /* Global Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1200px;
}

[data-theme="dark"] {
  /* Color Palette - Dark Theme */
  --bg-dark: #07090e;
  --bg-card: rgba(13, 18, 30, 0.55);
  --bg-card-hover: rgba(20, 28, 46, 0.75);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Theme Accents (Neon Original) */
  --color-build: #00f0ff;
  --color-build-rgb: 0, 240, 255;
  --color-design: #d946ef;
  --color-design-rgb: 217, 70, 239;
  --color-evolve: #10b981;
  --color-evolve-rgb: 16, 185, 129;

  /* Dynamic RGB for Overlays */
  --overlay-rgb: 255, 255, 255;
  --nav-bg-rgb: 7, 9, 14;

}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--overlay-rgb), 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--overlay-rgb), 0.2);
}

/* Selection highlight */
::selection {
  background: rgba(var(--color-build-rgb), 0.3);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Helper Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-build {
  color: var(--color-build);
}
.text-design {
  color: var(--color-design);
}
.text-evolve {
  color: var(--color-evolve);
}
.text-accent-dim {
  color: rgba(var(--overlay-rgb), 0.5);
  font-weight: 300;
  margin-left: 0.25rem;
}

/* Background Canvas */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Subtle Glowing Background Spots */
body::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(var(--color-build-rgb), 0.08) 0%,
    rgba(var(--overlay-rgb), 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: absolute;
  bottom: 20%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(var(--color-design-rgb), 0.05) 0%,
    rgba(var(--overlay-rgb), 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   NAVIGATION BAR (GLASSMORPHIC)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  background: rgba(var(--nav-bg-rgb), 0.7);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  height: 70px;
  background: rgba(var(--nav-bg-rgb), 0.9);
  box-shadow: 0 10px 30px rgba(var(--overlay-rgb), 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-item {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-build), var(--color-design));
  transition: var(--transition-fast);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

.nav-item.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Button Navigation */
.btn-nav {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: 1px solid rgba(var(--overlay-rgb), 0.15);
  background: rgba(var(--overlay-rgb), 0.03);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-nav:hover {
  background: var(--color-build);
  color: #ffffff;
  border-color: var(--color-build);
  box-shadow: 0 0 15px rgba(29, 78, 216, 0.3);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION (BLUEPRINT GRID + TYPOGRAPHY)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
}

.hero-tagline-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(var(--overlay-rgb), 0.03);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-build);
  box-shadow: 0 0 8px var(--color-build);
  animation: pulseGlow 2s infinite;
}

.badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.title-word {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.title-word:hover {
  transform: scale(1.05) translateY(-5px);
}

.title-word.build {
  background: linear-gradient(135deg, var(--color-build) 30%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(29, 78, 216, 0.1);
}

.title-word.design {
  background: linear-gradient(135deg, var(--color-design) 30%, var(--color-build) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(37, 99, 235, 0.1);
}

.title-word.evolve {
  background: linear-gradient(135deg, var(--color-evolve) 30%, var(--color-design) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button UI Components */
.btn {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-build), #1d4ed8);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 20px rgba(var(--color-build-rgb), 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(var(--color-build-rgb), 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(var(--overlay-rgb), 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(var(--overlay-rgb), 0.06);
  border-color: rgba(var(--overlay-rgb), 0.2);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Blueprint Grid Background Pattern */
.blueprint-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(var(--overlay-rgb), 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--overlay-rgb), 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  z-index: -3;
  pointer-events: none;
}

.blueprint-coordinates-left,
.blueprint-coordinates-right {
  position: absolute;
  bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  z-index: 10;
}

.blueprint-coordinates-left {
  left: 2rem;
}

.blueprint-coordinates-right {
  right: 2rem;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(
    180deg,
    var(--text-primary) 0%,
    var(--text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   TENTANG KAMI - BENTO GRID
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    300px circle at var(--x, 0) var(--y, 0),
    rgba(var(--overlay-rgb), 0.04),
    transparent 40%
  );
  pointer-events: none;
  z-index: 1;
}

.bento-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: 0 10px 30px rgba(var(--overlay-rgb), 0.4);
}

.bento-wide {
  grid-column: span 2;
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-icon-about {
  font-size: 2rem;
}

.bento-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

.bento-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.bento-desc.text-large {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.bento-tag-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bento-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  background: rgba(var(--overlay-rgb), 0.02);
  border: 1px solid var(--border-color);
}

.bento-tag.tag-build {
  color: var(--color-build);
  border-color: rgba(var(--color-build-rgb), 0.2);
  background: rgba(var(--color-build-rgb), 0.02);
}

.bento-tag.tag-design {
  color: var(--color-design);
  border-color: rgba(var(--color-design-rgb), 0.2);
  background: rgba(var(--color-design-rgb), 0.02);
}

.bento-tag.tag-evolve {
  color: var(--color-evolve);
  border-color: rgba(var(--color-evolve-rgb), 0.2);
  background: rgba(var(--color-evolve-rgb), 0.02);
}

.interactive-blueprint-mini {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--overlay-rgb), 0.03);
  background: rgba(var(--overlay-rgb), 0.3);
}

.mini-blueprint-svg {
  width: 100%;
  height: auto;
}

.blueprint-wave-1 {
  animation: moveWave1 8s linear infinite;
}

.blueprint-wave-2 {
  animation: moveWave2 8s linear infinite;
}

@keyframes moveWave1 {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 40;
  }
}

@keyframes moveWave2 {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -40;
  }
}

.tech-stack-circles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tech-badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem;
  background: rgba(var(--overlay-rgb), 0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.tech-badge:hover {
  background: rgba(var(--overlay-rgb), 0.08);
  border-color: rgba(var(--overlay-rgb), 0.2);
  transform: translateY(-2px);
}

/* Stats Bento Card */
.bento-stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.bento-stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-build);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   PERKHIDMATAN KAMI - TABS & SIMULATOR
   ========================================================================== */
.services-layout {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 3rem;
}

.services-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-tab-btn {
  background: rgba(var(--overlay-rgb), 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}

.service-tab-btn:hover {
  background: rgba(var(--overlay-rgb), 0.03);
  border-color: rgba(var(--overlay-rgb), 0.12);
}

.service-tab-btn.active {
  background: rgba(var(--overlay-rgb), 0.03);
  border-color: rgba(var(--overlay-rgb), 0.2);
  box-shadow: 0 4px 20px rgba(var(--overlay-rgb), 0.2);
}

.tab-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: var(--transition-fast);
}

.service-tab-btn.active .tab-indicator {
  opacity: 1;
}

.indicator-build {
  background: var(--color-build);
}
.indicator-design {
  background: var(--color-design);
}
.indicator-evolve {
  background: var(--color-evolve);
}

.tab-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
}

.service-tab-btn.active .tab-num {
  color: var(--text-primary);
}

.tab-label-group {
  display: flex;
  flex-direction: column;
}

.tab-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.tab-action {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.tab-icon {
  font-size: 1.5rem;
  margin-left: auto;
  opacity: 0.4;
  transition: var(--transition-fast);
}

.service-tab-btn.active .tab-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Detail Area & Simulator Grid */
.services-content-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  backdrop-filter: blur(8px);
}

.services-detail-pane {
  position: relative;
}

.service-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s 0.4s;
}

.service-pane.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.pane-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.pill-build {
  background: rgba(var(--color-build-rgb), 0.15);
  color: var(--color-build);
  border: 1px solid rgba(var(--color-build-rgb), 0.3);
}
.pill-design {
  background: rgba(var(--color-design-rgb), 0.15);
  color: var(--color-design);
  border: 1px solid rgba(var(--color-design-rgb), 0.3);
}
.pill-evolve {
  background: rgba(var(--color-evolve-rgb), 0.15);
  color: var(--color-evolve);
  border: 1px solid rgba(var(--color-evolve-rgb), 0.3);
}

.pane-lead {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.pane-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pane-list li {
  display: flex;
  gap: 1rem;
}

.list-icon-wrapper {
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

.pane-list h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pane-list p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Services Interactive Simulator */
.services-simulator {
  display: flex;
  align-items: center;
}

.simulator-window {
  width: 100%;
  background: #090c12;
  border: 1px solid rgba(var(--overlay-rgb), 0.08);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(var(--overlay-rgb), 0.6);
  overflow: hidden;
}

.simulator-header {
  background: #0d1117;
  border-bottom: 1px solid rgba(var(--overlay-rgb), 0.06);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dots-group {
  display: flex;
  gap: 0.4rem;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background-color: #ef4444;
}
.dot-yellow {
  background-color: #f59e0b;
}
.dot-green {
  background-color: #10b981;
}

.window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.window-action-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.simulator-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow-x: auto;
  min-height: 250px;
}

/* Syntax styling for simulator code */
.code-editor-sim {
  color: #e2e8f0;
  line-height: 1.6;
}

.token-comment {
  color: #64748b;
  font-style: italic;
}
.token-keyword {
  color: #f43f5e;
}
.token-string {
  color: #10b981;
}
.token-number {
  color: #f59e0b;
}
.token-function {
  color: #00f0ff;
}

/* Interactive simulator designer mockup details */
.design-preview-sim {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.canvas-wireframe {
  height: 140px;
  border: 1px dashed rgba(217, 70, 239, 0.4);
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 70, 239, 0.02);
  overflow: hidden;
}

.wireframe-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(217, 70, 239, 0.15) 1px,
    transparent 1px
  );
  background-size: 10px 10px;
}

.mock-ui-card {
  width: 60%;
  padding: 0.75rem;
  border-radius: 6px;
  background: rgba(var(--overlay-rgb), 0.05);
  border: 1px solid rgba(var(--overlay-rgb), 0.1);
  z-index: 2;
  text-align: center;
  animation: floatElement 3s ease-in-out infinite;
}

.sim-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sim-slider-group label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.slider-range {
  width: 100%;
  height: 4px;
  background: rgba(var(--overlay-rgb), 0.1);
  border-radius: 2px;
  position: relative;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 70%;
  background: var(--color-design);
  border-radius: 2px;
}

/* AI simulated terminal styling */
.ai-terminal-sim {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.terminal-prompt-line {
  display: flex;
  gap: 0.5rem;
  color: var(--color-evolve);
}

.terminal-input {
  color: #ffffff;
}

.terminal-response {
  color: var(--text-secondary);
  border-left: 2px solid rgba(16, 185, 129, 0.3);
  padding-left: 0.75rem;
  margin-left: 0.25rem;
  animation: blinkCursor 0.1s steps(2, start) infinite;
}

@keyframes blinkCursor {
  to {
    border-left-color: transparent;
  }
}

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

/* ==========================================================================
   MENGAPA MEMILIH KAMI - BENTO GRIDS & HOVER EFFECTS
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: 0 15px 35px rgba(var(--overlay-rgb), 0.4);
}

.why-card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 1px solid rgba(var(--overlay-rgb), 0.1);
  background: rgba(var(--overlay-rgb), 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.why-card:hover .why-card-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.border-build {
  border-color: rgba(var(--color-build-rgb), 0.3);
  background: rgba(var(--color-build-rgb), 0.02);
}
.border-design {
  border-color: rgba(var(--color-design-rgb), 0.3);
  background: rgba(var(--color-design-rgb), 0.02);
}
.border-evolve {
  border-color: rgba(var(--color-evolve-rgb), 0.3);
  background: rgba(var(--color-evolve-rgb), 0.02);
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.why-card-bg-glow {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.why-card:hover .why-card-bg-glow {
  opacity: 0.15;
}

.glow-build {
  background: var(--color-build);
}
.glow-design {
  background: var(--color-design);
}
.glow-evolve {
  background: var(--color-evolve);
}

/* ==========================================================================
   PORTFOLIO GALLERY SHOWCASE
   ========================================================================== */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(var(--overlay-rgb), 0.02);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(var(--overlay-rgb), 0.2);
}

.filter-btn.active {
  background: var(--color-build);
  color: #ffffff;
  border-color: var(--color-build);
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.portfolio-card-inner:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--overlay-rgb), 0.15);
  box-shadow: 0 15px 35px rgba(var(--overlay-rgb), 0.5);
}

.portfolio-img-placeholder {
  height: 200px;
  background: #0b0e14;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.blueprint-vector {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.technical-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 14, 0.2) 0%,
    rgba(7, 9, 14, 0.8) 100%
  );
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.portfolio-card-inner:hover .technical-overlay {
  opacity: 1;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.tech-icon-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(var(--overlay-rgb), 0.03);
  border: 1px solid rgba(var(--overlay-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-primary);
  align-self: flex-end;
  transition: var(--transition-smooth);
}

.portfolio-card-inner:hover .tech-icon-circle {
  background: #ffffff;
  color: var(--bg-dark);
  transform: rotate(360deg);
}

.portfolio-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.portfolio-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.portfolio-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.portfolio-footer-links {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.portfolio-tool-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  background: rgba(var(--overlay-rgb), 0.02);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

/* ==========================================================================
   CONTACT SECTION - BLUEPRINT FORM & CHAT
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  z-index: 10;
}

.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.contact-method-card:hover {
  transform: translateX(4px);
  background: var(--bg-card-hover);
  border-color: rgba(var(--overlay-rgb), 0.12);
}

.method-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.bg-build {
  background: rgba(var(--color-build-rgb), 0.15);
  border: 1px solid rgba(var(--color-build-rgb), 0.3);
  color: var(--color-build);
}
.bg-evolve {
  background: rgba(var(--color-evolve-rgb), 0.15);
  border: 1px solid rgba(var(--color-evolve-rgb), 0.3);
  color: var(--color-evolve);
}

.method-details {
  display: flex;
  flex-direction: column;
}

.method-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.method-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Blueprint Form Card */
.contact-right {
  display: flex;
  align-items: center;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  width: 100%;
  position: relative;
  backdrop-filter: blur(16px);
}

.form-blueprint-border {
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px dashed rgba(0, 240, 255, 0.15);
  border-radius: 8px;
  pointer-events: none;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(var(--overlay-rgb), 0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-build);
  box-shadow: 0 0 10px rgba(var(--color-build-rgb), 0.2);
  background: rgba(var(--overlay-rgb), 0.04);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-group select option {
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding-top: 80px;
  position: relative;
  z-index: 10;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 380px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.logo-svg-small {
  width: 32px;
  height: 32px;
}

.footer-intro-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-right {
  display: flex;
  gap: 5rem;
  flex-wrap: wrap;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-group h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-links-group a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links-group a:hover {
  color: var(--text-primary);
}

.footer-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(var(--overlay-rgb), 0.03);
  padding: 2rem 0;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-links a {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   ANIMATIONS & REVEAL STATES
   ========================================================================== */

/* Keyframes */
@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.8;
    box-shadow: 0 0 8px rgba(var(--color-build-rgb), 0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 16px rgba(var(--color-build-rgb), 0.9);
  }
}

/* Scroll trigger animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero opening transitions */
.animate-fade {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tagline-badge.animate-fade {
  animation-delay: 0.2s;
}
.hero-title.animate-reveal {
  animation-delay: 0.4s;
}
.hero-lead.animate-fade {
  animation-delay: 0.6s;
}
.hero-buttons.animate-fade {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .services-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .service-tab-btn {
    flex: 1;
    min-width: 220px;
  }

  .services-content-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .services-detail-pane {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .service-pane {
    position: absolute;
  }

  .service-pane.active {
    position: relative;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .navbar {
    height: 70px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition:
      transform var(--transition-smooth),
      opacity var(--transition-smooth);
    z-index: 99;
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-item {
    font-size: 1.25rem;
  }

  .nav-actions .btn-nav {
    display: none;
  }

  .hero-title {
    font-size: 3rem;
    margin-top: 2rem;
  }

  .hero-lead {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .bento-card {
    padding: 1.75rem;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  background: rgba(var(--overlay-rgb), 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: rgba(var(--overlay-rgb), 0.1);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .bento-stats-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .why-card {
    padding: 2rem 1.5rem;
  }

  .contact-form-card {
    padding: 2rem 1.5rem;
  }

  .footer-right {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}
