/* =============================================================
   LAYOUT.CSS — Layer Zero Labs
   Navigation, Hero, Footer, and section-level backgrounds
   ============================================================= */

/* ── NAVIGATION ─────────────────────────────────────────────── */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: 70px;
  background: rgba(3, 8, 16, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 168, 255, 0.2);
}

/* Gradient underline accent */
#main-nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--accent-blue) 30%,
    var(--accent-orange) 70%,
    transparent
  );
  opacity: 0.5;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--chrome);
  display: flex;
  align-items: center;
  gap: 1px;
}

.nav-logo .glyph-zero {
  color: var(--accent-blue);
  text-shadow: var(--glow-sm);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.2s ease;
}

/* Underline reveal on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-blue);
  box-shadow: var(--glow-sm);
  transition: width 0.3s ease;
}

.nav-links a:hover          { color: var(--text-primary); }
.nav-links a:hover::after   { width: 100%; }
.nav-links a.is-active      { color: var(--accent-blue); }
.nav-links a.is-active::after { width: 100%; }

/* CTA button in nav */
.nav-cta {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #030810 !important;
  background: var(--accent-orange);
  padding: 10px 22px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: #FF8C33 !important;
  box-shadow: var(--glow-orange);
}

.nav-cta::after { display: none !important; }

/* ── HERO ───────────────────────────────────────────────────── */

#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Blueprint grid overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 150, 220, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 220, 0.10) 1px, transparent 1px),
    linear-gradient(rgba(0, 150, 220, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 220, 0.04) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  pointer-events: none;
}

/* Radial vignette — fades grid at edges */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 80% 80% at center, transparent 35%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 0.8s 0.45s forwards;
}

.brand-layer { color: var(--chrome); }

.brand-zero {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-blue);
  display: inline-block;
  animation:
    fadeUp 0.8s 0.45s forwards,
    zeroGlow 3s 1.5s ease-in-out infinite alternate;
}

.brand-labs {
  font-size: 0.42em;
  letter-spacing: 0.6em;
  display: block;
  margin-top: 10px;
  color: var(--chrome-dim);
  -webkit-text-stroke: 0;
  font-weight: 600;
}

.hero-tagline {
  font-size: clamp(0.72rem, 1.5vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.75s forwards;
}

.hero-actions {
  margin-top: 52px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1.05s forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s 1.8s forwards;
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* Stats bar pinned to hero bottom */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(0, 168, 255, 0.18);
  background: rgba(3, 8, 16, 0.7);
  backdrop-filter: blur(12px);
}

.stat-item {
  flex: 1;
  max-width: 220px;
  padding: 18px 28px;
  border-right: 1px solid rgba(0, 168, 255, 0.1);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-shadow: var(--glow-orange);
}

.stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 3px;
}

/* ── SECTION BACKGROUNDS ────────────────────────────────────── */

#services {
  background: var(--bg-dark);
  border-top: 1px solid rgba(0, 168, 255, 0.1);
  border-bottom: 1px solid rgba(0, 168, 255, 0.1);
}

#gallery  { background: var(--bg-deep); }

#process  {
  background: var(--bg-dark);
  border-top: 1px solid rgba(0, 168, 255, 0.1);
}

#about    { background: var(--bg-deep); }

#quote    {
  background: var(--bg-dark);
  border-top: 1px solid rgba(0, 168, 255, 0.15);
}

/* ── FOOTER ─────────────────────────────────────────────────── */

#main-footer {
  position: relative;
  background: var(--bg-deep);
  border-top: 1px solid rgba(0, 168, 255, 0.15);
  padding: 44px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Gradient line at top of footer */
#main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--accent-blue) 30%,
    var(--accent-orange) 70%,
    transparent
  );
  opacity: 0.4;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--chrome);
}

.footer-logo .glyph-zero {
  color: var(--accent-blue);
  text-shadow: var(--glow-sm);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  font-size: 0.74rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent-blue); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 960px) {
  #main-nav    { padding: 0 24px; }
  .nav-links   { display: none; }
  .hero-stats  { display: none; }

  #main-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 36px 24px;
  }
}
