:root {
  --bg: #0b0f14;
  --bg-2: #101722;
  --ink: #e6edf3;
  --muted: #a5b0bd;
  --accent: #38bdf8;
  --accent-2: #f59e0b;
  --card: rgba(17, 26, 39, 0.7);
  --stroke: rgba(148, 163, 184, 0.25);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% 10%, #172034, var(--bg));
  min-height: 100vh;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 7vw;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 20, 0.75);
  border-bottom: 1px solid var(--stroke);
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 200ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav .cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--ink);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 80px 7vw 40px;
  align-items: center;
}

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 12px 0 16px;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  color: #0b0f14;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.terminal-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(12, 18, 28, 0.9);
  border-bottom: 1px solid var(--stroke);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }

.terminal-body {
  padding: 22px 24px 28px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.8;
  color: #c7d2fe;
}

.prompt {
  color: var(--accent-2);
}

.section {
  padding: 70px 7vw;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  color: var(--muted);
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 18px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  margin-top: 8px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.project {
  padding: 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--stroke);
}

.project-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.project p {
  color: var(--muted);
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  margin-right: 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--muted);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.contact-line {
  margin: 6px 0;
  color: var(--muted);
}

.footer {
  padding: 28px 7vw 40px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .site-header {
    padding: 18px 7vw;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }
}
