/* ═══════════════════════════════════════════════════════════
   MECHRONIS — Premium Industrial Tech Corporate Site
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-deep: #030508;
  --bg-dark: #0a0e17;
  --bg-navy: #0d1526;
  --bg-card: rgba(12, 20, 40, 0.55);
  --metal: #1a2332;
  --metal-light: #2a3548;

  --neon-cyan: #00e5ff;
  --neon-blue: #3d7eff;
  --neon-purple: #a855f7;
  --neon-magenta: #e040fb;
  --neon-turquoise: #00d4aa;
  --neon-gold: #ffd54f;
  --gold-dim: #c9a227;

  --text-primary: #f0f4fc;
  --text-secondary: #8b9cb8;
  --text-muted: #5a6d8a;

  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.04);

  --font-display: 'Orbitron', sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Exo 2', sans-serif;

  --nav-height: 72px;
  --section-pad: clamp(80px, 12vw, 140px);
  --container: min(1200px, 92vw);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Background layers ─── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.scan-lines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.4;
}

/* ─── Typography utilities ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 var(--glass-highlight);
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 229, 255, 0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
}

.logo-mark {
  color: var(--neon-cyan);
  font-size: 1.2rem;
  text-shadow: 0 0 20px var(--neon-cyan);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.8; filter: brightness(1.3); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 4px;
  color: var(--neon-cyan) !important;
}

.nav-cta:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neon-cyan);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ─── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.btn span:first-child {
  position: relative;
  z-index: 2;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(168, 85, 247, 0.2));
  color: var(--text-primary);
  border: 1px solid rgba(0, 229, 255, 0.5);
  box-shadow:
    0 0 20px rgba(0, 229, 255, 0.15),
    inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
  transform: translateX(-100%);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 40px rgba(0, 229, 255, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--metal-light);
}

.btn-secondary:hover {
  color: var(--neon-purple);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.15);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 5vw 80px;
  z-index: 2;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.circuit-lines {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 70% 50%, rgba(0, 229, 255, 0.08), transparent),
    radial-gradient(ellipse 40% 30% at 30% 60%, rgba(168, 85, 247, 0.06), transparent);
}

.circuit-lines::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 15%;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 50%;
  animation: circuitSpin 30s linear infinite;
}

.circuit-lines::after {
  content: '';
  position: absolute;
  top: 45%;
  right: 18%;
  width: 300px;
  height: 300px;
  background:
    linear-gradient(0deg, transparent 49%, rgba(0, 229, 255, 0.2) 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(0, 229, 255, 0.2) 50%, transparent 51%);
  animation: circuitSpin 20s linear infinite reverse;
}

@keyframes circuitSpin {
  to { transform: rotate(360deg); }
}

.data-stream {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 40px,
    rgba(0, 229, 255, 0.02) 40px,
    rgba(0, 229, 255, 0.02) 41px
  );
  mask-image: linear-gradient(90deg, transparent, black 40%);
  animation: dataFlow 8s linear infinite;
}

@keyframes dataFlow {
  0% { background-position: 0 0; }
  100% { background-position: 0 200px; }
}

/* Hero 3D rotating showcase */
.hero-visual-wrap {
  position: absolute;
  top: 50%;
  right: 12%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
}

.hero-three-mount {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-width: 180px;
  min-height: 180px;
}

.hero-three-mount.is-ready .hero-three-canvas {
  opacity: 1;
}

.hero-three-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-visual-label {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-turquoise);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.hero-visual-label.is-visible {
  opacity: 0.85;
}

.hero-visual-label[data-model="gear"] {
  color: var(--neon-purple);
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

.hero-visual-label[data-model="robot"] {
  color: var(--neon-gold);
  text-shadow: 0 0 20px rgba(255, 213, 79, 0.35);
}

.hero-visual-label[data-model="module"] {
  color: var(--neon-cyan);
}

.hero-visual-label[data-model="assembly"] {
  color: var(--text-muted);
  letter-spacing: 0.22em;
  opacity: 0.65 !important;
  animation: assemblyPulse 1.2s ease-in-out infinite;
}

@keyframes assemblyPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-label[data-model="assembly"] {
    animation: none;
  }
}

.holo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 200px;
  height: 200px;
  border-color: rgba(0, 229, 255, 0.3);
  animation: ringPulse 4s ease-in-out infinite;
}

.ring-2 {
  width: 260px;
  height: 260px;
  border-color: rgba(168, 85, 247, 0.2);
  animation: ringPulse 4s ease-in-out infinite 1s;
}

.ring-3 {
  width: 320px;
  height: 320px;
  border-color: rgba(255, 213, 79, 0.15);
  animation: ringPulse 4s ease-in-out infinite 2s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.orbit-object {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}

.obj-1 {
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan);
  top: 35%;
  right: 25%;
  animation: orbit1 12s linear infinite;
}

.obj-2 {
  width: 6px;
  height: 6px;
  background: var(--neon-purple);
  box-shadow: 0 0 16px var(--neon-purple);
  top: 55%;
  right: 30%;
  animation: orbit2 18s linear infinite reverse;
}

.obj-3 {
  width: 10px;
  height: 10px;
  background: var(--neon-gold);
  box-shadow: 0 0 24px var(--neon-gold);
  top: 45%;
  right: 20%;
  animation: orbit3 15s linear infinite;
}

@keyframes orbit1 {
  0% { transform: rotate(0deg) translateX(140px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}

@keyframes orbit2 {
  0% { transform: rotate(0deg) translateX(180px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
}

@keyframes orbit3 {
  0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  margin-right: auto;
}

.hero-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-turquoise);
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.title-line {
  color: var(--text-primary);
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.1);
}

.title-accent {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.4));
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  margin-bottom: 24px;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-cyan);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-label.slogan {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--neon-gold);
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator span {
  width: 4px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--neon-cyan);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* ─── Sections common ─── */
.section {
  position: relative;
  z-index: 2;
  padding: var(--section-pad) 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section-header {
  margin-bottom: clamp(48px, 8vw, 72px);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.section-desc {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ─── About ─── */
.about {
  background: linear-gradient(180deg, transparent, rgba(13, 21, 38, 0.5) 50%, transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  padding: 32px;
}

.about-holo {
  position: absolute;
  inset: 20%;
  background: conic-gradient(
    from 0deg,
    var(--neon-cyan),
    var(--neon-purple),
    var(--neon-gold),
    var(--neon-turquoise),
    var(--neon-cyan)
  );
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(40px);
  animation: holoSpin 10s linear infinite;
}

@keyframes holoSpin {
  to { transform: rotate(360deg); }
}

.about-metrics {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  justify-content: center;
}

.metric {
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.metric:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.1);
}

.metric span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-cyan);
  display: block;
}

.metric small {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-text .lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.6;
  font-weight: 500;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.about-pillars {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-pillars li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 16px;
  background: rgba(0, 229, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  transition: all 0.3s;
}

.about-pillars li:hover {
  color: var(--neon-cyan);
  border-color: rgba(0, 229, 255, 0.25);
}

.pillar-icon {
  color: var(--neon-purple);
}

/* ─── Projects ─── */
.projects {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(168, 85, 247, 0.06), transparent);
}

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

.project-card {
  position: relative;
  padding: 32px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}

.project-card.featured {
  grid-column: span 2;
  grid-row: span 1;
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.project-card[data-accent="cyan"] .card-glow {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.4), transparent 60%);
}
.project-card[data-accent="purple"] .card-glow {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), transparent 60%);
}
.project-card[data-accent="gold"] .card-glow {
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.4), transparent 60%);
}
.project-card[data-accent="turquoise"] .card-glow {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.4), transparent 60%);
}
.project-card[data-accent="magenta"] .card-glow {
  background: linear-gradient(135deg, rgba(224, 64, 251, 0.4), transparent 60%);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.project-card:hover .card-glow {
  opacity: 1;
}

.project-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 229, 255, 0.1),
    inset 0 0 30px rgba(0, 229, 255, 0.03);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--neon-cyan);
  margin-bottom: 20px;
}

.card-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-footer {
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.card-tech {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ─── Solutions ─── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.solution-item {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(145deg, rgba(26, 35, 50, 0.6), rgba(10, 14, 23, 0.8));
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.solution-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.solution-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.solution-item:hover::before {
  transform: scaleX(1);
}

.solution-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--neon-gold);
  opacity: 0.6;
  margin-bottom: 12px;
}

.solution-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--neon-cyan);
  transition: color 0.3s, filter 0.3s;
}

.solution-icon svg {
  width: 100%;
  height: 100%;
}

.solution-item:hover .solution-icon {
  color: var(--neon-gold);
  filter: drop-shadow(0 0 10px rgba(255, 213, 79, 0.4));
}

.solution-item h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

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

/* ─── Vision ─── */
.vision {
  position: relative;
  padding: clamp(100px, 15vw, 180px) 0;
  text-align: center;
  overflow: hidden;
}

.vision-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vision-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(0, 229, 255, 0.05) 30deg,
    transparent 60deg,
    rgba(168, 85, 247, 0.05) 90deg,
    transparent 120deg,
    rgba(255, 213, 79, 0.04) 150deg,
    transparent 180deg
  );
  animation: raysSpin 30s linear infinite;
}

@keyframes raysSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.vision-quote {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.vision-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.vision-quote strong {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--neon-cyan);
  opacity: 0.3;
  line-height: 0;
  display: block;
}

.quote-mark.end {
  text-align: right;
  margin-top: -20px;
}

.vision-sub {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--neon-gold);
  text-transform: uppercase;
}

/* ─── Tech ─── */
.tech {
  background: linear-gradient(180deg, transparent, rgba(13, 21, 38, 0.4), transparent);
}

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

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.4s var(--ease-spring);
  cursor: default;
}

.tech-item:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow:
    0 0 30px rgba(0, 229, 255, 0.15),
    inset 0 0 20px rgba(0, 229, 255, 0.03);
}

.tech-icon {
  width: 56px;
  height: 56px;
  color: var(--neon-cyan);
  transition: color 0.3s, filter 0.3s;
}

.tech-item:hover .tech-icon {
  color: var(--neon-gold);
  filter: drop-shadow(0 0 12px rgba(255, 213, 79, 0.5));
}

.tech-item span {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--text-secondary);
}

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

/* ─── Contact ─── */
.contact {
  padding-bottom: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-desc {
  color: var(--text-secondary);
  margin: 20px 0 32px;
  max-width: 400px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--neon-cyan);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 16px 24px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 8px;
  transition: all 0.3s;
}

.contact-email:hover {
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.email-icon {
  font-size: 1.2rem;
}

.contact-form {
  padding: 40px;
  border-radius: 16px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9cb8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

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

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 2;
  padding: 48px 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(3, 5, 8, 0.8);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  opacity: 0.7;
  margin-bottom: 16px;
}

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

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-visual-wrap {
    right: 5%;
    width: 240px;
    height: 240px;
    opacity: 0.85;
  }

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

  .project-card.featured {
    grid-column: span 2;
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(3, 5, 8, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.4s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 60px);
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-visual-wrap {
    top: 18%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 200px;
    height: 200px;
    opacity: 0.5;
  }

  .hero-visual-label {
    font-size: 0.62rem;
    bottom: -4px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

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

  .project-card.featured {
    grid-column: span 1;
  }

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

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

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

  .contact-form {
    padding: 28px;
  }
}

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

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
