:root {
  --bg: #0b1020;
  --bg-alt: #0f172a;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #e5eefb;
  --muted: #9fb0c8;
  --primary: #3b82f6;
  --primary-2: #22c55e;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #172554 0, #0b1020 35%, #060914 100%);
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}

main, nav, footer { position: relative; z-index: 1; }

.navbar {
  background: rgba(6, 9, 20, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s ease;
}
.navbar.scrolled { background: rgba(6, 9, 20, 0.92); }
.navbar-brand { color: #fff !important; }
.navbar .nav-link {
  color: rgba(229, 238, 251, 0.78) !important;
  font-weight: 500;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: #fff !important; }

.brand-mark,
.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}
.brand-mark { width: 2.4rem; height: 2.4rem; }

.hero-section,
.section { padding: 6rem 0; }
.section-alt { background: rgba(255,255,255,0.02); }
.section-contact { background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(8, 11, 19, 0.95)); }

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8fb3ff;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero-kicker { color: #fff; font-weight: 600; font-size: 1.15rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; }
.section-subtitle { color: var(--muted); max-width: 760px; margin: 0 auto; }

.glass-card,
.skill-card,
.stack-card,
.project-card,
.contact-card,
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.glass-card { border-radius: 28px; }

.hero-copy .display-3 {
  color: #fff;
  font-size: clamp(2.8rem, 8vw, 5rem);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  border: none;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.28);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255,255,255,0.2); }

.avatar-frame {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  padding: 0.4rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.95), rgba(139,92,246,0.95));
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 2.4rem;
  background: radial-gradient(circle at top, #1d4ed8, #111827);
}

.metric {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.metric strong { color: #fff; font-size: 1rem; }
.metric span { color: var(--muted); font-size: 0.85rem; }

.info-card p,
.skill-card p,
.stack-card p,
.project-card p,
.timeline-content p {
  color: var(--muted);
  margin-bottom: 0;
}

.skill-card,
.stack-card {
  height: 100%;
  border-radius: 24px;
  padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.skill-card:hover,
.stack-card:hover,
.project-card:hover,
.contact-card:hover,
.timeline-item:hover .timeline-content {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.35);
}
.skill-card i,
.stack-card i,
.contact-card i {
  font-size: 2rem;
  color: #93c5fd;
  margin-bottom: 1rem;
  display: inline-block;
}
.skill-card h3,
.stack-card h3,
.project-card h3,
.timeline-content h3,
.contact-card h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

.stack-card { text-align: left; }

.project-card {
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
}
.project-thumb {
  min-height: 180px;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #cbd5e1;
  background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(139,92,246,0.16));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.project-body { padding: 1.4rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.project-tags span {
  font-size: 0.82rem;
  color: #dbeafe;
  background: rgba(59,130,246,0.16);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.timeline {
  display: grid;
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  padding-left: 2.4rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, rgba(59,130,246,0.9), rgba(34,197,94,0.85));
  border-radius: 999px;
}
.timeline-item {
  position: relative;
  padding-left: 2rem;
}
.timeline-dot {
  position: absolute;
  left: -0.2rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  box-shadow: 0 10px 30px rgba(59,130,246,0.35);
}
.timeline-dot i { color: #fff; font-size: 0.9rem; }
.timeline-content {
  border-radius: 24px;
  padding: 1.5rem;
}
.timeline-meta { color: #93c5fd !important; font-size: 0.9rem; font-weight: 600; margin: 0.35rem 0 0.8rem; }

.contact-card {
  display: block;
  text-decoration: none;
  border-radius: 24px;
  padding: 1.7rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.contact-card:hover { background: var(--surface-strong); }
.contact-card p { color: var(--muted); }

.signature-box {
  text-align: center;
  padding-top: 1.5rem;
}
.signature-line {
  width: 140px;
  height: 1px;
  margin: 0 auto 1rem;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  background: rgba(6, 9, 20, 0.75);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@media (max-width: 991.98px) {
  .hero-section, .section { padding: 5rem 0; }
  .hero-copy { text-align: center; }
  .hero-badges { justify-content: center; }
  .timeline { padding-left: 1.2rem; }
}

@media (max-width: 575.98px) {
  .hero-copy .display-3 { font-size: 2.5rem; }
  .glass-card, .skill-card, .stack-card, .project-card, .timeline-content { border-radius: 20px; }
  .project-thumb { min-height: 140px; }
}
