/**
 * ============================================================
 * nav.css — NAVIGATION
 * ============================================================
 *
 * Styles for:
 *  - Desktop nav bar (fixed top, blurs on scroll)
 *  - Desktop CTA button
 *  - Mobile hamburger button
 *  - Mobile full-screen overlay menu
 *
 * Behavior controlled by js/nav.js
 *
 * ============================================================
 */


/* ── Desktop Nav Bar ─────────────────────────────────────────
   Fixed at top. z-index 1001 keeps it above the mobile
   overlay (z-index 999) so hamburger stays tappable.
────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  padding: 22px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .5s ease, background .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}

/* Applied by JS when user scrolls down */
nav.scrolled {
  padding: 14px 64px;
  background: rgba(5,5,7,.88);
  backdrop-filter: blur(24px);
  border-color: rgba(255,255,255,.05);
}

/* ── Logo ────────────────────────────────────────────────────
   SVG ripple icon + "Surfaced Studio" text
────────────────────────────────────────────────────────────── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  opacity: 0; /* fades in after loader via GSAP */
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
}

/* ── Desktop Links ───────────────────────────────────────────*/
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  opacity: 0; /* fades in after loader via GSAP */
}

.nav-links a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .04em;
  transition: color .3s ease;
}
.nav-links a:hover { color: #fff; }

/* ── "Start a Project" CTA Button ───────────────────────────*/
.nav-cta {
  background: transparent;
  border: 1px solid rgba(139,92,246,.45);
  color: var(--purple-lt);
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all .35s var(--ease-smooth);
  opacity: 0; /* fades in after loader via GSAP */
}
.nav-cta:hover {
  background: rgba(139,92,246,.15);
  border-color: var(--purple);
  box-shadow: 0 0 28px rgba(139,92,246,.28);
  transform: scale(1.04);
}

/* ── Mobile Hamburger Button ─────────────────────────────────
   Hidden on desktop. Shown on mobile via mobile.css.
   Sits above overlay (z-index 1001) so it's always tappable.
────────────────────────────────────────────────────────────── */
.nav-ham {
  display: none;           /* shown in mobile.css */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  opacity: 0;
  position: relative;
  z-index: 1001;
}

/* The three lines — animate to ✕ when menu opens */
.ham-line {
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,.7);
  border-radius: 1px;
  transition: all .3s ease;
  transform-origin: center;
}

/* ── Mobile Full-Screen Overlay Menu ─────────────────────────
   Hidden by default. JS adds .open class to show it.
   z-index 999 = below nav (1001) so hamburger is always clickable.
────────────────────────────────────────────────────────────── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5,5,7,.97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile-menu.open { display: flex; }

/* Large mobile nav links */
.mob-link {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .3s ease;
}
.mob-link:hover { color: #fff; }
