/* Typography & theme */
:root {
  --bg: #05060a;
  --panel: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e7ebf6;
  --muted: #b5bdd5;
  --accent: #9b8cff;
  --accent-2: #5ce1e6;
  --shadow: 0 10px 50px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(120% 120% at 20% 20%, rgba(155, 140, 255, 0.15), transparent),
    radial-gradient(90% 90% at 80% 0%, rgba(92, 225, 230, 0.16), transparent),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: -0.01em;
  padding-bottom: 48px;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.7;
  z-index: 0;
}

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

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(14px);
  background: rgba(5, 6, 10, 0.6);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0b0e19;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
}

.brand-name {
  font-weight: 700;
  margin: 0;
}

.brand-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-weight: 500;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

main {
  padding: 48px 24px 0;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

h1 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.1;
  margin: 12px 0 12px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.hero .lede {
  max-width: 720px;
}

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

.btn {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0e19;
  box-shadow: var(--shadow);
}

.btn.secondary {
  background: var(--panel);
}

.btn.ghost {
  background: transparent;
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
}

.glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card {
  position: sticky;
  top: 90px;
}

.photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
  background: linear-gradient(140deg, rgba(155, 140, 255, 0.5), rgba(92, 225, 230, 0.4));
  display: grid;
  place-items: center;
}

.photo-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 30% 30%, rgba(155, 140, 255, 0.6), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(92, 225, 230, 0.55), transparent 50%);
  filter: blur(30px);
  opacity: 0.75;
  z-index: 0;
}

.profile-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.meta {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}

.meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
}

.meta span {
  color: var(--muted);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(155, 140, 255, 0.14);
  border: 1px solid rgba(155, 140, 255, 0.3);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.section {
  margin-top: 72px;
}

.section-header h2 {
  margin: 6px 0 6px;
  font-size: 32px;
}

.grid.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.grid.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.bullets {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.bullets.tight {
  gap: 6px;
}

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

.timeline-item .title {
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline-meta .label {
  color: var(--muted);
  margin: 0;
}

.timeline-meta .title {
  margin: 4px 0 8px;
}

.project .badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.project h3 {
  margin: 6px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.contact {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 64px;
}

.footer {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 18px 24px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.footer .dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
}

/* Motion */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .navbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-card {
    position: static;
  }
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main {
    padding: 32px 16px 0;
  }
  .navbar {
    padding: 14px 16px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .nav-actions a {
    display: none;
  }
  .cta-row {
    flex-direction: column;
  }
  .meta li {
    flex-direction: column;
    align-items: flex-start;
  }
}

