*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #161616;
  --border: #222222;
  --border2: #2a2a2a;
  --text: #f0ede8;
  --muted: #666;
  --muted2: #444;
  --accent: #c8f06a;
  --accent2: #a8d44a;
  --tag-bg: #1a1a1a;
  --tag-border: #2a2a2a;
  --ff: "Syne", sans-serif;
  --mono: "DM Mono", monospace;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.nav-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg3);
}
.nav-cta {
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--ff);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover {
  opacity: 0.85;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 20px;
  height: 1.5px;
  background: var(--text);
  display: block;
  transition: 0.3s;
}

/* LAYOUT */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */
#home {
  padding: 52px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 4px 12px 4px 8px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 16px;
}
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent);
}
h1.name {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}
h1.name .dim {
  color: var(--muted2);
}
.tagline {
  font-size: 14px;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.tagline strong {
  color: var(--text);
  font-weight: 500;
}
.hero-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--ff);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover {
  opacity: 0.85;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border);
}
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 3px;
}
.hero-photo {
  position: relative;
}
.photo-frame {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border2);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
}
.photo-tag {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--accent);
}

/* SECTION */
section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* SKILLS */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skill-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: 0.2s;
}
.skill-row:hover {
  border-color: #333;
}
.skill-cat {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-family: var(--mono);
  background: var(--bg3);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  text-transform: uppercase;
}
.skill-cat .cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.skill-tags {
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  background: #0d0d0d;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-family: var(--mono);
  color: #c8c4bc;
  transition: 0.18s;
  line-height: 1;
}
.tag:hover {
  color: #fff;
  border-color: #444;
  background: #242424;
}
.tag img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.tag.no-icon {
  color: #9d9890;
}

/* EXPERIENCE */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.exp-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child {
  border-bottom: none;
}
.exp-date {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted);
  line-height: 1.6;
  padding-top: 2px;
}
.exp-body {
}
.exp-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.exp-company {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--mono);
  margin-bottom: 6px;
  display: inline-block;
}
.exp-company:hover {
  text-decoration: underline;
}
.exp-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.proj-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.proj-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.proj-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  filter: grayscale(30%);
  transition: 0.3s;
}
.proj-card:hover .proj-img {
  filter: grayscale(0%);
}
.proj-info {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proj-num {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted);
}
.proj-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.proj-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--accent);
  text-decoration: none;
  margin-top: 6px;
}
.proj-link:hover {
  text-decoration: underline;
}
.proj-link svg {
  width: 10px;
  height: 10px;
}

/* EDUCATION */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.edu-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.edu-item:last-child {
  border-bottom: none;
}
.edu-date {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted);
  padding-top: 2px;
  line-height: 1.6;
}
.edu-deg {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.edu-inst {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.contact-line a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
}
.contact-line a:hover {
  text-decoration: underline;
}
.contact-line-label {
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
  min-width: 56px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
input,
textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--ff);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: 0.2s;
  resize: none;
}
input:focus,
textarea:focus {
  border-color: var(--border2);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted2);
}
textarea {
  height: 80px;
}
.form-submit {
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-family: var(--ff);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: 0.2s;
  letter-spacing: 0.02em;
}
.form-submit:hover {
  opacity: 0.85;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-left {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted);
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.social-link {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  transition: 0.2s;
}
.social-link:hover {
  color: var(--text);
  border-color: var(--border2);
}

/* MOBILE */
@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    display: none;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .skill-row {
    grid-template-columns: 80px 1fr;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .exp-item,
  .edu-item {
    grid-template-columns: 1fr;
  }
  .exp-date,
  .edu-date {
    display: none;
  }
  h1.name {
    font-size: 32px;
  }
}
/* entrance animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-grid,
.skills-grid,
.exp-list,
.projects-grid,
.edu-list,
.contact-grid {
  animation: fadeUp 0.5s ease both;
}
