:root {
  --bg: #f4f4ef;
  --text: #12130f;
  --muted: #6b6c64;
  --line: #e4e4dc;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(0,0,0,.08);
  --accent: #2a2b27;
  --radius: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}
.brand span { opacity: .55; }

.nav nav {
  display: flex;
  gap: 28px;
}
.nav nav a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav nav a:hover { color: var(--text); }

#theme {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4vw;
  align-items: center;
  padding: 8vw 6vw 6vw;
  min-height: 85vh;
}

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: .95;
  letter-spacing: -0.06em;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  opacity: .55;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: var(--text);
  color: var(--bg);
}
.btn.ghost {
  border-color: var(--line);
  background: transparent;
}

.hero-visual {
  position: relative;
}
.hero-photo {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
/* SECTIONS */
.section {
  padding: 100px 6vw;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: .98;
  letter-spacing: -0.05em;
  font-weight: 800;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: start;
}

.about-text p {
  font-size: 1.2rem;
  margin-bottom: 18px;
  max-width: 560px;
}
.muted { color: var(--muted); }

.about-links {
  display: flex;
  gap: 20px;
  margin-top: 28px;
}
.about-links a {
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 48px;
  gap: 20px;
}
.count {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* TIMELINE */
.timeline {
  display: grid;
  gap: 28px;
  max-width: 800px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.year {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
}
.timeline-item h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.timeline-item p {
  color: var(--muted);
  font-size: 1rem;
}

/* PROJECTS */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.project:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.project .num {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}
.project h3 {
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 18px 0 12px;
}
.project p {
  color: var(--muted);
  font-size: .95rem;
  flex: 1;
}
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.tags b {
  font-size: .68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 600;
}

.project.featured {
  background: var(--text);
  color: var(--bg);
}
.project.featured p { color: #b7b8b1; }
.project.featured .tags b {
  border-color: #444;
  color: #ddd;
}
.project.featured .num { color: #9a9b94; }

/* AI */
.ai-section { background: color-mix(in srgb, var(--card) 70%, var(--bg)); }
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ai-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.ai-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.ai-card p {
  color: var(--muted);
  font-size: .95rem;
}

/* STACK */
.stack-section {
  background: var(--text);
  color: var(--bg);
}
.stack-section .eyebrow { color: #9b9c94; }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
}
.stack-grid span {
  padding: 18px 0;
  border-bottom: 1px solid #343530;
  font-size: 1.05rem;
  font-weight: 500;
}

.stack-grid .tech {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.stack-grid .tech i {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-style: normal;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--card);
  transition: transform .2s ease, border-color .2s ease;
}


.stack-grid .tech i {
  color: #fff;
  border-color: transparent;
}

.stack-grid .tech .ic-laravel { background: #ff2d20; }
.stack-grid .tech .ic-php { background: #777bb4; }
.stack-grid .tech .ic-java { background: #e76f00; }
.stack-grid .tech .ic-python { background: #3776ab; }
.stack-grid .tech .ic-js { background: #f7df1e; color: #111; }
.stack-grid .tech .ic-ts { background: #3178c6; }
.stack-grid .tech .ic-vue { background: #42b883; }
.stack-grid .tech .ic-next { background: #111; }
.stack-grid .tech .ic-node { background: #339933; }
.stack-grid .tech .ic-html { background: #e34f26; }
.stack-grid .tech .ic-css { background: #1572b6; }
.stack-grid .tech .ic-tailwind { background: #06b6d4; }
.stack-grid .tech .ic-postgres { background: #336791; }
.stack-grid .tech .ic-sqlite { background: #003b57; }
.stack-grid .tech .ic-api { background: #7c3aed; }
.stack-grid .tech .ic-git { background: #f05032; }
.stack-grid .tech .ic-github { background: #24292f; }
.stack-grid .tech .ic-cloudflare { background: #f38020; }
.stack-grid .tech .ic-linux { background: #111; }
.stack-grid .tech .ic-ai { background: #8b5cf6; }
.stack-grid .tech .ic-auto { background: #0f766e; }
.stack-grid .tech .ic-bot { background: #2563eb; }

.stack-grid .tech:hover i {
  transform: translateY(-2px) scale(1.04);
  border-color: transparent;
}


/* FOCUS */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.focus-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.focus-item strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.focus-item p {
  color: var(--muted);
  font-size: .9rem;
}

/* CONTACT */
.contact { padding-bottom: 140px; }
.contact > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 22px 0 32px;
  max-width: 520px;
}
.contact h2 { max-width: 700px; }

.social-row {
  display: flex;
  gap: 24px;
  margin-top: 36px;
}
.social-row a {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 500;
}
.social-row a:hover { color: var(--text); }

footer {
  border-top: 1px solid var(--line);
  padding: 26px 6vw;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .78rem;
}

/* DARK */
.dark {
  --bg: #0d0e0c;
  --text: #f2f2eb;
  --muted: #9a9b94;
  --line: #2a2b27;
  --card: #151613;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
}
.dark .project.featured {
  background: #f2f2eb;
  color: #0d0e0c;
}
.dark .project.featured p { color: #555; }
.dark .project.featured .tags b {
  border-color: #ccc;
  color: #333;
}
.dark .stack-section {
  background: #f2f2eb;
  color: #0d0e0c;
}
.dark .stack-section .eyebrow { color: #6b6c64; }
.dark .stack-grid span { border-bottom-color: #d4d4cc; }

/* MOBILE */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding: 16vw 5vw 10vw;
    min-height: auto;
  }
  .hero-photo { max-height: 420px; }
  .section { padding: 72px 5vw; }
  .split,
  .projects,
  .ai-grid,
  .focus-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { grid-template-columns: 70px 1fr; gap: 16px; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  footer { padding: 22px 5vw; flex-direction: column; gap: 8px; }
}

@media (max-width: 600px) {
}
