/* ── Base ─────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: rgba(6,182,212,0.3); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #090909; }
::-webkit-scrollbar-thumb { background: #333; }
::-webkit-scrollbar-thumb:hover { background: #06b6d4; }

/* ── Hero ─────────────────────────────────── */
.hero-grid {
  background-image:
    linear-gradient(rgba(6,182,212,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  background: radial-gradient(ellipse 60% 60% at 30% 50%, rgba(6,182,212,0.08) 0%, transparent 100%);
}

/* ── Page Header ──────────────────────────── */
.page-header {
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Scroll Reveal ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Card Glow ────────────────────────────── */
.card-glow {
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.card-glow:hover {
  box-shadow: 0 0 40px rgba(6,182,212,0.06), 0 0 80px rgba(6,182,212,0.03);
  border-color: rgba(6,182,212,0.3);
}

/* ── Tech Tags ────────────────────────────── */
.tech-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  margin: 0.2rem;
  color: #22d3ee;
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.15);
  transition: all 0.3s ease;
}
.tech-tag:hover {
  background: rgba(6,182,212,0.15);
  border-color: rgba(6,182,212,0.4);
}

/* ── Navigation ───────────────────────────── */
.nav-scrolled {
  background: rgba(5,5,5,0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-link-active {
  color: #22d3ee !important;
}

/* Nav inner bar above mobile menu overlay */
#navbar > div:first-child {
  position: relative;
  z-index: 50;
  background: inherit;
}

/* Mobile menu: translucent + blur, full viewport */
#mobile-menu {
  background: rgba(5, 5, 5, 0.85) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow-y: auto;
}
#mobile-menu > div {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Blur page content when menu is open */
body.menu-open > *:not(#navbar):not(script) {
  filter: blur(8px);
  transition: filter 0.3s ease;
  pointer-events: none;
}
body > *:not(#navbar):not(script) {
  transition: filter 0.3s ease;
}

/* ── Terminal Block ────────────────────────── */
.terminal-block {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Gradient Line ────────────────────────── */
.gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.3), transparent);
}

/* ── Gradient Text ────────────────────────── */
.gradient-text {
  background: linear-gradient(to right, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Image Placeholder ────────────────────── */
.img-placeholder {
  background: #0d0d0d;
  border: 1px dashed #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}
.img-placeholder:hover {
  border-color: rgba(6,182,212,0.3);
}

/* ── Team Card ────────────────────────────── */
.team-card {
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.2s ease;
}
.team-card:hover {
  transform: translateY(-2px);
}

/* ── Team Modal ──────────────────────────── */
#team-modal {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
#team-modal.active {
  opacity: 1;
  pointer-events: auto;
}
#team-modal-content {
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}
#team-modal.active #team-modal-content {
  transform: translateY(0) scale(1);
}
#service-modal {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
#service-modal.active {
  opacity: 1;
  pointer-events: auto;
}
#service-modal-content {
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}
#service-modal.active #service-modal-content {
  transform: translateY(0) scale(1);
}

body.modal-open > *:not(#team-modal):not(#service-modal):not(script) {
  filter: blur(8px);
  pointer-events: none;
}

/* ── CTA Pulse ────────────────────────────── */
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6,182,212,0.2); }
  50% { box-shadow: 0 0 20px 2px rgba(6,182,212,0.1); }
}
.cta-pulse:hover {
  animation: subtle-pulse 2s ease-in-out infinite;
}
