:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --panel: #151515;
  --panel-2: #1b1b1b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f0;
  --muted: #b8b8b0;
  --accent: #d6ff3f;
  --accent-2: #e3ff75;
  --max-width: 1240px;
  --radius: 24px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(214, 255, 63, 0.07), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(214, 255, 63, 0.04), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}

.nav-menu {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  border-radius: 999px;
}

.hero {
  padding: 54px 0 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  padding: 18px 0;
}

.hero-kicker {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 1rem;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  color: #7d7d78;
}

.hero-role {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 18px;
}

.hero-text {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-links {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.btn-primary {
  background: var(--accent);
  color: #0c0c0c;
  border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-2);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.hero-panel,
.card,
.project-card,
.contact-panel,
.contact-info .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214,255,63,0.14), transparent 70%);
  pointer-events: none;
}

.panel-label,
.card-number,
.project-meta {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feature-stack {
  display: grid;
  gap: 14px;
}

.feature-card {
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.feature-top h3,
.card h3,
.project-content h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.feature-card p,
.card p,
.project-content p {
  color: var(--muted);
  margin: 0 0 10px;
}

.badge {
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid rgba(214,255,63,0.22);
  background: rgba(214,255,63,0.12);
  white-space: nowrap;
}

.text-link,
.project-links a,
.contact-info a:not(.btn),
.project-content a:not(.btn) {
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s ease;
}

.text-link:hover,
.project-links a:hover,
.contact-info a:hover,
.project-content a:hover {
  color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.num {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}

.label {
  font-size: 0.92rem;
  color: var(--muted);
}

.section {
  padding: 78px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  font-size: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  padding: 24px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  overflow: hidden;
}

.project-image-link {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-image-link img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image-link img {
  transform: scale(1.04);
}

.project-content {
  padding: 22px;
}

.project-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.skills-list li:last-child {
  border-bottom: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.contact-panel,
.contact-info .card {
  padding: 24px;
}

.contact-highlight {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(214,255,63,0.18);
  background: rgba(214,255,63,0.08);
  color: #ebf6b6;
  font-weight: 500;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8f8f88;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid rgba(214,255,63,0.35);
  border-color: rgba(214,255,63,0.25);
}

.form-status {
  margin-top: 10px;
  min-height: 24px;
  color: var(--muted);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0 38px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .hero-grid,
  .section-head,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid,
  .skills-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .navbar {
    min-height: 74px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    top: 84px;
    left: 4%;
    right: 4%;
    flex-direction: column;
    gap: 0;
    background: rgba(17, 17, 17, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: 16px 18px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .project-image-link img {
    height: 220px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}