/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0e0e10;
  --bg-card:      #161618;
  --text:         #d5d5d5;
  --text-muted:   #888;
  --accent:       #c07840;
  --accent-dim:   rgba(192, 120, 64, 0.1);
  --white:        #f0f0f0;
  --border:       rgba(255, 255, 255, 0.08);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
}

html {
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body { min-height: 100vh; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.04),
    transparent 80%
  );
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s;
}
a:hover { color: #fff; }

/* ── Layout ───────────────────────────────────────────────── */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5vw 0 3rem;
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 0 4rem;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .layout {
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
  }
}

/* ── Left / aside ─────────────────────────────────────────── */
.left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6rem 0 4rem;
}

.left__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (max-width: 768px) {
  .left {
    display: contents;
  }
  .left__inner {
    order: 0;
    padding-top: 3rem;
  }
  .right {
    order: 1;
  }
  .social {
    order: 2;
    margin-top: 0;
    padding-bottom: 3rem;
  }
  .nav {
    display: none;
  }
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  display: block;
}

.name {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 0.25rem;
}

.role {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 0.9rem;
}

.tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 30ch;
  margin-top: 0.9rem;
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color .15s;
}

.nav__link:hover,
.nav__link.active {
  color: var(--accent);
}

/* ── Social ───────────────────────────────────────────────── */
.social {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-bottom: 4rem;
}

.social a {
  color: var(--text-muted);
  transition: color .15s, transform .15s;
  display: flex;
  align-items: center;
}

.social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Right / main ─────────────────────────────────────────── */
.right {
  padding: 6rem 0;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

@media (max-width: 768px) {
  .right { padding: 2rem 0 4rem; gap: 3.5rem; }
}

/* ── Section ──────────────────────────────────────────────── */
.section__heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(14, 14, 16, 0.92);
  padding: 0.75rem 0;
  z-index: 10;
}

@media (min-width: 769px) {
  .section__heading { display: none; }
}

/* ── About ────────────────────────────────────────────────── */
.about__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__body p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.about__body a {
  font-weight: 500;
}

/* ── Experience ───────────────────────────────────────────── */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}

.exp:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

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

.exp__date {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.2rem;
  white-space: nowrap;
}

.exp__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.exp__company {
  font-weight: 400;
  color: var(--accent);
}

.exp__location {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.exp__desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  margin-top: 1.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, gap .15s, color .15s;
}

.resume-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 0.65rem;
}

/* ── Projects ─────────────────────────────────────────────── */
.proj-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.proj {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem 1.5rem;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
  align-items: start;
}

.proj:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

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

.proj__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.proj__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proj__title {
  font-size: 0.95rem;
  font-weight: 600;
}

.proj__title a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--white);
  transition: color .15s, gap .15s;
}

.proj__title a:hover {
  color: var(--accent);
  gap: 0.5rem;
}

.proj__desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ── Tags ─────────────────────────────────────────────────── */
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 0.75rem;
}

.tags li {
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.tags li:not(:last-child)::after {
  content: ',';
  margin-right: 0.4rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer a:hover { color: var(--accent); }
