:root {
  --primary: #fbbf77; /* warm amber */
  --primary-strong: #f59e0b; /* stronger amber */
  --accent-teal: #facc15; /* golden highlight */
  --accent-purple: #d97757; /* warm clay accent */
  --glass-bg: rgba(38, 22, 12, 0.96);
  --glass-border: rgba(248, 250, 252, 0.08);
  --text: #fef9f5;
  --muted: #e5d4c3;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 10, 6, 0.9);
}
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  background: #1a110b;
  color: var(--text);
  min-height: 100vh;
}
.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(250, 204, 171, 0.2), transparent 60%), radial-gradient(circle at 90% 20%, rgba(248, 191, 120, 0.18), transparent 55%), radial-gradient(circle at 15% 85%, rgba(180, 83, 9, 0.2), transparent 55%), radial-gradient(circle at 85% 90%, rgba(107, 70, 44, 0.25), transparent 60%), linear-gradient(145deg, #1a110b 0%, #120b07 40%, #1c130b 100%);
  z-index: -2;
}
.page {
  position: relative;
  z-index: 0;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.glass {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: radial-gradient(circle at 10% 0%, rgba(248, 191, 120, 0.16), transparent 60%), radial-gradient(circle at 100% 100%, rgba(68, 32, 12, 0.55), transparent 60%), linear-gradient(135deg, rgba(38, 22, 12, 0.98), rgba(22, 13, 7, 0.96));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}
/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.4rem;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.brand-mark {
  width: 50px;
  height: 50px;
}
/*.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background:
    radial-gradient(circle at 20% 20%, #fef3e7 0, #fbbf77 35%, #b45309 65%, #180c06 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #1a110b;
  box-shadow: 0 0 0 1px rgba(15, 10, 6, 0.9), 0 12px 26px rgba(15, 10, 6, 0.95);
}*/
.brand-name {
  font-weight: 600;
  letter-spacing: -0.03em;
}
.brand-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 0.2rem;
}
.nav-link:hover {
  color: var(--text);
}
.nav-link.active::after, .nav-link:focus-visible::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.4rem;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--primary), var(--accent-purple));
}
/* Hero */
.hero {
  padding: 3.2rem 0 2.9rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.4rem;
  align-items: center;
}
.hero-text {
  border-radius: 28px;
  padding: 1.9rem 1.8rem;
}
.hero-title {
  margin: 0;
  font-size: clamp(2rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.hero-lede {
  margin-top: 1rem;
  font-size: 0.98rem;
  color: var(--muted);
}
.hero-meta {
  margin-top: 1.2rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.hero-figure {
  border-radius: 24px;
  padding: 0.7rem;
  background: radial-gradient(circle at 0% 0%, rgba(248, 191, 120, 0.1), transparent 60%), rgba(24, 16, 11, 0.96);
  border: 1px solid rgba(248, 250, 252, 0.06);
  box-shadow: 0 18px 44px rgba(15, 10, 6, 0.95);
}
.hero-figure img {
  max-width: 100%;
  border-radius: 18px;
  display: block;
}
/* Sections & cards */
.section {
  padding: 3rem 0 3.1rem;
}
.section-header {
  margin-bottom: 1.7rem;
}
.section-header h1, .section-header h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.section-header p {
  margin: 0.45rem 0 0;
  font-size: 0.96rem;
  color: var(--muted);
}
.card {
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(250, 204, 171, 0.08), transparent 60%), rgba(26, 17, 11, 0.98);
  border: 1px solid rgba(248, 250, 252, 0.08);
  box-shadow: var(--shadow-soft);
}
.card h1.hero-title {
  font-size: 1.7rem;
}
.card p {
  font-size: 0.94rem;
  color: var(--muted);
}
.card p + p {
  margin-top: 0.75rem;
}
/* Grids / panels */
.grid-2, .grid-3 {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.panel {
  border-radius: 18px;
  padding: 1.2rem 1.2rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(250, 204, 171, 0.08), transparent 55%), linear-gradient(145deg, rgba(42, 26, 15, 0.98), rgba(31, 20, 12, 0.96));
  border: 1px solid rgba(248, 250, 252, 0.06);
  box-shadow: 0 12px 30px rgba(15, 10, 6, 0.9);
}
.panel h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
}
.panel .lead {
  font-size: 0.9rem;
  color: var(--muted);
}
.figure {
  margin: 0.7rem 0;
}
.figure img {
  max-width: 100%;
  border-radius: 16px;
  display: block;
}
/* Utility */
a {
  color: var(--primary);
}
a:hover {
  color: var(--primary-strong);
}
ul {
  padding-left: 1.2rem;
  font-size: 0.94rem;
  color: var(--muted);
}
/* Footer */
.site-footer {
  margin-top: 1.6rem;
/*  border-radius: 24px 24px 0 0;*/
  margin: 0 auto;
  width: 100%;
  text-align: center;
  display: block;
  justify-content: center;
}
.footer-inner {
  padding: 1.1rem 0.9rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 auto;
  text-align: center;
  justify-content: center;
}
.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}
.footer-inner a:hover {
  color: var(--text);
}
/* Responsive */
@media (max-width: 880px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-figure {
    order: -1;
  }
  .site-footer {
    border-radius: 0;
  }
}

/* =========
   BACK TO TOP CHIP
   ========= */
.back-to-top-wrapper {
  margin-bottom: 1rem;
  text-align: center !important;
}
.back-to-top-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--color-text-main);
  font-size: 0.82rem;
  text-decoration: none;
}
.back-to-top-chip:hover {
  background-color: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* Grids / panels */
.grid-2, .grid-3 {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Unified education grid: 3 columns, Certifications spans 2 */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;        /* matches .grid-2 spacing */
  margin-top: 1.5rem; /* matches top row offset inside card */
}

.education-grid .span-2 {
  grid-column: span 2;
}

/* Responsive stacking for education grid */
@media (max-width: 880px) {
  .education-grid {
    grid-template-columns: 1fr;
  }
  .education-grid .span-2 {
    grid-column: span 1;
  }
}
