:root {
  --bg: #05070f;
  --panel: rgba(12, 18, 33, 0.82);
  --text: #f5f8ff;
  --muted: #a8b8db;
  --line: rgba(137, 161, 223, 0.35);
  --blue: #5ba1ff;
  --cyan: #63f5de;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 40%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: -3;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -2;
  opacity: .55;
  pointer-events: none;
}
.orb-1 { width: 360px; height: 360px; background: #2f6cff; top: -90px; left: -90px; }
.orb-2 { width: 300px; height: 300px; background: #00d9b8; right: -80px; top: 20%; }

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .8rem 4vw;
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 15, .6);
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 20;
}
.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .06em; }
nav { display: flex; gap: 1rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--text); }
.cta { color: var(--text); text-decoration: none; border: 1px solid var(--line); padding: .45rem .8rem; border-radius: 999px; }

main {
  width: min(1080px, 92vw);
  margin: 1.4rem auto 4rem;
}
.section { margin: 2.8rem 0; }

.hero {
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kicker { color: var(--cyan); letter-spacing: .09em; font-size: .78rem; }
h1 { margin: .35rem 0; font-size: clamp(2rem, 6vw, 4.6rem); }
.subtitle { margin: .15rem 0; color: #d1ddf8; font-size: clamp(1rem, 2vw, 1.4rem); }
.meta { color: var(--muted); }

.hero-actions { margin-top: 1rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.btn {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: .72rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}
.btn-primary {
  border: none;
  background: linear-gradient(90deg, #2a74ff, #27b9dd);
}

.stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.stats article {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: .95rem;
}
.num { font-size: 1.9rem; margin: 0; color: var(--cyan); font-weight: 700; }
.stats span { color: var(--muted); font-size: .9rem; }

.panel {
  padding: 1.2rem 1.25rem;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
}

.exp-card {
  padding: 1.1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 24, 44, .9), rgba(10, 16, 31, .88));
  border: 1px solid rgba(140, 167, 235, .25);
  margin-top: .95rem;
  transform-style: preserve-3d;
  transition: transform .2s ease;
}
.exp-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.exp-head h3 { margin: 0; }
.exp-head span { color: var(--muted); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.project-item {
  background: rgba(9, 14, 28, 0.85);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: .95rem;
  transition: transform .2s ease, border-color .2s ease;
}
.project-item:hover { transform: translateY(-4px); border-color: rgba(99,245,222,.7); }
.project-item h3 { margin: 0 0 .35rem; }
.project-item p { margin: 0; color: var(--muted); }

.contact { text-align: center; }


.project-grid.detailed .project-item {
  min-height: 220px;
}
.project-item ul {
  margin-top: .65rem;
  padding-left: 1.05rem;
}
.project-item li {
  color: #dce6ff;
  margin: .38rem 0;
  line-height: 1.4;
}
.project-item strong {
  color: var(--cyan);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  nav { display: none; }
  .stats { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}
