:root {
  --bg: #0b1220;
  --bg-soft: #121a2b;
  --card: rgba(18, 26, 43, 0.88);
  --card-2: rgba(255, 255, 255, 0.04);
  --text: #e8eefc;
  --muted: #a8b4d1;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #66b3ff;
  --brand-2: #8ef0c0;
  --accent: #f7c66b;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(102, 179, 255, 0.18), transparent 30%),
    radial-gradient(circle at left center, rgba(142, 240, 192, 0.12), transparent 28%),
    linear-gradient(180deg, #08101d 0%, #0b1220 40%, #0c1424 100%);
  color: var(--text);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 16, 29, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 1rem;
}

.brand span {
  color: var(--brand);
}

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

.nav-links a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}

.hero-card,
.panel,
.card,
.stat,
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-card {
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(102, 179, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(142, 240, 192, 0.2);
  color: var(--brand-2);
  background: rgba(142, 240, 192, 0.08);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 .grad {
  background: linear-gradient(90deg, #ffffff 0%, #8ef0c0 48%, #66b3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.subhead {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(102, 179, 255, 0.22), rgba(142, 240, 192, 0.16));
  border-color: rgba(102, 179, 255, 0.28);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 22px;
  height: 100%;
}

.quick-box {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.quick-box .label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.quick-box .value {
  font-size: 1.05rem;
  font-weight: 700;
}

.quick-box.full {
  grid-column: 1 / -1;
}

section {
  padding: 22px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.stat {
  padding: 22px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stat .n {
  font-size: clamp(1.35rem, 1.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  white-space: normal;
}

.stat .t {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card {
  padding: 24px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7e2fb;
  font-size: 0.93rem;
  transition: 0.2s ease;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-btn {
  cursor: pointer;
  border: 1px solid rgba(102, 179, 255, 0.22);
  background: linear-gradient(
    135deg,
    rgba(102, 179, 255, 0.14),
    rgba(142, 240, 192, 0.08)
  );
  color: #dce9ff;
  padding: 11px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
  font: inherit;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.filter-btn.active,
.filter-btn:hover {
  color: #ffffff;
  border-color: rgba(102, 179, 255, 0.5);
  background: linear-gradient(
    135deg,
    rgba(102, 179, 255, 0.32),
    rgba(142, 240, 192, 0.18)
  );
  box-shadow:
    0 0 0 1px rgba(102, 179, 255, 0.18),
    0 8px 20px rgba(102, 179, 255, 0.18);
  transform: translateY(-1px);
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, rgba(102, 179, 255, 0.45), rgba(142, 240, 192, 0.35));
}

.item {
  position: relative;
  margin-left: 42px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  transition: 0.28s ease;
}

.item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 6px rgba(102, 179, 255, 0.09);
}

.item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.item-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.role {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0;
}

.company {
  margin: 2px 0 0;
  color: var(--brand-2);
  font-weight: 600;
  font-size: 0.95rem;
}

.period {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.92rem;
}

.item p {
  color: var(--muted);
  margin: 10px 0 10px;
}

.bullets {
  margin: 0;
  padding-left: 18px;
  color: #d8e4ff;
}

.bullets li + li {
  margin-top: 8px;
}

.cert-list,
.edu-list {
  display: grid;
  gap: 12px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.list-row strong {
  display: block;
}

.list-row span {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.contact-card {
  padding: 18px;
}

.contact-card .k {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.contact-card .v {
  font-weight: 700;
  word-break: break-word;
}

footer {
  padding: 18px 0 42px;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card .v a {
  color: var(--text);
  text-decoration: none;
  transition: 0.25s ease;
}

.contact-card .v a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.skills-divider {
  width: 100%;
  height: 1px;
  margin: 18px 0 22px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 179, 255, 0.4),
    rgba(142, 240, 192, 0.35),
    rgba(102, 179, 255, 0.4),
    transparent
  );
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .stats,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-grid,
  .grid-2,
  .stats,
  .contact-grid,
  .quick-info {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .card,
  .stat,
  .contact-card,
  .panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .item {
    margin-left: 34px;
  }

  .timeline::before {
    left: 12px;
  }

  .item::before {
    left: -28px;
  }

}
