:root {
  --blue: #1a6bd6;
  --blue-light: #e8f0fc;
  --blue-mid: #c5d8f8;
  --dark: #111827;
  --mid: #374151;
  --muted: #6b7280;
  --border: #e5e9f0;
  --bg: #f7f9fc;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV WRAPPER ── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  letter-spacing: -0.3px;
}
.nav-brand span { color: var(--blue); }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: background 0.2s;
}
.hamburger:hover span { background: var(--blue); }

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem 1rem;
  gap: 0.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  z-index: 99;
}
.mobile-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mid);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue); text-decoration: none; }

/* ── LAYOUT ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 3.5rem 0; scroll-margin-top: 56px; }
section + section { border-top: 1px solid var(--border); }

/* ── SECTION HEADINGS ── */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.75rem;
}
.section-title svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── HERO ── */
#hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.hero-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 3px solid var(--blue-mid);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-avatar svg {
  width: 54px;
  height: 54px;
  color: var(--blue);
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.hero-text .title-badge {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.85rem;
  border-radius: 99px;
}
.hero-text .bio {
  margin-top: 1rem;
  color: var(--mid);
  max-width: 520px;
  font-size: 0.95rem;
}
.hero-links {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  border: 1.5px solid var(--blue-mid);
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.18s, border-color 0.18s;
}
.hero-link:hover { background: var(--blue-mid); text-decoration: none; }
.hero-link svg { width: 14px; height: 14px; }

/* ── CARD ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
}
.card + .card { margin-top: 1rem; }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.about-card h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.about-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.skill-group {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.skill-group h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.skill-group h3 svg { width: 13px; height: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid var(--blue-mid);
  border-radius: 99px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
}
.tag img { width: 14px; height: 14px; object-fit: contain; }

/* ── EXPERIENCE ── */
.exp-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
}
.exp-card + .exp-card { margin-top: 1rem; }
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.exp-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}
.exp-meta {
  text-align: right;
  flex-shrink: 0;
}
.exp-company {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}
.exp-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.exp-team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.exp-team-badge svg { width: 11px; height: 11px; }
.exp-bullets { list-style: none; padding: 0; }
.exp-bullets li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.6;
}
.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.outcome {
  font-weight: 600;
  color: var(--dark);
}

/* ── EDUCATION ── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.edu-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.edu-card .badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid var(--blue-mid);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.65rem;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}
.edu-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
}
.edu-card .inst {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 500;
  margin-top: 0.3rem;
}
.edu-card .dates {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── FOOTER / CONTACT ── */
#contact {
  background: var(--dark);
  color: #e5e7eb;
  border-top: none;
  padding: 3.5rem 0 2.5rem;
}
#contact .section-title { color: var(--blue-mid); }
.contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-left h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.contact-left p {
  font-size: 0.9rem;
  color: #9ca3af;
  max-width: 340px;
}
.contact-links { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1.5rem; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s;
}
.contact-link:hover { color: #fff; text-decoration: none; }
.contact-link svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.contact-form { flex: 1; min-width: 260px; max-width: 360px; }
.contact-form h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 1rem;
}
.form-row { margin-bottom: 0.75rem; }
.form-row input,
.form-row textarea {
  width: 100%;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: var(--radius-sm);
  color: #f9fafb;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #6b7280; }
.form-row input:focus,
.form-row textarea:focus { border-color: var(--blue); }
.form-row textarea { resize: vertical; min-height: 90px; }
.form-recaptcha--hidden {
  display: none !important;
}
.form-recaptcha .g-recaptcha { display: inline-block; }
.form-status {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
}
.btn-submit {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-submit:hover { background: #1558b0; }
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.footer-copy {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1f2937;
  font-size: 0.78rem;
  color: #4b5563;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero-text h1 { font-size: 2rem; white-space: normal; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .exp-header { flex-direction: column; gap: 0.25rem; }
  .exp-meta { text-align: left; }
  .contact-inner { flex-direction: column; }
  .contact-form { max-width: 100%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
