/* ══════════════════════════════════════
   HIDDEN NAVBAR & DOTS
   ══════════════════════════════════════ */
.navbar--hidden {
  transform: translateY(-100%);
  pointer-events: none;
  opacity: 0;
}

.slide-dots[style*="display:none"],
.scroll-progress[style*="display:none"] {
  display: none !important;
}

/* ══════════════════════════════════════
   IMMERSIVE HERO
   ══════════════════════════════════════ */
.hero--immersive {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero--immersive .hero__content--centered {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* AI Brain Canvas */
.ai-brain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Matrix Rain Canvas */
.ai-matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.12;
}

/* ── Logo Badge ── */
.hero__logo-badge {
  position: relative;
  z-index: 5;
  margin-bottom: 2rem;
}

.hero__logo-img {
  height: clamp(70px, 10vw, 110px);
  width: auto;
  filter: drop-shadow(0 0 30px rgba(0, 212, 170, 0.4)) drop-shadow(0 0 60px rgba(0, 212, 170, 0.15)) brightness(1.5);
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(0, 212, 170, 0.4)) drop-shadow(0 0 60px rgba(0, 212, 170, 0.15)) brightness(1.5); }
  50% { filter: drop-shadow(0 0 50px rgba(0, 212, 170, 0.6)) drop-shadow(0 0 100px rgba(0, 212, 170, 0.25)) brightness(1.7); }
}

/* ── Tag ── */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  background: rgba(0, 212, 170, 0.05);
}

.hero__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero__tag-separator {
  opacity: 0.3;
}

/* ── Hero Headlines ── */
.hero__line-sm {
  display: block;
  font-family: 'Syne', var(--font);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.hero__line-lg {
  display: block;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.95;
  margin-bottom: 0.2rem;
}

.hero__line-glow {
  display: block;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.95;
  color: rgba(255, 255, 255, 0.08);
  -webkit-text-stroke: 1.5px rgba(0, 212, 170, 0.4);
  text-shadow: 0 0 60px rgba(0, 212, 170, 0.15);
  position: relative;
}

/* ── Description ── */
.hero__desc {
  max-width: 580px;
  font-size: 1.05rem;
  color: var(--color-text-dim);
  line-height: 1.7;
  margin: 2rem 0 2.5rem;
}

/* ── Actions ── */
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn--glow {
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.3), 0 0 60px rgba(0, 212, 170, 0.1);
}

.btn--glow:hover {
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.5), 0 0 80px rgba(0, 212, 170, 0.2);
}

/* ── Scroll Hint ── */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero__scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(0, 212, 170, 0.3);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: 0.2; }
}

/* ══════════════════════════════════════
   HUD (HEADS-UP DISPLAY)
   ══════════════════════════════════════ */
.hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hud__corner {
  position: absolute;
  width: 60px;
  height: 60px;
  border-color: rgba(0, 212, 170, 0.2);
  border-style: solid;
  border-width: 0;
}

.hud__corner--tl { top: 30px; left: 30px; border-top-width: 2px; border-left-width: 2px; }
.hud__corner--tr { top: 30px; right: 30px; border-top-width: 2px; border-right-width: 2px; }
.hud__corner--bl { bottom: 80px; left: 30px; border-bottom-width: 2px; border-left-width: 2px; }
.hud__corner--br { bottom: 80px; right: 30px; border-bottom-width: 2px; border-right-width: 2px; }

.hud__scanline {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, rgba(0, 212, 170, 0.15) 50%, transparent 90%);
  animation: hudScan 8s linear infinite;
  opacity: 0.6;
}

@keyframes hudScan {
  0% { top: 5%; }
  100% { top: 95%; }
}

/* ══════════════════════════════════════
   ABOUT: ABSTRACT AI VISUAL (replaces robot)
   ══════════════════════════════════════ */
.about__ai-visual {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 212, 170, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 30%, rgba(124, 92, 252, 0.04) 0%, transparent 70%),
    var(--color-bg-card);
}

.about__neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Glowing Orb in center */
.about__ai-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  z-index: 1;
}

.about__ai-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.about__ai-ring--1 {
  border-color: rgba(0, 212, 170, 0.25);
  animation: orbRing 6s linear infinite;
}

.about__ai-ring--2 {
  inset: -20px;
  border-color: rgba(124, 92, 252, 0.15);
  animation: orbRing 10s linear infinite reverse;
  border-style: dashed;
}

.about__ai-ring--3 {
  inset: -45px;
  border-color: rgba(255, 107, 157, 0.1);
  animation: orbRing 14s linear infinite;
  border-style: dotted;
}

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

.about__ai-core-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent) 0%, rgba(0, 212, 170, 0.4) 40%, transparent 70%);
  box-shadow: 0 0 40px var(--color-accent), 0 0 80px rgba(0, 212, 170, 0.3), 0 0 120px rgba(0, 212, 170, 0.1);
  animation: coreBreath 3s ease-in-out infinite;
}

@keyframes coreBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* ══════════════════════════════════════
   FLOATING PARTICLES (shared)
   ══════════════════════════════════════ */
.ai-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.ai-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: aiFloat linear infinite;
}

.ai-particle--dot {
  width: 3px;
  height: 3px;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent), 0 0 20px rgba(0, 212, 170, 0.3);
}

.ai-particle--ring {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(0, 212, 170, 0.3);
  background: transparent;
}

.ai-particle--square {
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--color-accent-2);
  box-shadow: 0 0 8px var(--color-accent-2);
}

.ai-particle--hex {
  width: 6px;
  height: 6px;
  background: var(--color-accent-3);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 10px var(--color-accent-3);
}

@keyframes aiFloat {
  0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
  10% { opacity: 1; transform: translateY(80vh) translateX(10px) scale(1); }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) translateX(-20px) scale(0.5); opacity: 0; }
}

/* ══════════════════════════════════════
   DATA STREAMS (Services)
   ══════════════════════════════════════ */
.ai-data-streams {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ai-data-streams span {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
  opacity: 0;
  animation: dataStream 4s linear infinite;
  border-radius: 2px;
}

.ai-data-streams span:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 3.5s; }
.ai-data-streams span:nth-child(2) { left: 15%; animation-delay: 0.8s; animation-duration: 4.2s; }
.ai-data-streams span:nth-child(3) { left: 30%; animation-delay: 1.5s; animation-duration: 3.8s; }
.ai-data-streams span:nth-child(4) { left: 45%; animation-delay: 0.3s; animation-duration: 4.5s; }
.ai-data-streams span:nth-child(5) { left: 60%; animation-delay: 2s; animation-duration: 3.2s; }
.ai-data-streams span:nth-child(6) { left: 72%; animation-delay: 1.2s; animation-duration: 4s; }
.ai-data-streams span:nth-child(7) { left: 85%; animation-delay: 0.6s; animation-duration: 3.6s; }
.ai-data-streams span:nth-child(8) { left: 95%; animation-delay: 1.8s; animation-duration: 4.8s; }

@keyframes dataStream {
  0% { top: -80px; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { top: 100%; opacity: 0; }
}

/* ── Floating Binary (Products) ── */
.ai-binary-float {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ai-binary-char {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--color-accent);
  opacity: 0;
  animation: binaryFloat linear infinite;
  user-select: none;
}

@keyframes binaryFloat {
  0% { transform: translateY(110%) rotate(0deg); opacity: 0; }
  8% { opacity: 0.25; }
  92% { opacity: 0.15; }
  100% { transform: translateY(-10%) rotate(20deg); opacity: 0; }
}

/* ══════════════════════════════════════
   GLITCH TEXT
   ══════════════════════════════════════ */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch::before {
  color: #00d4aa;
  animation: glitch1 4s infinite linear;
  clip-path: inset(0 0 60% 0);
}

.glitch::after {
  color: #7c5cfc;
  animation: glitch2 4s infinite linear;
  clip-path: inset(40% 0 0 0);
}

@keyframes glitch1 {
  0%, 89%, 91%, 93%, 95%, 100% { opacity: 0; transform: translate(0); }
  90% { opacity: 0.8; transform: translate(-4px, -2px); }
  92% { opacity: 0.6; transform: translate(3px, 1px); }
  94% { opacity: 0.7; transform: translate(-2px, 2px); }
}

@keyframes glitch2 {
  0%, 89%, 91%, 93%, 95%, 100% { opacity: 0; transform: translate(0); }
  90% { opacity: 0.7; transform: translate(4px, 2px); }
  92% { opacity: 0.8; transform: translate(-3px, -1px); }
  94% { opacity: 0.6; transform: translate(2px, -2px); }
}

/* ══════════════════════════════════════
   SECTION ENHANCEMENTS
   ══════════════════════════════════════ */

/* Section label pulse dot */
.section-label::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
  margin-left: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
  vertical-align: middle;
}

/* Card circuit border */
.card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--circuit-angle, 0deg), transparent 0%, var(--color-accent) 10%, transparent 20%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover::before {
  opacity: 0.5;
  animation: circuitBorder 3s linear infinite;
}

@keyframes circuitBorder {
  to { --circuit-angle: 360deg; }
}

@property --circuit-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* Service card icon pulse */
.service-card:hover .service-card__icon {
  animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(0, 212, 170, 0); }
}

/* Stat counter glow */
.stat-number {
  text-shadow: 0 0 20px rgba(0, 212, 170, 0.4), 0 0 40px rgba(0, 212, 170, 0.2);
}

/* Vision pillar connection */
.vision__pillars { position: relative; }

.vision__pillars::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.15), rgba(124, 92, 252, 0.15), transparent);
  z-index: 0;
}

/* Heading shimmer */
.section-header h2 {
  position: relative;
  overflow: hidden;
}

.section-header h2::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.08), transparent);
  animation: headingShimmer 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes headingShimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

/* Portfolio holographic shine */
.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(0, 212, 170, 0.06) 45%, rgba(124, 92, 252, 0.06) 50%, rgba(255, 107, 157, 0.06) 55%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

.portfolio-card:hover::after {
  opacity: 1;
}

/* Matrix Rain Canvas (Vision) */
.matrix-rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 767px) {
  .vision__pillars::before { display: none; }
  .hud__corner { width: 30px; height: 30px; }
  .hud__corner--tl { top: 15px; left: 15px; }
  .hud__corner--tr { top: 15px; right: 15px; }
  .hud__corner--bl { bottom: 60px; left: 15px; }
  .hud__corner--br { bottom: 60px; right: 15px; }
  .about__ai-visual { height: 320px; }
  .about__ai-orb { width: 140px; height: 140px; }
  .about__ai-ring--2 { inset: -12px; }
  .about__ai-ring--3 { inset: -28px; }
}

/* ══════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ai-brain-canvas,
  .ai-matrix-canvas,
  .ai-particles,
  .ai-data-streams,
  .ai-binary-float,
  .matrix-rain-canvas,
  .about__neural-canvas {
    display: none;
  }
  .hud__scanline { animation: none; }
  .hero__logo-img { animation: none; }
  .about__ai-ring { animation: none; }
  .about__ai-core-glow { animation: none; }
  .hero__scroll-wheel { animation: none; }
  .glitch::before,
  .glitch::after { display: none; }
}
