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

:root {
  --bg: #050505;
  --card: #101010;
  --card-soft: #0b0b0b;
  --border: #252525;
  --border-strong: #75d982;
  --text: #f4f4f4;
  --muted: #a0a0a0;
  --dim: #6f6f6f;
  --blue: #5c8dff;
  --green: #77e087;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 20%, rgba(70, 70, 70, 0.13), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 0.9rem;
  color: var(--text);
}

.nav-links a {
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--green);
}

.hero {
  padding: 120px 0 74px;
  max-width: 620px;
}

.subtitle {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 700;
  margin-bottom: 22px;
}

.description {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 420px;
  margin-bottom: 34px;
}

.tech-stack,
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tech-stack span,
.skills-list span {
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.015);
  padding: 7px 18px;
  font-size: 0.85rem;
}

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

.projects-section,
.skills-section {
  padding: 0 0 72px;
}

h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.project-card {
  min-height: 156px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 48%),
    var(--card-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.project-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.featured {
  border-color: rgba(119, 224, 135, 0.55);
  box-shadow: 0 0 0 1px rgba(119, 224, 135, 0.04), 0 0 28px rgba(119, 224, 135, 0.06);
}

.project-icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(119, 224, 135, 0.11);
  color: var(--green);
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.85rem;
  font-weight: 700;
}

.featured h3 {
  margin-bottom: 12px;
}

.project-links {
  display: flex;
  gap: 24px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.82rem;
}

.project-links a:first-child {
  color: var(--text);
}

.project-links a:last-child {
  color: var(--green);
}

.project-links a:hover {
  text-decoration: underline;
}

.locked {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  opacity: 0.65;
  filter: grayscale(1);
}

.locked h3 {
  color: var(--text);
  margin-bottom: 28px;
}

.lock {
  font-size: 1.35rem;
  opacity: 0.7;
  margin-bottom: 10px;
}

.skills-section {
  padding-top: 10px;
}

.skills-section h2 {
  margin-bottom: 20px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 34px 24px 42px;
  text-align: center;
  color: var(--dim);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-bottom: 12px;
  color: var(--text);
}

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

@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.82rem;
  }

  .hero {
    padding: 72px 0 48px;
  }

  h1 {
    font-size: 3rem;
  }

  .description {
    font-size: 1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    min-height: 145px;
  }

  .project-links {
    flex-direction: column;
    gap: 8px;
  }
}
