
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #080b0d;
  --bg-soft: #0d1215;
  --panel: rgba(15, 22, 25, 0.92);
  --panel-strong: #111b1f;
  --text: #e7f1ed;
  --muted: #91a49d;
  --accent: #67e8b1;
  --accent-2: #b8ffdc;
  --cyan: #70c9e8;
  --border: #223238;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(103, 232, 177, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 232, 177, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.code-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .24;
  mask-image: linear-gradient(90deg, transparent, black 18%, black 78%, transparent);
}
.code-backdrop pre {
  margin: 7rem 0 0 53%;
  color: #47786a;
  font: 500 clamp(.85rem, 1.7vw, 1.15rem)/2 'DM Mono', monospace;
  transform: rotate(8deg);
  white-space: pre;
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 5vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(8, 11, 13, .82);
  border-bottom: 1px solid var(--border);
}
.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.03em; }
.brand::before { content: './'; color: var(--accent); font-family: 'DM Mono', monospace; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .88rem; transition: color .2s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding-bottom: 5rem; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: center; min-height: 650px; padding: 4rem 0 3rem; }
.eyebrow { color: var(--accent); letter-spacing: .14em; text-transform: uppercase; font: 500 .72rem 'DM Mono', monospace; margin: 0 0 1rem; }
.hero h1, .section-heading h2 { font-size: clamp(2.25rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.06em; margin: 0 0 1.3rem; font-weight: 600; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.lead, .panel p, .project-card p, .timeline-item p, .contact-card p { color: var(--muted); line-height: 1.75; font-size: 1rem; }
.hero-copy { max-width: 670px; }
.hero-copy h1 { max-width: 600px; }
.hero-copy h1::after { content: '_'; color: var(--accent); font-family: 'DM Mono', monospace; }
#greeting {
  animation: textCycle 2.4s ease-in-out infinite;
  display: inline-block;
}
@keyframes textCycle {
  0% { opacity: 1; }
  20% { opacity: 1; }
  35% { opacity: 0; transform: translateY(-8px); }
  50% { opacity: 0; transform: translateY(8px); }
  65% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 1; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.btn { display: inline-block; padding: .82rem 1.15rem; text-decoration: none; border-radius: 3px; font-weight: 600; font-size: .9rem; transition: all .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #07110d; box-shadow: 0 8px 24px rgba(103, 232, 177, .12); }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { color: var(--accent); border: 1px solid var(--accent); background: transparent; }
.btn-secondary:hover { background: rgba(103, 232, 177, .08); }
.icon-link { display: inline-flex; align-items: center; gap: .5rem; }
.icon-link svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.language-rail { display: flex; gap: .55rem; flex-wrap: wrap; font: .72rem 'DM Mono', monospace; color: var(--cyan); }
.language-rail span { padding: .45rem .6rem; border: 1px solid #24424a; background: rgba(13, 26, 29, .7); }
.hero-card, .panel, .project-card, .timeline-item, .contact-card { background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 1.4rem; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.hero-card { border-top: 2px solid var(--accent); animation: float-in .7s ease both; }
.hero-panel {
  justify-self: end;
  width: min(100%, 300px);
  margin-top: 1rem;
  background: linear-gradient(180deg, rgba(17, 27, 31, 0.96), rgba(10, 14, 16, 0.94));
  border: 1px solid rgba(103, 232, 177, 0.4);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  padding: 1.2rem 1.1rem;
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.news-badge {
  display: inline-block;
  font: 500 .68rem 'DM Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(103, 232, 177, 0.08);
  border: 1px solid rgba(103, 232, 177, 0.2);
  border-radius: 999px;
  padding: .45rem .65rem;
  margin-bottom: .8rem;
}
.news-panel h3 {
  margin: 0 0 .5rem;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: -.04em;
}
.news-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: .96rem;
}
.card-label { color: var(--accent); font: 500 .72rem 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: 1.4rem; }
.stats-grid div { background: var(--panel-strong); padding: .8rem; border: 1px solid var(--border); }
.stats-grid strong { display: block; font-size: 1.2rem; margin-bottom: .2rem; }
.stats-grid span { color: var(--muted); font-size: .78rem; }
.skills-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.skill-item { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.2rem; background: var(--panel-strong); border: 1px solid var(--border); border-radius: 4px; text-align: center; transition: all .2s ease; }
.skill-item:hover { border-color: var(--accent); background: rgba(103, 232, 177, .05); }
.skill-item svg { width: 2.5rem; height: 2.5rem; color: var(--accent); flex-shrink: 0; }
.skill-item span { font-size: .85rem; color: var(--text); font-weight: 500; }
#projects-page {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 2rem;
}
#projects-page .section-heading {
  margin-bottom: 2rem;
}
.section { padding: 3rem 0 1.5rem; }
.section-heading { margin-bottom: 1.5rem; }
.about-grid, .projects-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { color: var(--text); text-decoration: none; }
.project-card h3 { margin-bottom: .7rem; }
.project-card strong { display: block; margin-top: 1.2rem; color: var(--accent); font-size: .86rem; }
.featured-project { min-height: 230px; }
.section-action { margin-top: 1.5rem; }
.experience-category { margin-top: 2rem; }
.experience-category .eyebrow { margin-bottom: .65rem; }
.role-meta { color: var(--cyan) !important; font: .78rem 'DM Mono', monospace !important; margin: .4rem 0 !important; }
.project-detail { max-width: 820px; padding-top: 7rem; }
.project-detail .eyebrow { margin-bottom: 1.2rem; }
.project-tech { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem; color: var(--cyan); font: 500 .78rem 'DM Mono', monospace; }
.project-tech svg { width: 1.15rem; height: 1.15rem; color: #e44d26; flex: 0 0 auto; }
.project-detail h1 { max-width: 760px; }
.project-detail .description-panel { margin-top: 2.5rem; }
.project-showcase { margin: 2.2rem 0 1.4rem; border: 1px solid var(--border); background: var(--panel); padding: .6rem; box-shadow: var(--shadow); }
.project-showcase img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: var(--panel-strong); }
.project-showcase figcaption { color: var(--muted); font: .7rem 'DM Mono', monospace; padding: .7rem .2rem .1rem; }
.project-links { display: flex; flex-wrap: wrap; gap: .8rem; }
.icon-btn { display: inline-flex; align-items: center; gap: .55rem; }
.icon-btn svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.description-panel h2 { color: var(--accent); font-size: 1rem; font-family: 'DM Mono', monospace; font-weight: 500; }
.description-space { min-height: 220px; color: var(--muted); border-left: 2px solid var(--accent); padding: 1rem 1.3rem; background: rgba(17, 27, 31, .6); }
.back-link { display: inline-block; margin-top: 2rem; color: var(--accent); text-decoration: none; font: .82rem 'DM Mono', monospace; }
.panel:hover, .project-card:hover, .timeline-item:hover, .contact-card:hover { border-color: var(--accent); transform: translateY(-3px); transition: all .2s ease; }
.project-card span { color: var(--cyan); font: .78rem 'DM Mono', monospace; }
.timeline { display: grid; gap: 1rem; }
.timeline-item { display: flex; gap: 1rem; align-items: flex-start; }
.timeline-image { width: 120px; height: 120px; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); flex-shrink: 0; filter: saturate(.7); }
.contact-card { text-align: center; }
.site-footer { text-align: center; padding: 2rem 1rem 3rem; color: var(--muted); border-top: 1px solid var(--border); background: var(--bg-soft); font-size: .82rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes float-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .site-header { padding: 1rem; }
  .site-nav { gap: .75rem; }
  .site-nav a { font-size: .75rem; }
  main { width: min(100% - 1.25rem, 620px); }
  .hero { grid-template-columns: 1fr; gap: 2rem; min-height: auto; padding-top: 5rem; }
  .hero h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .about-grid, .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-detail { padding-top: 5rem; }
  .code-backdrop pre { margin-left: 15%; opacity: .7; }
}
@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: .8rem;
  }
  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: .35rem .8rem;
  }
  .site-nav a {
    padding: .35rem 0;
  }
  main {
    width: min(100% - 1.5rem, 620px);
  }
  .project-detail {
    padding-top: 3rem;
  }
  .project-detail h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    overflow-wrap: anywhere;
  }
  .project-showcase {
    margin-top: 1.5rem;
    padding: .4rem;
  }
  .project-links .btn {
    justify-content: center;
    width: 100%;
  }
  .description-panel {
    padding: 1rem;
  }
  .description-space {
    padding: .8rem 1rem;
  }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
