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

:root {
  --bg: #0e0e10;
  --surface: #18181b;
  --border: #27272a;
  --muted: #52525b;
  --text: #e4e4e7;
  --text-secondary: #a1a1aa;
  --accent: #6ee7b7;
  --accent-dim: rgba(110, 231, 183, 0.12);
  --accent-border: rgba(110, 231, 183, 0.3);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.75;
}

/* ── Layout ───────────────────────────────── */

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Hero ────────────────────────── */

header {
  padding: 80px 0 60px;
  display: flow-root;
}

.hero-photo {
  float: right;
  width: 180px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  margin: 8px 0 16px 40px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.badge--blue {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
  color: #93c5fd;
}

.badge--yellow {
  background: rgba(253, 224, 71, 0.1);
  border-color: rgba(253, 224, 71, 0.3);
  color: #fde047;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

h1 {
  font-family: var(--font-mono);
  font-size: clamp(29px, 5.4vw, 43px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
}

.tagline {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: none;
  line-height: 1.65;
  margin-bottom: 32px;
  text-align: justify;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

.social-link:hover {
  opacity: 1;
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}

.social-link svg {
  flex-shrink: 0;
}

/* ── Divider ──────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Sections ─────────────────────────────── */

section {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ── About ────────────────────────────────── */

.about p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
  text-align: justify;
}

.about p:last-child {
  margin-bottom: 0;
}

/* ── Experience ───────────────────────────── */

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: start;
}

.exp-company {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.exp-role {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.exp-parent {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

.exp-prev-name {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.82em;
}

.exp-meta {
  text-align: right;
  margin-top: 3px;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.exp-duration {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 3px;
  opacity: 0.7;
}

/* ── Skills ───────────────────────────────── */

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  transition:
    border-color 0.15s,
    color 0.15s;
}

.skill-tag:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

/* ── Footer ───────────────────────────────── */

footer {
  padding: 40px 0;
  text-align: center;
}

footer p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 480px) {
  header {
    padding: 56px 0 48px;
  }

  .hero-photo {
    float: none;
    display: block;
    margin: 0 auto 24px;
    width: 140px;
    height: 140px;
  }

  h1 {
    text-align: center;
  }

  .badges {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .exp-meta {
    margin-top: 4px;
    text-align: left;
  }
}
