/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo:hover {
  color: var(--accent);
}

.logo-bracket {
  color: var(--accent);
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  padding: 16px var(--container-padding) 24px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  display: block;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 var(--container-padding);
}

.hero-content {
  max-width: 720px;
}

/* Staged Hero Entrance Sequence */
.staged-hero {
  transform: scale(0.985);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.intro-done .staged-hero {
  transform: scale(1);
}

.staged-hero>* {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

body.intro-done .staged-hero>* {
  animation: heroCascade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 1: Greeting, 2: Name, 3: "currently building", 4: Tagline, 5: sub, 6: impact, 7: buttons */
body.intro-done .staged-hero>*:nth-child(1) {
  animation-delay: 0s;
}

body.intro-done .staged-hero>*:nth-child(2) {
  animation-delay: 0.1s;
}

body.intro-done .staged-hero>*:nth-child(3) {
  animation-delay: 0.2s;
}

body.intro-done .staged-hero>*:nth-child(4) {
  animation-delay: 0.3s;
}

body.intro-done .staged-hero>*:nth-child(5) {
  animation-delay: 0.4s;
}

body.intro-done .staged-hero>*:nth-child(6) {
  animation-delay: 0.5s;
}

body.intro-done .staged-hero>*:nth-child(7) {
  animation-delay: 0.6s;
}

/* Buttons */

@keyframes heroCascade {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.hero-greeting {
  color: var(--accent);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.15);
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.hero-building {
  color: var(--text-secondary);
  /* Muted gray tone */
  background: rgba(100, 255, 218, 0.03);
  /* Soft background */
  border: 1px solid transparent;
  /* Layout maintained; visual border moved to box-shadow */
  box-shadow:
    0 0 0 1px rgba(100, 255, 218, 0.12),
    0 0 12px rgba(100, 255, 218, 0.12);
  /* Soft outer glow */
  text-shadow: 0 0 6px rgba(100, 255, 218, 0.15);
  /* Subtle text glow */
  opacity: 0.8;
  /* Slightly reduce opacity */
  font-size: 0.875rem;
  letter-spacing: 0.6px;
  margin-bottom: 24px;
  padding: 4px 10px;
  display: inline-block;
  border-radius: 4px;
  /* Maintain shape clean */
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-building:hover {
  border-color: rgba(100, 255, 218, 0.3);
  /* Slight border brighten on hover */
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--text-secondary);
}

.hero-impact {
  color: var(--accent);
  font-size: 0.8125rem;
  letter-spacing: 0.3px;
  margin-bottom: 32px;
  opacity: 1;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: clamp(16px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  animation: fadeInUp 1s var(--ease-out) 0.8s both;
}

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

/* ============================================
   SECTION HEADINGS
   ============================================ */
section {
  padding: var(--section-gap) 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  font-size: 1rem;
  position: relative;
  cursor: default;
}

.section-heading::after {
  content: '';
  width: 0;
  height: 2px;
  background: var(--accent);
  display: block;
  transition: width 0.4s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.section-heading:hover::after {
  width: 60px;
}

.section-number {
  color: var(--accent);
  font-size: 0.875rem;
}

.section-label {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 500;
}

.heading-line {
  flex: 1;
  height: 1.2px;
  background: var(--border);
  max-width: 300px;
}

/* Scroll Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  z-index: 1001;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  box-shadow: 0 4px 16px rgba(100, 255, 218, 0.12);
}

.btn:active {
  opacity: 0.85;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(100, 255, 218, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8125rem;
}