:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-soft: #dbeafe;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --footer: #0f172a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px); border-bottom: 1px solid #e2e8f0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.brand-badge {
  width: 42px; height: 42px; border-radius: .65rem; background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem;
}
.brand-name { font-weight: 700; font-size: 1.05rem; }
.main-nav { display: flex; gap: 1.35rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.main-nav a.active, .main-nav a:hover { color: var(--blue); }
.btn-blue {
  background: var(--blue); color: #fff; border: none; padding: .6rem 1.15rem; border-radius: .5rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600;
}
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-outline-blue {
  border: 2px solid var(--blue); color: var(--blue); background: transparent; padding: .58rem 1.1rem;
  border-radius: .5rem; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600;
}
.btn-outline-blue:hover { background: var(--blue); color: #fff; }

.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.85rem; }
.section-head a { color: var(--blue); text-decoration: none; font-weight: 600; font-size: .92rem; }

#hero { padding-top: 3rem; padding-bottom: 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero-kicker { color: var(--muted); margin-bottom: .35rem; font-size: 1rem; }
.hero-grid h1 { font-size: 3rem; line-height: 1.1; margin: 0 0 .5rem; font-weight: 800; }
.hero-title { color: var(--blue); font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; }
.hero-grid p { color: var(--muted); max-width: 540px; margin-bottom: 1.25rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hero-social { display: flex; gap: .55rem; }
.hero-social a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue-light); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: .95rem;
}
.hero-photo-wrap { position: relative; max-width: 380px; margin-left: auto; }
.hero-photo-wrap::before {
  content: ""; position: absolute; inset: -12px -12px 12px 12px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-soft) 2px, transparent 2px); background-size: 16px 16px; z-index: 0;
}
.hero-photo-wrap::after {
  content: ""; position: absolute; width: 80px; height: 80px; border-radius: 50%;
  background: var(--blue); opacity: .12; top: 10%; right: -5%; z-index: 0;
}
.hero-photo {
  width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; position: relative; z-index: 1;
  border: 6px solid #fff; box-shadow: 0 20px 50px rgba(37,99,235,.18);
}

.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: #fff;
  border-radius: 1rem; padding: 1.75rem 1.5rem; box-shadow: 0 12px 40px rgba(15,23,42,.08);
  margin-top: 2.5rem; border: 1px solid #eef2f7;
}
.stat-item { text-align: center; }
.stat-item i { font-size: 1.6rem; color: var(--blue); display: block; margin-bottom: .35rem; }
.stat-item .num { font-size: 1.65rem; font-weight: 800; margin-bottom: .1rem; }
.stat-item p { margin: 0; color: var(--muted); font-size: .85rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.about-grid h2 { font-size: 1.85rem; margin: 0 0 1rem; }
.about-grid > div > p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; }
.check-list li { display: flex; align-items: center; gap: .55rem; margin-bottom: .65rem; font-weight: 500; }
.check-list i { color: var(--blue); }

.skills-block h3 { font-size: 1.85rem; margin: 0 0 1.25rem; }
.skill-row { margin-bottom: 1rem; }
.skill-row span { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .35rem; font-weight: 600; }
.skill-row .bar { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.skill-row .bar div { height: 100%; background: linear-gradient(90deg, var(--blue), #60a5fa); border-radius: 999px; }

.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; position: relative; }
.experience-grid::before {
  content: ""; position: absolute; top: 18px; left: 10%; right: 10%; height: 2px; background: #e2e8f0; z-index: 0;
}
.exp-card {
  background: #fff; border-radius: .85rem; padding: 1.5rem 1.25rem; border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(15,23,42,.04); position: relative; z-index: 1; margin-top: 1.5rem;
}
.exp-card::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--blue);
  position: absolute; top: -1.65rem; left: 50%; transform: translateX(-50%);
}
.exp-card .date { color: var(--blue); font-size: .82rem; font-weight: 700; margin-bottom: .35rem; }
.exp-card h4 { margin: 0 0 .25rem; font-size: 1rem; }
.exp-card .company { color: var(--muted); font-size: .88rem; margin-bottom: .5rem; font-weight: 600; }
.exp-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.project-card {
  background: #fff; border-radius: .85rem; overflow: hidden; border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15,23,42,.05); transition: transform .25s;
}
.project-card:hover { transform: translateY(-4px); }
.project-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.project-body { padding: 1.15rem; }
.project-body h4 { margin: 0 0 .35rem; font-size: 1rem; }
.project-body p { margin: 0 0 .75rem; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.project-tag {
  display: inline-block; background: var(--blue-light); color: var(--blue); font-size: .75rem;
  font-weight: 600; padding: .25rem .65rem; border-radius: 999px;
}

.cta-banner {
  background: var(--blue-light); border-radius: 1rem; padding: 2.5rem 2rem; text-align: center;
  border: 1px solid var(--blue-soft);
}
.cta-banner h3 { margin: 0 0 .5rem; font-size: 1.65rem; }
.cta-banner p { color: var(--muted); margin: 0 0 1.25rem; }

.education-list { display: grid; gap: 1rem; }
.edu-card {
  background: #fff; border-radius: .85rem; padding: 1.25rem 1.5rem; border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15,23,42,.04);
}
.edu-card h4 { margin: 0 0 .25rem; }
.edu-card .school { color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.edu-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.contact-section { text-align: center; max-width: 640px; margin: 0 auto; }
.contact-section h2 { font-size: 1.85rem; margin-bottom: .75rem; }
.contact-section p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.contact-links a { color: var(--blue); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }

.site-footer { background: var(--footer); color: #94a3b8; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.site-footer h5 { color: #fff; margin: 0 0 .85rem; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: #1e293b; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: .9rem;
}
.footer-bottom { border-top: 1px solid #334155; padding-top: 1rem; text-align: center; font-size: .85rem; }

.header-actions { display: flex; align-items: center; gap: .65rem; }
.mobile-toggle {
  display: none; background: var(--blue); color: #fff; border: none; width: 40px; height: 40px;
  border-radius: .5rem; cursor: pointer;
}

@media (max-width: 992px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 1rem 1.25rem; border-bottom: 1px solid #e2e8f0; box-shadow: 0 8px 24px rgba(0,0,0,.06);
  }
  .main-nav.show { display: flex; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero-grid, .about-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-bar, .experience-grid, .projects-grid { grid-template-columns: 1fr 1fr; }
  .experience-grid::before { display: none; }
  .hero-photo-wrap { margin: 0 auto; }
}
@media (max-width: 576px) {
  .stats-bar, .experience-grid, .projects-grid { grid-template-columns: 1fr; }
  .hero-grid h1 { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
