/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:        #ffffff;
  --bg-alt:    #f6f7fb;
  --ink:       #12141c;
  --ink-muted: #5b6172;
  --blue:      #3e63dd;
  --lavender:  #8d7fe8;
  --line:      #e6e8f0;
  --line-soft: #eef0f6;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1080px;
  --gap: 24px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--font-mono); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.section {
  padding: 96px 24px;
}
.section--alt { background: var(--bg-alt); }
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.eyebrow {
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}
.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 48px;
  max-width: 640px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav__logo .dot { color: var(--blue); }
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-size: 14.5px;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav__cta:hover { background: var(--bg-alt); border-color: var(--ink-muted); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__burger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  gap: 4px;
  border-top: 1px solid var(--line-soft);
}
.nav__mobile a {
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line-soft);
}
.nav__mobile.is-open { display: flex; }

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 120px 24px 90px;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(141, 127, 232, 0.10), transparent 60%),
    radial-gradient(600px 300px at 85% 20%, rgba(62, 99, 221, 0.08), transparent 60%);
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.hero__name {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 10px 0 6px;
}
.hero__role {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 500;
  background: linear-gradient(90deg, var(--blue), var(--lavender));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}
.hero__desc {
  max-width: 620px;
  color: var(--ink-muted);
  font-size: 17px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(18,20,28,0.18); }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink-muted); background: var(--bg-alt); }

/* Signature: deploy ticker */
.ticker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  max-width: 100%;
  overflow: hidden;
}
.ticker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ticker__label {
  color: var(--ink-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.ticker__line {
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker__cursor {
  color: var(--blue);
  animation: blink 1s step-start infinite;
  flex-shrink: 0;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
}
.about__label h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  line-height: 1.25;
}
.about__body p {
  color: var(--ink-muted);
  margin-bottom: 18px;
  font-size: 16px;
}
.about__body p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.skill-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.skill-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.skill-card h3 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 14px;
  font-weight: 500;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--line-soft);
}
.tags--sm span { font-size: 11.5px; padding: 4px 9px; }

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .skills-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.project-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 28px rgba(62, 99, 221, 0.08);
  transform: translateY(-3px);
}
.project-card__head h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}
.project-card__cat {
  color: var(--ink-muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.project-card__desc {
  color: var(--ink-muted);
  font-size: 14.5px;
  flex-grow: 1;
}
.project-card__metrics {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--blue);
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.project-card__links {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}
.project-card__links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s ease;
}
.project-card__links a:hover { color: var(--blue); }

@media (max-width: 800px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.timeline__item { position: relative; }
.timeline__dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--bg-alt);
}
.timeline__dot--accent { background: var(--lavender); }
.timeline__date {
  color: var(--blue);
  font-size: 12.5px;
  margin-bottom: 6px;
  display: block;
}
.timeline__content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline__sub {
  color: var(--ink-muted);
  font-size: 14.5px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600;
  max-width: 600px;
  margin-bottom: 14px;
}
.contact__desc {
  color: var(--ink-muted);
  max-width: 480px;
  margin-bottom: 32px;
}
.social-row {
  display: flex;
  gap: 28px;
  margin-top: 32px;
}
.social-row a {
  font-size: 14.5px;
  color: var(--ink-muted);
  font-weight: 500;
  transition: color 0.15s ease;
}
.social-row a:hover { color: var(--blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px 24px 48px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-muted);
  font-size: 13px;
  border-top: 1px solid var(--line-soft);
}
.footer__built { color: #9aa0b0; }

@media (max-width: 520px) {
  .footer { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   FOCUS STATES (accessibility)
   ============================================================ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
