/* =========================================================
   SECTIONS.CSS — Section-specific layout & styling
========================================================= */

/* ---------------------------------------------
   HERO
--------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero__glow--1 {
  width: 500px;
  height: 500px;
  background: var(--gradient-radial-glow);
  top: -100px;
  right: -100px;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.25) 0%, rgba(168,85,247,0) 70%);
  bottom: -80px;
  left: -80px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero__title {
  font-size: var(--fs-4xl);
  margin-block: var(--space-lg) var(--space-lg);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: var(--space-2xl);
  line-height: var(--lh-relaxed);
}

.hero__subtitle strong {
  color: var(--text-primary);
}

.typewriter {
  color: var(--accent-secondary);
  font-weight: 600;
}

.typewriter-cursor {
  color: var(--accent-secondary);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
}

.hero__meta-num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-primary);
  display: inline;
}

.hero__meta-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.hero__meta-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-mouse {
  display: block;
  width: 26px;
  height: 40px;
  border: 2px solid var(--border-color-strong);
  border-radius: 14px;
  position: relative;
}

.hero__scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-secondary);
  animation: scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* ---------------------------------------------
   ABOUT
--------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__visual {
  display: flex;
  justify-content: center;
}

.about__orb-frame {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  position: relative;
}

.about__illustration {
  width: 80%;
  height: 80%;
}

.node-pulse {
  animation: node-pulse 2.4s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

.about__text {
  margin-bottom: var(--space-md);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-block: var(--space-xl);
}

/* ---------------------------------------------
   CONTACT
--------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* ---------------------------------------------
   Mobile nav overlay state
--------------------------------------------- */
@media (max-width: 900px) {
  .navbar__burger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--bg-elevated);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-in-out);
    z-index: var(--z-navbar);
  }

  .navbar__links.is-open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .navbar__link {
    font-size: var(--fs-lg);
  }
}
