:root {
  --background: oklch(0.19 0.035 165);
  --foreground: oklch(0.96 0.012 150);
  --surface: oklch(0.24 0.04 165);
  --primary: oklch(0.72 0.15 165);
  --primary-foreground: oklch(0.17 0.04 165);
  --secondary: oklch(0.29 0.045 165);
  --muted-foreground: oklch(0.75 0.028 155);
  --gold: oklch(0.8 0.12 88);
  --border: oklch(0.34 0.04 165);

  --gradient-hero: radial-gradient(110% 80% at 15% 0%, color-mix(in oklab, var(--primary) 22%, transparent), transparent 60%),
    radial-gradient(90% 70% at 90% 20%, color-mix(in oklab, var(--gold) 14%, transparent), transparent 65%);
  --gradient-accent: linear-gradient(120deg, var(--primary), var(--gold));
  --shadow-elegant: 0 24px 60px -24px color-mix(in oklab, var(--primary) 45%, transparent);
  --shadow-card: 0 12px 40px -20px oklch(0.1 0.03 165 / 70%);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: color-mix(in oklab, var(--gold) 40%, transparent); }

.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted-foreground); }

.text-gradient {
  background-image: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-gold { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  padding: 0.65rem 1.25rem; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { border-color: var(--border); color: var(--foreground); background: transparent; }
.btn-outline:hover { background: color-mix(in oklab, var(--secondary) 70%, transparent); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 0.98rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(16px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo { width: 2.5rem; height: 2.5rem; border-radius: 999px; object-fit: cover; border: 1px solid color-mix(in oklab, var(--gold) 50%, transparent); background: var(--secondary); }
.brand-logo.sm { width: 2.25rem; height: 2.25rem; }
.brand-name { font-family: "Sora", sans-serif; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.nav { display: none; gap: 2rem; }
.nav a { font-size: 0.9rem; color: var(--muted-foreground); }
.nav a:hover { color: var(--primary); }

/* Hero */
.hero { background-image: var(--gradient-hero); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; padding-top: 6rem; padding-bottom: 6rem; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); background: color-mix(in oklab, var(--secondary) 60%, transparent);
  border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground);
}
.eyebrow-pill .icon { width: 0.9rem; height: 0.9rem; fill: currentColor; stroke: none; }
.hero-title { margin-top: 1.5rem; font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 800; }
.hero-lead { margin-top: 1.5rem; max-width: 32rem; font-size: 1.1rem; color: var(--muted-foreground); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-stats {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 2rem;
}
.stats { display: grid; gap: 1.5rem; flex: 1; min-width: 15rem; max-width: 28rem; }
.stats dt { font-family: "Sora", sans-serif; font-weight: 700; color: var(--gold); font-size: 1rem; overflow-wrap: anywhere; }
.stats dd { margin-top: 0.25rem; font-size: 0.78rem; color: var(--muted-foreground); }

.badge-rotator { position: relative; width: 4rem; height: 4rem; flex-shrink: 0; border-radius: 999px; overflow: hidden; border: 1px solid color-mix(in oklab, var(--gold) 50%, transparent); }
.badge-rotator img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease; }
.badge-rotator img.is-active { opacity: 1; }

.hero-photo-wrap { position: relative; width: 100%; max-width: 24rem; margin: 0 auto; }
.hero-photo-glow { position: absolute; inset: -1rem; border-radius: 2rem; background-image: var(--gradient-accent); opacity: 0.25; filter: blur(2rem); }
.hero-photo {
  position: relative; aspect-ratio: 720 / 924; width: 100%; overflow: hidden;
  border-radius: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow-elegant);
}
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero-photo img.is-active { opacity: 1; }
.hero-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.hero-dots button { width: 0.5rem; height: 0.5rem; border: none; border-radius: 999px; background: color-mix(in oklab, var(--muted-foreground) 60%, transparent); cursor: pointer; transition: all 0.3s ease; padding: 0; }
.hero-dots button.is-active { width: 1.25rem; background: var(--gold); }

/* Sections */
.section { border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); padding: 6rem 0; }
.section-alt { background: color-mix(in oklab, var(--secondary) 20%, transparent); }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.section-title { margin-top: 1rem; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; max-width: 48rem; }
.section-lead { margin-top: 1.25rem; max-width: 48rem; font-size: 1.05rem; color: var(--muted-foreground); }
.mt-lg { margin-top: 3.5rem; }

.card {
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px); border-radius: 1rem; padding: 1.75rem;
}
.card h3 { margin-top: 1.25rem; font-size: 1.1rem; font-weight: 600; }
.card p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.75rem; background: var(--secondary); color: var(--primary);
  transition: background 0.2s ease, color 0.2s ease;
}
.card:hover .card-icon { background: var(--primary); color: var(--primary-foreground); }
.card-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-link { display: flex; flex-direction: column; transition: transform 0.2s ease; }
.card-link:hover { transform: translateY(-4px); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card-head h3 { margin-top: 0; font-size: 1.25rem; }
.arrow { color: var(--muted-foreground); flex-shrink: 0; margin-top: 0.2rem; }
.card-link:hover .arrow { color: var(--gold); }
.tags { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags span { border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.72rem; color: var(--muted-foreground); }

.cards-grid, .projects-grid, .certs-grid { display: grid; gap: 1.25rem; margin-top: 3rem; }
.cert { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; transition: transform 0.2s ease; }
.cert:hover { transform: translateY(-4px); }
.cert strong { display: block; font-size: 0.9rem; }
.cert small { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }

.resume-head { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }

/* Contact */
.contact-grid { display: grid; gap: 3.5rem; }
.contact-links { margin-top: 2rem; display: grid; gap: 0.75rem; }
.contact-links a { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--muted-foreground); }
.contact-links a:hover { color: var(--primary); }
.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.85rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%; border-radius: 0.6rem; border: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 60%, transparent);
  color: var(--foreground); padding: 0.65rem 0.85rem; font: inherit; font-size: 0.9rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid color-mix(in oklab, var(--primary) 60%, transparent); outline-offset: 1px; }
.field textarea { resize: vertical; }
.fine-print { font-size: 0.75rem; color: var(--muted-foreground); }

/* Footer */
.site-footer { border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 2.5rem 1.5rem; }
.footer-inner .muted { font-size: 0.85rem; }
.socials { display: flex; gap: 1rem; }
.socials a { color: var(--muted-foreground); }
.socials a:hover { color: var(--gold); }
.socials .icon { width: 1.25rem; height: 1.25rem; }

/* Toast */
.toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 100;
  max-width: 22rem; padding: 0.85rem 1.1rem; border-radius: 0.75rem;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  font-size: 0.88rem; opacity: 0; transform: translateY(0.5rem); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { border-color: oklch(0.6 0.2 25); }

/* Animation */
.reveal { animation: reveal-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-grid, .certs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: row; }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; padding-top: 8rem; padding-bottom: 8rem; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resume-head { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .cards-grid, .certs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
