/* ============================================================
   layout.css — page structure: nav, hero, sections, grids, footer
   ============================================================ */

/* ---------- Aurora background ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 85% -8%, rgba(139, 124, 255, 0.16), transparent 60%),
    radial-gradient(720px 520px at -12% 22%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(560px 460px at 55% 112%, rgba(139, 124, 255, 0.12), transparent 62%);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;      /* keep "Bikash Sharma" on one line */
  flex-shrink: 0;           /* don't let the nav links squeeze the brand */
}

.nav-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(139, 124, 255, 0.35);
}

.nav-brand-mark svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 9px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-links a[aria-current="true"] {
  color: var(--text);
}

.nav-links a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.12rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-cta {
  margin-left: 0.4rem;
  padding: 0.42rem 1rem !important;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--accent-1) !important;
  border-radius: 99px !important;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vh, 4rem));
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
}

.hero-name {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin: 0.7rem 0 0.2rem;
}

.hero-role {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: var(--text);
  min-height: 1.7em;
}

.hero-role .typing {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-1);
}

.hero-build {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text);
  min-height: 1.7em;
  margin-top: 0.2rem;
}

.hero-build .typing {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-1);
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-lead {
  max-width: 52ch;
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.9rem;
}

/* Hero visual */
.hero-visual {
  justify-self: center;
  position: relative;
}

.hero-card {
  position: relative;
  width: min(320px, 76vw);
  padding: 9px;
  border-radius: 26px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 34px;
  background: var(--grad);
  opacity: 0.22;
  filter: blur(36px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 19px;
}

.hero-status {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-caption {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

.hero-caption small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Stats strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: clamp(2.6rem, 6vh, 4rem);
  width: 100%;
}

/* ---------- Timeline (experience) ---------- */
.timeline {
  position: relative;
  padding-left: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--accent-1), var(--accent-2));
  opacity: 0.45;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 1.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- Bento grids (projects / skills) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

@media (min-width: 780px) {
  .bento .featured {
    grid-column: span 2;
  }
}

/* Skills bento */
.skills-bento {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.skills-bento .span-2 {
  grid-column: span 1;
}

@media (min-width: 820px) {
  .skills-bento .span-2 {
    grid-column: span 2;
  }
}

/* ---------- Education ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.contact-info h2 {
  margin: 0.6rem 0 1rem;
  max-width: 16ch;
}

.contact-info p {
  max-width: 44ch;
}

.contact-info .contact-email {
  margin: 1.3rem 0 0.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  margin-top: clamp(2rem, 6vh, 4rem);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-actions,
  .hero-socials {
    justify-content: center;
  }

  .hero-lead {
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  .hamburger {
    display: grid !important;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.7rem 1.25rem 1.2rem;
    background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-strong);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0.25s;
  }

  .nav-open .nav-links {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem 0.7rem;
    font-size: 1rem;
  }

  .nav-links a[aria-current="true"]::after {
    left: 0.7rem;
    right: auto;
    width: 28px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.4rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-brand-name {
    display: none;
  }
}
