* {
  box-sizing: border-box;
}

:root {
  --bg: #0b1020;
  --bg-alt: #121a2d;
  --panel: rgba(17, 24, 39, 0.8);
  --panel-2: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --green: #34d399;
  --shadow: rgba(15, 23, 42, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, rgba(99,102,241,0.2), transparent 25%) , var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.site-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.nav-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.8rem;
  padding: 0.78rem 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-button,
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 18px 30px rgba(99, 102, 241, 0.22);
}

.btn-secondary {
  background: rgba(148,163,184,0.08);
  border: 1px solid var(--line);
  color: var(--text);
}

.nav-button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  inset: 6% 24% auto auto;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(99,102,241,0.28), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow,
.mini-label {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a5b4fc;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.title {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38rem;
}

.cta-row {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.info-strip {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-badge {
  width: min(100%, 22rem);
  aspect-ratio: 1;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.13), rgba(139,92,246,0.15));
  border: 1px solid rgba(99,102,241,0.25);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45);
}

.profile-badge span {
  font-size: clamp(4.8rem, 10vw, 8.2rem);
  font-weight: 900;
  color: rgba(165, 180, 252, 0.35);
}

.section-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.about-text {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.01rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  font-size: 1rem;
}

.success {
  color: var(--green);
}

.timeline {
  display: grid;
  gap: 1.2rem;
}

.timeline-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.3rem 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99,102,241,0.42);
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.icon-box {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  flex-shrink: 0;
}

.icon-box svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-box.purple {
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
}

.icon-box.blue {
  background: rgba(56,189,248,0.12);
  color: #7dd3fc;
}

.timeline-info {
  flex: 1;
}

.timeline-info h3 {
  margin: 0;
  font-size: 1.08rem;
}

.timeline-info p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.date {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.timeline-card ul {
  margin: 0 0 0 0.25rem;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.5rem;
}

.skill-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.skill-card,
.project-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
}

.skill-card h3,
.project-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.skill-card span {
  display: inline-flex;
  margin: 0.2rem 0.35rem 0.2rem 0;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(148,163,184,0.2);
  color: var(--muted);
  background: rgba(148,163,184,0.04);
  font-size: 0.75rem;
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-visual {
  height: 10rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
}

.project-visual.violet {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(168,85,247,0.22));
}

.project-visual.blue {
  background: linear-gradient(135deg, rgba(14,165,233,0.25), rgba(59,130,246,0.22));
}

.project-visual.green {
  background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(52,211,153,0.24));
}

.project-card h3,
.project-card p {
  padding-left: 1rem;
  padding-right: 1rem;
}

.project-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.contact-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.contact-links {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  color: var(--muted);
}

.contact-cta {
  justify-content: center;
  margin-top: 1.5rem;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 2.8rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

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

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

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-badge {
    margin: 0 auto;
  }

  .about-grid,
  .skill-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .info-strip,
  .cta-row {
    justify-content: center;
  }
}
