/* ============================================================
   AXON TECHNIC - Industrial Minimalism Design System
   ============================================================ */

/* ---------- CSS Custom Properties (Dark / Light) ---------- */
:root {
  /* Dark Theme (Default) — Midnight Gold */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-surface: #181818;
  --bg-surface-hover: #222222;
  --bg-elevated: #1e1e1e;

  --text-primary: #f5f0e8;
  --text-secondary: #a89f91;
  --text-muted: #6b6358;

  --accent-primary: #c9a84c;
  --accent-primary-hover: #dfc06a;
  --accent-secondary: #a48932;
  --accent-gold: #c9a84c;
  --accent-cta: #c9a84c;
  --accent-cta-hover: #dfc06a;

  --accent-rgb: 201, 168, 76;
  --cta-rgb: 201, 168, 76;
  --bg-frosted: 10, 10, 10;

  --border-color: rgba(var(--accent-rgb), 0.10);
  --border-color-hover: rgba(var(--accent-rgb), 0.22);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 40px rgba(var(--accent-rgb), 0.08);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-height: 72px;
  --container-max: 1280px;
  --section-padding: 120px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #faf8f4;
  --bg-secondary: #f3efe8;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f5f2ec;
  --bg-elevated: #ffffff;

  --text-primary: #1a1610;
  --text-secondary: #5c5347;
  --text-muted: #8a8078;

  --accent-primary: #9e8536;
  --accent-primary-hover: #b8992e;

  --accent-rgb: 158, 133, 54;
  --cta-rgb: 158, 133, 54;
  --bg-frosted: 250, 248, 244;

  --border-color: rgba(var(--accent-rgb), 0.10);
  --border-color-hover: rgba(var(--accent-rgb), 0.20);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.09);
  --shadow-glow: 0 0 30px rgba(var(--accent-rgb), 0.06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

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

a:hover { color: var(--accent-primary-hover); }

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner { text-align: center; }

.preloader__logo {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.preloader__bar {
  width: 200px;
  height: 3px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.preloader__progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
  animation: preloaderProgress 1.5s ease-in-out forwards;
}

@keyframes preloaderProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ---------- STICKY CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  pointer-events: none;
}

.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.sticky-cta__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--accent-cta);
  color: #fff;
  border-radius: 60px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(var(--cta-rgb), 0.35);
  transition: all var(--transition-base);
}

.sticky-cta__btn:hover {
  background: var(--accent-cta-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(var(--cta-rgb), 0.45);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(var(--bg-frosted), 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}


.navbar__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo:hover { opacity: 0.85; }

.navbar__logo-svg {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity var(--transition-fast);
}

.navbar__menu {
  display: flex;
  gap: 8px;
}

.navbar__link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text-primary);
  background: var(--border-color);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__theme {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.navbar__theme:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
  background: var(--border-color);
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }


.navbar__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  flex-shrink: 0;
  z-index: 1001;
}

.navbar__burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar__burger span:nth-child(1) { transform: translate(-50%, -7px); }
.navbar__burger span:nth-child(2) { transform: translate(-50%, 0); }
.navbar__burger span:nth-child(3) { transform: translate(-50%, 7px); }

.navbar__burger::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}

/* Active: >< chevrons like logo X */
.navbar__burger.active span {
  width: 11px;
  background: var(--accent-primary);
}

.navbar__burger.active span:nth-child(1) {
  transform-origin: right center;
  transform: translate(-13px, 0) rotate(-56deg);
}

.navbar__burger.active span:nth-child(2) {
  transform-origin: left center;
  transform: translate(2px, 0) rotate(56deg);
}

.navbar__burger.active span:nth-child(3) {
  transform-origin: right center;
  transform: translate(-13px, 0) rotate(56deg);
}

.navbar__burger.active::after {
  width: 11px;
  opacity: 1;
  transform: translate(2px, 0) rotate(-56deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--bg-frosted), 0.7) 0%,
    rgba(var(--bg-frosted), 0.5) 50%,
    rgba(var(--bg-frosted), 0.9) 100%
  );
  z-index: 1;
}

[data-theme="light"] .hero__video-overlay {
  background: linear-gradient(
    180deg,
    rgba(var(--bg-frosted), 0.8) 0%,
    rgba(var(--bg-frosted), 0.6) 50%,
    rgba(var(--bg-frosted), 0.95) 100%
  );
}

.hero__video-placeholder {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  padding-top: var(--nav-height);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--border-color);
  border: 1px solid var(--border-color-hover);
  border-radius: 60px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-family: var(--font-heading);
  margin-bottom: 24px;
}

.hero__title-line {
  display: block;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__title-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-primary);
}

[data-theme="light"] .hero__title-outline {
  -webkit-text-stroke: 2px var(--accent-primary);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border-color);
}

.hero__stat { text-align: center; }

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}

.hero__stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.hero__stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 40px;
  margin-bottom: 24px;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent-primary));
  animation: scrollLine 2s ease-in-out infinite;
}

.hero__scroll-arrow {
  animation: scrollArrow 2s ease-in-out infinite;
  margin-top: -1px;
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  60% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  60.01% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
}

@keyframes scrollArrow {
  0% { clip-path: inset(0 0 100% 0); opacity: 0; }
  39% { clip-path: inset(0 0 100% 0); opacity: 0; }
  40% { clip-path: inset(0 0 100% 0); opacity: 1; }
  50% { clip-path: inset(0 0 0% 0); opacity: 1; }
  60% { clip-path: inset(0 0 0% 0); opacity: 1; }
  60.01% { clip-path: inset(0 0 100% 0); opacity: 0; }
  100% { clip-path: inset(0 0 100% 0); opacity: 0; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn--sm { padding: 8px 18px; font-size: 0.8rem; }
.btn--lg { padding: 14px 28px; font-size: 0.95rem; }

.btn--primary {
  background: var(--accent-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color-hover);
}

.btn--ghost:hover {
  background: var(--border-color);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color-hover);
}

.btn--outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

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

/* ---------- TRUST BAR ---------- */
.trust-bar {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  transition: background var(--transition-fast);
}

.trust-bar__item:hover {
  background: var(--border-color);
}

.trust-bar__icon {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.trust-bar__text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}

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

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header--left { text-align: left; }

.section-header__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 60px;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-header__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- SERVICES (Bento Grid) ---------- */
.services {
  padding: var(--section-padding) 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  position: relative;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.bento-card--featured {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
}

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

.bento-card__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bento-card__pattern {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), 0.06) 0%, transparent 60%);
}

.bento-card__icon {
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.bento-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.bento-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 16px;
}

.bento-card__tags li {
  padding: 4px 12px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 60px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-primary);
}

.bento-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: auto;
  padding-top: 16px;
}

.bento-card__link:hover {
  gap: 10px;
}

/* ---------- 3D SHOWCASE ---------- */
.showcase-3d {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.showcase-3d__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.showcase-3d__content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 20px;
  line-height: 1.8;
}

.showcase-3d__specs {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.showcase-3d__spec {
  text-align: center;
}

.showcase-3d__spec-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.showcase-3d__spec-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* 3D Viewer */
.viewer-3d {
  width: 100%;
  aspect-ratio: 1;
  max-width: 450px;
  margin: 0 auto;
  perspective: 800px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  cursor: grab;
}

.viewer-3d:active { cursor: grabbing; }

.viewer-3d__object {
  width: 160px;
  height: 160px;
  position: relative;
  transform-style: preserve-3d;
  animation: autoRotate 12s linear infinite;
}

.viewer-3d__face {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.06);
  backdrop-filter: blur(4px);
}

.viewer-3d__face--front  { transform: translateZ(80px); }
.viewer-3d__face--back   { transform: rotateY(180deg) translateZ(80px); }
.viewer-3d__face--right  { transform: rotateY(90deg) translateZ(80px); }
.viewer-3d__face--left   { transform: rotateY(-90deg) translateZ(80px); }
.viewer-3d__face--top    { transform: rotateX(90deg) translateZ(80px); }
.viewer-3d__face--bottom { transform: rotateX(-90deg) translateZ(80px); }

@keyframes autoRotate {
  0% { transform: rotateX(-15deg) rotateY(0deg); }
  100% { transform: rotateX(-15deg) rotateY(360deg); }
}

.viewer-3d__controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- PORTFOLIO ---------- */
.portfolio {
  padding: var(--section-padding) 0;
}

.portfolio__filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.portfolio__filter {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 60px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.portfolio__filter:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
  background: var(--border-color);
}

.portfolio__filter.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio__item {
  transition: all var(--transition-base);
}

.portfolio__item.hidden {
  display: none;
}

.portfolio__item-inner {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  transition: all var(--transition-base);
}

.portfolio__item-inner:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio__item-img {
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
  overflow: hidden;
}

.portfolio__item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-surface) 100%);
}

.portfolio__item-content {
  padding: 20px 24px;
}

.portfolio__item-cat {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
}

.portfolio__item-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 6px 0 8px;
}

.portfolio__item-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.portfolio__item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--bg-frosted), 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio__item-inner:hover .portfolio__item-overlay {
  opacity: 1;
}

/* ---------- ABOUT ---------- */
.about {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__image-stack {
  position: relative;
}

.about__image--main {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.about__image-placeholder {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about__year {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent-primary);
  opacity: 0.3;
  line-height: 1;
}

.about__year-label {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 8px;
}

.about__image--accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 160px;
  height: 160px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 3px solid var(--bg-secondary);
}

.about__image-placeholder--accent {
  aspect-ratio: 1;
  background: var(--accent-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about__exp-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.about__exp-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about__text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__text p:last-child { margin-bottom: 0; }

.about__timeline {
  display: flex;
  gap: 0;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  overflow-x: auto;
}

.about__milestone {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.about__milestone::before {
  content: '';
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}

.about__milestone-year {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.about__milestone-text {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- CERTIFICATIONS ---------- */
.certifications {
  padding: var(--section-padding) 0;
}

.certifications__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cert-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-base);
}

.cert-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cert-card__badge {
  color: var(--accent-gold);
  margin-bottom: 20px;
  display: inline-flex;
}

.cert-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cert-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.cta-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 60px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-section__inner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.cta-section__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 12px;
  max-width: 500px;
}

.cta-section__actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: var(--section-padding) 0;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}

.contact__info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact__info-item h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact__info-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact__map {
  margin-top: 20px;
}

.contact__map-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.form-checkbox a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.form-checkbox__mark { display: none; }

/* ---------- FOOTER ---------- */
.footer {
  padding: 80px 0 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer__tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(var(--accent-rgb), 0.1);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__col ul a:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

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

.footer__legal a:hover {
  color: var(--accent-primary);
}

/* ---------- EQUIPMENT LIST ---------- */
.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
}

.equipment-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.equipment-item:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-surface-hover);
  transform: translateX(4px);
}

.equipment-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* ---------- ABOUT VISION ---------- */
.about__vision {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.about__vision-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 12px;
  font-style: italic;
}

/* ---------- PALETTE: ELECTRIC BLUE ---------- */
[data-palette="blue"] {
  --bg-primary: #080c14;
  --bg-secondary: #0f1729;
  --bg-surface: #131c2e;
  --bg-surface-hover: #1a2540;
  --bg-elevated: #162036;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --accent-primary: #2563eb;
  --accent-primary-hover: #3b82f6;
  --accent-secondary: #f97316;
  --accent-gold: #eab308;
  --accent-cta: #f97316;
  --accent-cta-hover: #fb923c;

  --accent-rgb: 37, 99, 235;
  --cta-rgb: 249, 115, 22;
  --bg-frosted: 8, 12, 20;
}

[data-palette="blue"][data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-elevated: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;

  --accent-rgb: 37, 99, 235;
  --cta-rgb: 234, 88, 12;
  --bg-frosted: 248, 250, 252;
}

/* ---------- PALETTE: BRAND TEAL ---------- */
[data-palette="brand"] {
  --bg-primary: #0b1015;
  --bg-secondary: #111920;
  --bg-surface: #161e27;
  --bg-surface-hover: #1c2530;
  --bg-elevated: #1a222b;

  --text-primary: #e8ecf0;
  --text-secondary: #8c939c;
  --text-muted: #555d67;

  --accent-primary: #0d84a5;
  --accent-primary-hover: #10a0c8;
  --accent-secondary: #5b5f65;
  --accent-gold: #0d84a5;
  --accent-cta: #0d84a5;
  --accent-cta-hover: #10a0c8;

  --accent-rgb: 13, 132, 165;
  --cta-rgb: 13, 132, 165;
  --bg-frosted: 11, 16, 21;

  --logo-grey: #8c939c;
}

[data-palette="brand"][data-theme="light"] {
  --bg-primary: #f5f7f9;
  --bg-secondary: #edf0f3;
  --bg-surface: #ffffff;
  --bg-surface-hover: #eef1f4;
  --bg-elevated: #ffffff;

  --text-primary: #1a1e24;
  --text-secondary: #4e5560;
  --text-muted: #8a919b;

  --accent-primary: #0a7393;
  --accent-primary-hover: #086381;

  --accent-rgb: 10, 115, 147;
  --cta-rgb: 10, 115, 147;
  --bg-frosted: 245, 247, 249;

  --logo-grey: #5b5f65;
}

/* ---------- PALETTE SWITCHER ---------- */
.navbar__palette {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid var(--border-color);
  border-radius: 60px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}

.navbar__palette:hover {
  border-color: var(--border-color-hover);
  background: var(--border-color);
}

.navbar__palette-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: all var(--transition-fast);
  position: relative;
  border: 2px solid transparent;
}

.navbar__palette-dot--gold {
  background: #c9a84c;
}

.navbar__palette-dot--blue {
  background: #2563eb;
}

.navbar__palette-dot--brand {
  background: #0d84a5;
}

.navbar__palette-dot.active {
  border-color: var(--text-primary);
  transform: scale(1.15);
}

.navbar__palette-dot:not(.active) {
  opacity: 0.4;
}

.navbar__palette-dot:not(.active):hover {
  opacity: 0.8;
}

/* ---------- ANIMATIONS ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .navbar__menu {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    z-index: 1000;
  }

  .navbar__menu.active {
    display: flex;
  }

  .navbar__link {
    font-size: 1.3rem;
    padding: 14px 28px;
  }

  .navbar__burger { display: flex; }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--featured {
    grid-row: span 1;
  }

  .certifications__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-3d__layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .showcase-3d__specs {
    justify-content: center;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .cta-section__inner {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }

  .cta-section__actions {
    justify-content: center;
  }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --nav-height: 64px;
  }

  .hero__title-line {
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .trust-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

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

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .portfolio__filters {
    gap: 6px;
  }

  .portfolio__filter {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .sticky-cta {
    bottom: 16px;
    right: 16px;
  }

  .sticky-cta__btn span {
    display: none;
  }

  .sticky-cta__btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero__stat-number {
    font-size: 2rem;
  }

  .trust-bar__inner {
    grid-template-columns: 1fr;
  }

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

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

  .showcase-3d__specs {
    flex-direction: column;
    gap: 16px;
  }

  .about__timeline {
    flex-direction: column;
    gap: 20px;
  }

  .about__milestone::before {
    display: none;
  }
}
