/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #f8f9fc;
  --bg-alt:      #ffffff;
  --surface:     #ffffff;
  --border:      #e8ecf2;
  --text-primary: #1a1f2e;
  --text-secondary: #5a6478;
  --text-muted:  #8b96ab;
  --accent:      #4f7ef8;
  --accent-light: #eef2ff;
  --accent-hover: #3b6ae0;
  --linkedin:    #0a66c2;
  --linkedin-light: #e8f0f9;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.10);
  --radius:      12px;
  --radius-sm:   8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
}

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

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(248, 249, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s;
}

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

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 50%, #f5f8ff 100%);
  padding: 4rem 2rem;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.hero-bio {
  font-size: 0.975rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ─── Avatar ────────────────────────────────────────────────────────────────── */
.hero-avatar {
  flex-shrink: 0;
}

.avatar-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #7c9ff8 100%);
  padding: 4px;
  box-shadow: var(--shadow-lg);
}

.avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,126,248,.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(79,126,248,.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-size: 0.85rem;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* ─── Sections ──────────────────────────────────────────────────────────────── */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* ─── Resume Card ───────────────────────────────────────────────────────────── */
.resume-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.resume-block {
  margin-bottom: 2rem;
}

.resume-block:last-child {
  margin-bottom: 0;
}

.resume-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.resume-item {
  margin-bottom: 1.5rem;
}

.resume-item:last-child {
  margin-bottom: 0;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.resume-role {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.resume-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
  background: var(--bg);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
}

.resume-org {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 0.4rem;
}

.resume-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── Skills ────────────────────────────────────────────────────────────────── */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid #d0dcff;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
}

/* ─── Contact ───────────────────────────────────────────────────────────────── */
.contact-container {
  text-align: center;
}

.contact-container .section-sub {
  margin-bottom: 2.5rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-linkedin {
  background: var(--linkedin-light);
  color: var(--linkedin);
}

.contact-info {
  flex: 1;
  text-align: left;
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-arrow {
  color: var(--text-muted);
  transition: transform 0.15s, color 0.15s;
}

.contact-card:hover .contact-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-bio {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .avatar-ring {
    width: 130px;
    height: 130px;
  }

  .avatar-initials {
    font-size: 1.8rem;
  }

  .resume-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .nav-links {
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 3rem 1.25rem;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }
}
