:root {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: #111827;
  --surface-soft: #1f2937;
  --surface-bright: #262f48;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --accent: #a855f7;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.14), transparent 30%),
              linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  color: var(--text);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: #ffffff;
  font-weight: 700;
}

.page-content {
  padding-bottom: 4rem;
}

.page-hero {
  padding: 5rem 0 6rem;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #ffffff;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 23, 0.18);
}

.page-hero .hero-inner,
.hero-section .hero-grid {
  position: relative;
  z-index: 1;
}

.page-hero-about {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(168, 85, 247, 0.22));
}

.page-hero-experience {
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.3), rgba(16, 185, 129, 0.2));
}

.page-hero-skills {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(245, 158, 11, 0.18));
}

.page-hero-contact {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.22));
}

.page-hero-experience {
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.3), rgba(16, 185, 129, 0.2));
}

.page-hero-skills {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(245, 158, 11, 0.18));
}

.page-hero-contact {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.22));
}

.hero-section {
  padding: 5rem 0 3rem;
}

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

.hero-avatar-card,
.hero-card-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 32px;
  padding: 1.8rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-avatar-card .hero-avatar-photo,
.hero-card-compact .hero-avatar-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.18);
}

.avatar-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.avatar-role {
  margin: 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.hero-avatar-card {
  padding: 2rem;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.02;
}

.hero-text {
  margin: 1.4rem 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.card-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding-bottom: 1.2rem;
  margin-bottom: 1.6rem;
}

.card-header .role {
  font-size: 1.1rem;
  font-weight: 700;
}

.card-header .location {
  margin-top: 0.45rem;
  color: var(--muted);
}

.contact-item {
  margin-bottom: 1rem;
  color: var(--muted);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header span {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.section-light {
  padding: 4rem 0;
}

.section-dark {
  background: var(--surface);
  padding: 4rem 0;
}

.about-grid,
.skills-grid,
.education-grid,
.contact-grid,
.card-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.section-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.section-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.link-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.contact-card-large {
  padding: 2.4rem;
}

.section-dark.page-links {
  padding: 4rem 0;
}

.about-card,
.skill-card,
.education-card,
.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.about-card h3,
.skill-card h3,
.education-card h3,
.contact-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.about-card ul,
.timeline-content ul {
  padding-left: 1.2rem;
  margin: 0;
  color: var(--muted);
}

.about-card li,
.timeline-content li {
  margin-bottom: 0.75rem;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.timeline-marker {
  width: 14px;
  height: 14px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.08);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
}

.timeline-content h3 {
  margin: 0 0 0.5rem;
}

.meta {
  margin: 0 0 1rem;
  color: var(--primary);
  font-weight: 600;
}

.contact-section {
  padding-bottom: 5rem;
}

.contact-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.highlight-card {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(168, 85, 247, 0.14));
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
}

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

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    padding-top: 0.5rem;
  }
}

@media (max-width: 620px) {
  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .container {
    width: calc(100% - 1.5rem);
  }
}
