:root {
  --bg: #020617;
  --bg-alt: #020420;
  --bg-section: #020b2a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8; /* cyan */
  --accent-soft: rgba(56, 189, 248, 0.16);
  --accent-alt: #f97316; /* orange for highlights */
  --border-soft: rgba(148, 163, 184, 0.35);
  --radius-lg: 18px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #020b2a 0, #020617 40%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.no-scroll {
  overflow: hidden;
}

.page {
  min-height: 100vh;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

/* Header / nav */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.96), rgba(15,23,42,0.9));
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wordmark {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.16), rgba(15,23,42,0.8));
}

#main-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
}

#main-nav a {
  color: var(--muted);
  position: relative;
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-alt));
  transition: width 0.2s ease-out;
}

#main-nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(15,23,42,0.9);
  cursor: pointer;
}

.mobile-menu-btn .bar {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  margin: 2px 0;
}

.mobile-nav {
  display: none;
}

.mobile-nav.active {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 5rem 1.75rem 2.5rem;
  gap: 0.75rem;
  background: radial-gradient(circle at top, #020b2a, #020617 60%, #000 100%);
}

.mobile-nav a {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.8);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  /* Use an oversized gradient so the color transition extends past the pill edges,
     avoiding a hard reset at the boundaries. */
  background-image: linear-gradient(90deg, var(--accent), var(--accent-alt));
  background-repeat: no-repeat;
  background-size: 140% 100%;
  background-position: center;
  color: #0b1020;
  box-shadow: var(--shadow-soft);
}

.button.secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text);
  box-shadow: none;
}

.button + .button {
  margin-left: 0.75rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-tagline {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.pill {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.12), rgba(15,23,42,0.9));
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), #020617);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card li + li {
  margin-top: 0.5rem;
}

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

/* Sections */
.section {
  margin-top: 4rem;
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.section p {
  color: var(--muted);
  max-width: 42rem;
}

.section-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
}

.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 1.2rem 1.1rem;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.12), rgba(15,23,42,0.96));
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card small {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.card ul {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.card li + li {
  margin-top: 0.25rem;
}

/* Resume page */
.resume-header {
  margin-bottom: 2rem;
}

.resume-header h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.resume-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.resume-section {
  margin-top: 2.75rem;
}

.resume-section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.resume-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.resume-item h3 {
  font-size: 1.05rem;
}

.resume-item .where {
  font-size: 0.9rem;
  color: var(--muted);
}

.resume-item ul {
  margin-top: 0.35rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(to top, #020617, #020b2a);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.footer-intro h2 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.footer-intro p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.footer-column h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.footer-column ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-column li + li {
  margin-top: 0.25rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 800px) {
  #main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  main {
    padding-top: 4rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
