/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 64px);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0c2340 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(37,99,235,.18) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 860px;
  margin: auto;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.3);
  color: #93c5fd;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 40px;
  margin-bottom: 1.75rem;
}
.hero-chip::before {
  content: '';
  width: 6px; height: 6px;
  background: #22d3ee;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.hero-title em {
  font-style: italic;
  color: #60a5fa;
}
.hero-sub {
  color: rgba(255,255,255,.55);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 2.75rem;
  line-height: 1.8;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s;
}
.btn-hero-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.4);
}
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85) !important;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: .9rem;
  transition: all .2s;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}
.hero-stats {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.75rem;
  color: #fff;
  line-height: 1;
  font-weight: 600;
}
.hero-stat-num sup { font-size: 1.4rem; color: #60a5fa; }
.hero-stat-label {
  font-size: .73rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .3rem;
}

/* ── Section layouts ─────────────────────────────────────────── */
.section {
  padding: 5rem 2rem;
}
.section-alt { background: #fff; }
.section-dark { background: #0f172a; }
.container-md {
  max-width: 1120px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: .6rem;
}
.section-label-light { color: #60a5fa; }
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #0f172a;
  margin-bottom: .6rem;
  line-height: 1.2;
}
.section-title-light { color: #fff; }
.section-desc {
  color: #64748b;
  font-size: .97rem;
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 3rem;
}
.section-desc-light { color: rgba(255,255,255,.5); }

/* ── Cards ───────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  border-color: #bfdbfe;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #0d9488);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.card:hover::before { transform: scaleX(1); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: .45rem;
  font-weight: 600;
}
.card-desc { font-size: .88rem; color: #64748b; line-height: 1.7; }

/* Dark card variant */
.card-dark {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: background .2s;
}
.card-dark:hover { background: rgba(255,255,255,.08); }
.card-dark .card-title { color: #fff; }
.card-dark .card-desc { color: rgba(255,255,255,.5); }

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; }
.tag {
  font-size: .7rem;
  font-weight: 600;
  font-family: 'DM Mono', monospace;
  padding: .2rem .6rem;
  border-radius: 20px;
  letter-spacing: .02em;
}
.tag-blue   { background: #dbeafe; color: #1d4ed8; }
.tag-teal   { background: #ccfbf1; color: #0f766e; }
.tag-amber  { background: #fef3c7; color: #92400e; }
.tag-slate  { background: #f1f5f9; color: #475569; }
.tag-dark   { background: #1e293b; color: rgba(255,255,255,.75); }

/* ── Timeline (experience) ───────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(#2563eb, #e2e8f0);
}
.tl-item { position: relative; margin-bottom: 2.5rem; }
.tl-dot {
  position: absolute; left: -2.55rem; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #2563eb;
  border: 3px solid #f8fafc;
  box-shadow: 0 0 0 2px #2563eb;
}
.tl-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.tl-role {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 600;
}
.tl-org { font-size: .85rem; color: #2563eb; font-weight: 600; margin: .2rem 0 .75rem; }
.tl-date {
  font-size: .74rem;
  background: #dbeafe;
  color: #1d4ed8;
  padding: .2rem .7rem;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 600;
}
.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.tl-points { list-style: none; padding: 0; }
.tl-points li {
  font-size: .88rem;
  color: #475569;
  padding: .3rem 0 .3rem 1.25rem;
  position: relative;
  line-height: 1.65;
}
.tl-points li::before {
  content: '▸';
  position: absolute; left: 0;
  color: #2563eb;
}

/* ── Skill bars ──────────────────────────────────────────────── */
.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.skill-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  padding: .9rem 1.1rem;
}
.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: .83rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: .5rem;
}
.skill-pct { color: #2563eb; }
.skill-track {
  background: #f1f5f9;
  border-radius: 20px;
  height: 5px;
}
.skill-fill {
  height: 5px;
  border-radius: 20px;
  background: linear-gradient(90deg, #2563eb, #0d9488);
}

/* ── About page ──────────────────────────────────────────────── */
.about-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.profile-card {
  background: #0f172a;
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  text-align: center;
  position: sticky;
  top: 80px;
}
.avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0d9488);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 2.2rem; color: #fff; font-weight: 600;
  margin: 0 auto 1.1rem;
  border: 4px solid rgba(255,255,255,.1);
}
.profile-name {
  font-family: 'Fraunces', serif;
  color: #fff; font-size: 1.3rem;
  margin-bottom: .2rem;
}
.profile-role { font-size: .82rem; color: rgba(255,255,255,.45); margin-bottom: 1.75rem; }
.profile-links { display: flex; flex-direction: column; gap: .5rem; }
.profile-link {
  display: flex; align-items: center; gap: .65rem;
  color: rgba(255,255,255,.6) !important;
  text-decoration: none !important;
  font-size: .83rem;
  padding: .5rem .75rem;
  border-radius: .4rem;
  background: rgba(255,255,255,.05);
  transition: background .2s, color .2s;
}
.profile-link:hover {
  background: rgba(255,255,255,.1);
  color: #fff !important;
}
.about-prose p {
  color: #334155;
  line-height: 1.85;
  margin-bottom: 1.3rem;
  font-size: .97rem;
}

/* ── Contact cards ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-card {
  display: flex; align-items: center; gap: .9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 1.1rem 1.3rem;
  text-decoration: none !important;
  color: #1e293b !important;
  transition: transform .2s, box-shadow .2s;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.contact-card-icon { font-size: 1.5rem; }
.contact-card strong { display: block; font-size: .88rem; color: #0f172a; }
.contact-card span  { font-size: .77rem; color: #64748b; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-stats { gap: 2rem; }
  .hero-stat-num { font-size: 2rem; }
  .about-wrap { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .skill-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
}

/* ── Utility ─────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
