:root {
  --background: #080b12;
  --surface: rgba(20, 26, 39, 0.72);
  --surface-strong: #151b28;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f6f7fb;
  --muted: #9ca5b5;
  --accent: #86efac;
  --accent-dark: #052e16;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 0%, rgba(52, 211, 153, 0.1), transparent 32%),
    radial-gradient(circle at 95% 35%, rgba(59, 130, 246, 0.08), transparent 30%),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
.background-glow { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: -1; opacity: .14; }
.background-glow-one { width: 360px; height: 360px; background: #22c55e; top: -180px; left: -130px; }
.background-glow-two { width: 400px; height: 400px; background: #2563eb; right: -220px; top: 40%; }

.site-header {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(134, 239, 172, .45);
  background: rgba(134, 239, 172, .08);
  color: var(--accent); border-radius: 12px; font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .72rem; }

.site-nav { display: flex; gap: 30px; color: var(--muted); font-size: .92rem; }
.site-nav a:hover { color: var(--text); }
.menu-button { display: none; color: var(--text); background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }

main, footer { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; }
.hero {
  min-height: calc(100vh - 86px);
  display: grid; grid-template-columns: 1.35fr .8fr; gap: 72px; align-items: center;
  padding: 96px 0;
}
.eyebrow, .section-index { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: .98; letter-spacing: -.065em; margin: 24px 0 28px;
  max-width: 850px;
}
h1 em { display: block; color: var(--accent); font-style: normal; }
.hero-description { max-width: 700px; color: var(--muted); font-size: 1.1rem; }
.hero-description strong { color: var(--text); }
.hero-actions { display: flex; gap: 12px; margin: 34px 0 48px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 21px; border-radius: 10px; font-weight: 700; border: 1px solid var(--border); }
.button-primary { background: var(--accent); color: var(--accent-dark); border-color: var(--accent); }
.button-secondary { background: rgba(255,255,255,.03); }
.button:hover { transform: translateY(-2px); transition: transform .2s ease; }

.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px; }
.hero-stats li { display: grid; }
.hero-stats strong { font-size: .95rem; }
.hero-stats span { color: var(--muted); font-size: .78rem; }

.terminal-card { background: rgba(13,17,26,.86); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.4); overflow: hidden; transform: rotate(1deg); }
.terminal-header { min-height: 50px; padding: 0 18px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--border); }
.terminal-header > span { width: 9px; height: 9px; border-radius: 50%; background: #475569; }
.terminal-header p { margin: 0 0 0 auto; color: #64748b; font: 12px ui-monospace, monospace; }
.terminal-body { padding: 26px; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-body p { margin-bottom: 5px; }
.prompt { color: var(--accent); }
.output { color: #94a3b8; padding-left: 18px; margin-bottom: 18px !important; }
.status { color: #d1fae5; }
.status span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; box-shadow: 0 0 15px var(--accent); }

.section { padding: 110px 0; border-top: 1px solid var(--border); }
.section-heading { display: grid; grid-template-columns: .55fr 1.45fr; gap: 40px; margin-bottom: 58px; }
.section-heading h2, .contact-section h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -.05em; max-width: 760px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; }
.large-copy { font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.2; letter-spacing: -.035em; }
.about-copy { color: var(--muted); font-size: 1.02rem; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 48px; }
.skill-cloud span, .project-tags span { border: 1px solid var(--border); background: rgba(255,255,255,.025); color: #bac2cf; border-radius: 999px; padding: 7px 12px; font-size: .78rem; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card {
  min-height: 360px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.project-card:hover { transform: translateY(-5px); border-color: rgba(134,239,172,.38); background: var(--surface-strong); }
.project-card-featured { background: linear-gradient(145deg, rgba(22,101,52,.24), rgba(20,26,39,.85)); }
.project-topline { display: flex; justify-content: space-between; color: #64748b; }
.external-arrow { font-size: 1.35rem; color: var(--accent); }
.project-label { color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.project-card h3 { font-size: 1.75rem; margin-bottom: 10px; }
.project-card p:not(.project-label) { color: var(--muted); max-width: 500px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.timeline { border-top: 1px solid var(--border); }
.timeline-item { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 34px 0; border-bottom: 1px solid var(--border); }
.timeline-date { color: var(--accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.timeline-item h3 { font-size: 1.35rem; }
.timeline-item > p { color: var(--muted); }

.contact-section { padding: 130px 0; border-top: 1px solid var(--border); text-align: center; }
.contact-section .section-index { display: block; }
.contact-section h2 { margin: 18px auto 24px; }
.contact-section > p:not(.section-index) { color: var(--muted); max-width: 650px; margin: 0 auto; }
.contact-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.contact-links a { min-width: 150px; border: 1px solid var(--border); padding: 14px 18px; border-radius: 10px; display: flex; justify-content: space-between; gap: 20px; }
.contact-links a:hover { border-color: rgba(134,239,172,.42); }

footer { min-height: 150px; padding: 38px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--muted); font-size: .84rem; }
footer strong { color: var(--text); }
footer p { margin-bottom: 0; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 50px; }
  .terminal-card { max-width: 560px; }
  .section-heading, .about-grid, .timeline-item { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 680px) {
  .site-header { min-height: 72px; }
  .menu-button { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 20px; right: 20px;
    padding: 18px; background: #101622; border: 1px solid var(--border); border-radius: 12px;
    flex-direction: column; z-index: 10;
  }
  .site-nav.open { display: flex; }
  .hero { padding: 70px 0 90px; }
  h1 { font-size: clamp(3rem, 15vw, 4.9rem); }
  .hero-actions, .hero-stats { flex-direction: column; }
  .hero-stats { gap: 14px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 320px; }
  footer { flex-direction: column; gap: 25px; }
}
