/* ===== TOKENS ===== */
:root {
  --bg: #080E1A;
  --surface: #0F1729;
  --surface-2: #141F35;
  --surface-3: #1A2744;
  --text: #E8F0FE;
  --muted: #8895B3;
  --faint: #404D6A;
  --primary: #3B82F6;
  --primary-hover: #5B9BFA;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --border: rgba(148, 163, 220, 0.12);
  --border-hover: rgba(148, 163, 220, 0.28);
  --container: 1140px;
  --radius: 18px;
  --radius-sm: 10px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,130,246,.18), transparent);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== CONTAINER ===== */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ===== NAVBAR ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(8, 14, 26, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1rem;
}
nav { display: flex; align-items: center; gap: 6px; }
nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--muted);
  transition: color .2s, background .2s;
}
nav a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta {
  background: var(--surface-2) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(59,130,246,.3);
}
.nav-cta:hover { background: var(--surface-3) !important; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem;
  border: 1px solid var(--border);
  transition: all .2s; cursor: pointer;
}
.btn-primary {
  background: var(--primary); color: #fff;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(59,130,246,.35);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 0 32px rgba(59,130,246,.5); }
.btn-secondary {
  background: var(--surface-2); color: var(--text);
}
.btn-secondary:hover { background: var(--surface-3); border-color: var(--border-hover); }
.btn-ghost {
  background: transparent; color: var(--muted);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-sm { padding: 8px 14px; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* ===== HERO ===== */
.hero {
  padding: 100px 0 80px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(59,130,246,.35);
  background: rgba(59,130,246,.1);
  color: #93C5FD;
  border-radius: 999px;
  font-size: .82rem; font-weight: 500;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  line-height: 1.05; font-weight: 800;
  max-width: 14ch;
  background: linear-gradient(135deg, #fff 40%, #93C5FD);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}
.hero p {
  color: var(--muted); font-size: 1.05rem; line-height: 1.75;
  max-width: 58ch; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section { padding: 60px 0 80px; }
.section-head { margin-bottom: 36px; }
.eyebrow {
  color: #60A5FA; font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  display: inline-block; margin-bottom: 12px;
}
.section-head h2, #about h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 10px;
}
.section-head p {
  color: var(--muted); max-width: 52ch; font-size: .95rem; line-height: 1.6;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(59,130,246,.2);
  border-color: rgba(59,130,246,.3);
}
.project-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-3);
}
.project-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.project-card:hover .project-image img { transform: scale(1.03); }
.project-live-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.65); color: #fff;
  padding: 6px 12px; border-radius: 8px;
  font-size: .78rem; font-weight: 500;
  backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .2s;
  border: 1px solid rgba(255,255,255,.15);
}
.project-card:hover .project-live-btn { opacity: 1; }
.project-content { padding: 22px 24px 24px; }
.project-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.project-meta h3 { font-size: 1.05rem; font-weight: 700; }
.project-status {
  font-size: .72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
}
.status-live {
  background: rgba(34,197,94,.15);
  color: #4ADE80;
  border: 1px solid rgba(34,197,94,.3);
}
.project-content p {
  color: var(--muted); font-size: .88rem; line-height: 1.65; margin-bottom: 16px;
}
.stack-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px;
}
.stack-tags span {
  background: rgba(59,130,246,.12);
  color: #93C5FD;
  border: 1px solid rgba(59,130,246,.2);
  padding: 3px 10px; border-radius: 6px;
  font-size: .75rem; font-weight: 500;
}
.project-links { display: flex; gap: 8px; }

/* ===== STACK GRID ===== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;
}
.stack-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: background .2s, border-color .2s, transform .2s;
}
.stack-item:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.stack-item span { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center;
}
#about p {
  color: var(--muted); font-size: .95rem; line-height: 1.75; max-width: 56ch;
  margin-bottom: 16px;
}
.about-facts {
  display: flex; gap: 32px; margin-top: 32px;
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.fact-label { font-size: .8rem; color: var(--muted); }
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.about-card-row {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--muted);
}
.about-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.about-dot.green { background: #4ADE80; box-shadow: 0 0 8px #4ADE80; }
.about-dot.blue { background: #60A5FA; box-shadow: 0 0 8px #60A5FA; }
.about-dot.yellow { background: #FBBF24; box-shadow: 0 0 8px #FBBF24; }

/* ===== CONTACT ===== */
.contact-section {
  margin: 20px 40px 60px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 72px 0;
  text-align: center;
}
.contact-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800; margin-bottom: 14px;
}
.contact-section p {
  color: var(--muted); max-width: 50ch; margin: 0 auto 36px;
  font-size: .95rem; line-height: 1.7;
}
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--faint);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { display: none; }
  .contact-section { margin: 20px 16px 60px; }
}
@media (max-width: 640px) {
  .hero { padding: 72px 0 60px; }
  .nav nav { gap: 2px; }
  nav a { padding: 8px 10px; font-size: .82rem; }
  .about-facts { gap: 20px; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
}