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

:root {
  --bg: #0b0b0d;
  --bg-card: #111114;
  --bg-hover: #18181c;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #f0efe8;
  --text-secondary: #8a8984;
  --text-muted: #4a4a4a;
  --accent: #c8f566;
  --accent-dim: rgba(200, 245, 102, 0.12);
  --accent-dim2: rgba(200, 245, 102, 0.05);
  --font-head: "Syne", sans-serif;
  --font-mono: "DM Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Glow orb */
body::after {
  content: "";
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(200, 245, 102, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero-tag::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-name .dim {
  color: var(--text-muted);
}

.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.45s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent);
  color: #0b0b0d;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition:
    opacity 0.2s,
    transform 0.15s;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  border-radius: 4px;
  transition:
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Section ── */
section {
  padding: 80px 0;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.skill-cell {
  padding: 20px;
  background: var(--bg-card);
  transition: background 0.2s;
}

.skill-cell:hover {
  background: var(--bg-hover);
}

.skill-icon {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.skill-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.skill-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Projects ── */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.project-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}

.project-item:hover {
  background: var(--bg-hover);
}

.project-item:hover .project-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

.project-num {
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 4px;
  min-width: 24px;
  font-variant-numeric: tabular-nums;
}

.project-body {
  flex: 1;
}

.project-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.project-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.project-arrow {
  font-size: 18px;
  color: var(--text-muted);
  transition:
    transform 0.2s,
    color 0.2s;
  padding-top: 2px;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.about-block {
  padding: 28px;
  background: var(--bg-card);
}

.about-block.full {
  grid-column: 1 / -1;
}

.about-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-value {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-value strong {
  color: var(--text-primary);
  font-weight: 500;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  animation: pulse 2.5s ease-in-out infinite;
}

/* ── Contact ── */
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}

.contact-text h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-text p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ── Social links ── */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.social-link:hover {
  color: var(--accent);
  border-color: rgba(200, 245, 102, 0.3);
  background: var(--accent-dim2);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  50% {
    opacity: 0.4;
  }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .hero {
    padding: 120px 0 80px;
  }

  .contact-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .nav-links {
    display: none;
  }
}

