/* ================================================================
   NovaFox Labs — Main Stylesheet
   Extracted from index.html for clean separation of concerns.
================================================================ */

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

/* ── Grid background ─────────────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Glows ───────────────────────────────────────────────────── */
.glow-accent { box-shadow: 0 0 40px rgba(0,255,170,0.15), 0 0 80px rgba(0,255,170,0.05); }
.glow-text   { text-shadow: 0 0 30px rgba(0,255,170,0.3); }

/* ── Keyframe animations ─────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(1deg); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 0.5; }
  50%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.animate-float      { animation: float 6s ease-in-out infinite; }
.animate-pulse-ring { animation: pulse-ring 3s ease-in-out infinite; }

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal, .reveal-left {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal      { transform: translateY(28px); }
.reveal-left { transform: translateX(-28px); }
.reveal.visible, .reveal-left.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── Navbar ──────────────────────────────────────────────────── */
.nav-scrolled {
  background: rgba(10,10,15,0.97) !important;
  box-shadow: 0 1px 32px rgba(0,0,0,0.55);
}
.nav-link {
  position: relative;
  opacity: 0.6;
  transition: opacity 0.25s;
  text-decoration: none;
  color: #e4e4e7;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: #00ffaa;
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { opacity: 1; }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

/* ── Hamburger ───────────────────────────────────────────────── */
.ham-line {
  display: block;
  width: 22px; height: 2px;
  background: #e4e4e7;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
#nav-toggle[aria-expanded="true"] .ham-line:nth-child(1) { transform: translateY(7px)  rotate(45deg); }
#nav-toggle[aria-expanded="true"] .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-toggle[aria-expanded="true"] .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobile-menu.open { max-height: 320px; }

/* ── Cards ───────────────────────────────────────────────────── */
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.45), 0 0 28px rgba(0,255,170,0.07);
  border-color: rgba(0,255,170,0.18) !important;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,255,170,0.32);
}
.btn-secondary {
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.28) !important;
}

/* ── Tech tags ───────────────────────────────────────────────── */
.tech-tag { transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: default; }
.tech-tag:hover { transform: scale(1.07); }

/* ── Divider ─────────────────────────────────────────────────── */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,170,0.22), transparent);
}

/* ── Form inputs ─────────────────────────────────────────────── */
.form-input {
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: rgba(0,255,170,0.5) !important;
  box-shadow: 0 0 0 3px rgba(0,255,170,0.12);
}

/* ── Scroll-to-top ───────────────────────────────────────────── */
#scroll-top {
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(8px);
}
#scroll-top.visible {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}

/* ── Cursor blink (hero badge) ───────────────────────────────── */
.cursor-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00ffaa;
  box-shadow: 0 0 8px rgba(0,255,170,0.7);
  animation: blink 1.4s ease-in-out infinite;
}

/* ── Process connector lines (desktop) ──────────────────────── */
@media (min-width: 768px) {
  .process-step { position: relative; }
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px; left: calc(50% + 32px);
    width: calc(100% - 64px); height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  }
}
