/* ── Exact tokens from santifer.io source ── */
:root {
  /* Light theme (default) */
  --background:        220 6% 96%;
  --foreground:        240 10% 4%;
  --muted:             220 6% 86%;
  --muted-foreground:  240 5% 28%;
  --primary:           187 74% 28%;
  --primary-foreground:0 0% 100%;
  --accent:            270 70% 38%;
  --accent-foreground: 0 0% 100%;
  --border:            240 6% 85%;
  --card:              0 0% 100%;
  --card-foreground:   240 10% 4%;
  --gradient-from:     187 86% 53%;
  --gradient-to:       270 91% 65%;
  --gold:              43 76% 38%;
  --success:           142 72% 29%;
  --hero-orb-primary:  187 74% 28% / .15;
  --hero-orb-accent:   270 70% 38% / .12;
  --dot-grid:          240 5% 35% / .25;

  --font-sans:    "DM Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;

  --radius-sm: .25rem;
  --radius-md: .375rem;
  --radius-lg: .5rem;
  --radius-xl: .75rem;
  --radius-2xl: 1rem;
  --max-w: 48rem;
}

/* Dark theme */
.dark {
  --background:        240 6% 10%;
  --foreground:        0 0% 93%;
  --muted:             240 4% 14%;
  --muted-foreground:  240 5% 65%;
  --primary:           187 86% 53%;
  --primary-foreground:240 10% 4%;
  --accent:            270 91% 70%;
  --accent-foreground: 0 0% 100%;
  --border:            240 4% 20%;
  --card:              240 5% 13%;
  --card-foreground:   0 0% 93%;
  --gradient-from:     187 86% 53%;
  --gradient-to:       270 91% 78%;
  --gold:              45 97% 49%;
  --success:           142 71% 45%;
  --hero-orb-primary:  187 86% 53% / .08;
  --hero-orb-accent:   270 91% 70% / .1;
  --dot-grid:          240 5% 65% / .15;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  border: 0 solid hsl(var(--border));
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; font-size: 16px; }
img { display: block; max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }

/* ── Base ── */
body {
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(var(--background) / .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, hsl(var(--gradient-from)), hsl(var(--gradient-to)));
  color: hsl(var(--primary-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: .8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a.active { color: hsl(var(--foreground)); }

.nav-right {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.theme-toggle:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary) / .5);
}

/* Show sun in dark mode, moon in light mode */
.dark  .icon-sun  { display: block; }
.dark  .icon-moon { display: none; }
.light .icon-sun  { display: none; }
.light .icon-moon { display: block; }

.nav-hire {
  font-size: .8rem;
  font-weight: 600;
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / .35);
  padding: .35rem .875rem;
  border-radius: var(--radius-md);
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.nav-hire:hover {
  background: hsl(var(--primary) / .1);
  border-color: hsl(var(--primary));
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  animation: hero-glow 8s ease-in-out infinite;
}
.orb-cyan {
  width: 550px;
  height: 550px;
  background: hsl(var(--hero-orb-primary));
  top: -33%;
  left: -10%;
}
.orb-purple {
  width: 550px;
  height: 550px;
  background: hsl(var(--hero-orb-accent));
  top: -25%;
  right: -10%;
  animation-duration: 11s;
  animation-direction: reverse;
}

@keyframes hero-glow {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-20px) scale(1.05); }
  66%      { transform: translate(-20px,30px) scale(.95); }
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, hsl(var(--dot-grid)) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-avatar-wrap { margin-bottom: 1.5rem; }

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid hsl(var(--border));
  box-shadow: 0 0 0 4px hsl(var(--primary) / .15);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  font-weight: 500;
  color: hsl(var(--success));
  background: hsl(var(--success) / .1);
  border: 1px solid hsl(var(--success) / .25);
  padding: .3rem .75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--success));
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: .5rem;
  background: linear-gradient(135deg, hsl(var(--gradient-from)) 0%, hsl(var(--gradient-to)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: 1.0625rem;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  margin-bottom: 1rem;
}

.hero-bio {
  font-size: .9375rem;
  color: hsl(var(--muted-foreground));
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  padding: .55rem 1.125rem;
  border-radius: var(--radius-lg);
  transition: all .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, hsl(var(--gradient-from)), hsl(var(--gradient-to)));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}
.btn-outline:hover {
  border-color: hsl(var(--primary) / .5);
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .05);
}
.btn-lg { padding: .7rem 1.4rem; font-size: .9375rem; }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  width: 100%;
  max-width: 400px;
  justify-content: center;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .7rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 500;
}
.stat-sep {
  width: 1px;
  height: 32px;
  background: hsl(var(--border));
  flex-shrink: 0;
}

/* ── MAIN ── */
.main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* ── SECTIONS ── */
.section { padding: 4rem 0 0; }

.section-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -.015em;
  margin-bottom: .5rem;
}

.section-sub {
  font-size: .9rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.75rem;
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover {
  border-color: hsl(var(--primary) / .4);
  box-shadow: 0 8px 24px hsl(var(--primary) / .07);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-icon { font-size: 1.375rem; line-height: 1; }

.card-badge {
  font-size: .68rem;
  font-weight: 600;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .1);
  border: 1px solid hsl(var(--primary) / .25);
  padding: .2rem .6rem;
  border-radius: 9999px;
  letter-spacing: .03em;
}

.proj-type {
  font-size: .68rem;
  font-weight: 600;
  color: hsl(var(--accent));
  background: hsl(var(--accent) / .1);
  border: 1px solid hsl(var(--accent) / .2);
  padding: .2rem .6rem;
  border-radius: 9999px;
  letter-spacing: .03em;
}

.card-title {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  color: hsl(var(--card-foreground));
  line-height: 1.3;
}

.card-desc {
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  flex: 1;
}

.card-metric {
  font-size: .78rem;
  color: hsl(var(--primary));
  font-family: var(--font-mono);
  opacity: .75;
}

/* ── TAGS ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.tag {
  font-size: .72rem;
  font-weight: 500;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  padding: .2rem .625rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  transition: border-color .15s, color .15s, background .15s;
}
.tag:hover {
  border-color: hsl(var(--primary) / .4);
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
}
.tag-primary {
  background: hsl(var(--primary) / .1);
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / .25);
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid hsl(var(--border));
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
}

.tl-item {
  position: relative;
  padding: 0 0 2.25rem 1.5rem;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -1.625rem;
  top: .35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: hsl(var(--primary));
  border: 2px solid hsl(var(--background));
  box-shadow: 0 0 0 2px hsl(var(--primary));
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .2rem;
}

.tl-left { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.tl-company {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.tl-loc {
  font-size: .78rem;
  color: hsl(var(--muted-foreground));
}

.tl-date {
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.tl-role {
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
  margin-bottom: .625rem;
}

.tl-list {
  padding-left: 1rem;
  margin-bottom: .75rem;
}
.tl-list li {
  list-style: disc;
  font-size: .875rem;
  color: hsl(var(--foreground) / .8);
  line-height: 1.75;
  margin-bottom: .2rem;
}

/* ── SKILLS ── */
.skill-blocks {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.skill-block { display: flex; flex-direction: column; gap: .5rem; }
.skill-block-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: hsl(var(--muted-foreground));
}

/* ── CERTIFICATIONS ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.cert-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-2xl);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .625rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cert-card:hover {
  border-color: hsl(var(--primary) / .4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsl(var(--primary) / .07);
}

.cert-img { width: 56px; height: 56px; object-fit: contain; }

.cert-ms-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0078d4, #005a9e);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
}

.cert-name {
  font-size: .8125rem;
  font-weight: 600;
  color: hsl(var(--card-foreground));
  line-height: 1.3;
}
.cert-level {
  font-size: .72rem;
  color: hsl(var(--muted-foreground));
}

/* ── EDUCATION ── */
.edu-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edu-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: .875rem 1.125rem;
  transition: border-color .15s;
}
.edu-item:hover { border-color: hsl(var(--primary) / .3); }

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .2rem;
}

/* ── CONTACT ── */
.section-contact {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, hsl(var(--gradient-from)), hsl(var(--gradient-to)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .875rem;
}

.contact-sub {
  font-size: .9375rem;
  color: hsl(var(--muted-foreground));
  max-width: 440px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid hsl(var(--border));
  padding: 1.25rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  color: hsl(var(--muted-foreground));
}

.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: hsl(var(--muted-foreground)); transition: color .15s; }
.footer-links a:hover { color: hsl(var(--primary)); }

/* ── Mobile ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero-name { font-size: 2rem; }
  .hero-stats { gap: 1.25rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-header { flex-direction: column; gap: .15rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { justify-content: center; }
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 3px;
  border-radius: 3px;
}
