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

:root {
  --bg: #fdf4ed;
  --text: #1f262e;
  --muted: #536171;
  --panel: rgba(255, 255, 255, 0.97);
  --panel-strong: rgba(255, 255, 255, 0.99);
  --border: rgba(31, 38, 46, 0.08);
  --shadow: 0 18px 50px rgba(31, 38, 46, 0.08);
  --primary: #d97706;    /* warm amber */
  --primary-2: #fbbf24;  /* golden amber */
  --accent: #f97316;     /* secondary warmth */
  --radius: 16px;
  --font-sans: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Monaco, "Consolas", "Liberation Mono", monospace;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(circle at 22% 18%, rgba(251, 191, 36, 0.14), transparent 34%),
    radial-gradient(circle at 78% 6%, rgba(249, 115, 22, 0.1), transparent 32%),
    linear-gradient(145deg, #fdf4ed 10%, #fff7f1 50%, #faefe3);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

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

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(217, 119, 6, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.18);
}

.btn svg {
  display: block;
}

.btn.primary {
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  color: #fff;
}

.btn.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.btn svg {
  display: block;
}
.btn:hover {
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 72px 0 52px;
}

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

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text);
}

.lede {
  color: var(--muted);
  margin-bottom: 18px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(31, 38, 46, 0.04);
  border: 1px solid rgba(31, 38, 46, 0.08);
  color: var(--muted);
  font-weight: 600;
  box-shadow: none;
}

.glass-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: 52px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

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

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
}

.list {
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.list strong {
  color: var(--text);
}

.image-stack {
  display: grid;
  gap: 12px;
}

.image-stack img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.footer {
  padding: 32px 0 28px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: #fff;
}

/* Video */
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.video-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.play-overlay .play-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.play-overlay .play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
  margin-left: 4px;
}

/* Masonry */
.masonry {
  column-count: 3;
  column-gap: 14px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 14px;
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .masonry {
    column-count: 1;
  }
}

/* Terminal block */
.terminal-section {
  padding: 52px 0;
}

.terminal-content {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.terminal-text h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.terminal-text p {
  color: var(--muted);
}

.terminal {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.terminal-controls .control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-controls .control.red {
  background: #ff6b6b;
}

.terminal-controls .control.yellow {
  background: #ffd166;
}

.terminal-controls .control.green {
  background: #6cf2a4;
}

.terminal-title {
  color: var(--muted);
  font-weight: 600;
}

.terminal-body {
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  background: #0f172a;
}

.terminal-line {
  margin-bottom: 6px;
}

.prompt {
  color: var(--primary);
  margin-right: 6px;
}

.command {
  color: #f8fafc;
}

.output {
  color: #cbd5e1;
}

.cursor {
  background: var(--accent);
  color: #070b15;
  animation: blink 1s infinite;
}

@media (max-width: 820px) {
  .nav-links {
    gap: 10px;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

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