:root {
  --bg: #0B0B0E;
  --bg-alt: #101015;
  --card: #14141A;
  --card-hover: #17171F;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(229, 181, 103, 0.35);
  --text: #E8E8EC;
  --text-muted: #9A9AA6;
  --accent: #E5B567;
  --accent-soft: #F0CB88;
  --accent-bg: rgba(229, 181, 103, 0.10);
  --radius: 18px;
  --radius-lg: 22px;
  --container: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-soft);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }
.sm { font-size: 0.85rem; }
.strong { font-weight: 600; color: var(--text); }
.mt-xs { margin-top: 4px; }
.opacity-70 { opacity: 0.7; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 14, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-photo {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
  transition: transform 0.2s ease;
}
.logo-photo:hover { transform: scale(1.06); }
.logo-photo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.logo-photo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  border: 2px solid rgba(229, 181, 103, 0.4);
  box-shadow: 0 0 0 3px rgba(229, 181, 103, 0.08);
  flex-shrink: 0;
  transition: box-shadow 0.2s ease;
  display: block;
}
.logo-photo:hover img {
  box-shadow: 0 0 0 4px rgba(229, 181, 103, 0.18);
}

.logo-name {
  display: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s;
}
.logo-name:hover { color: var(--accent); }

@media (min-width: 560px) { .logo-name { display: inline; } }
@media (min-width: 900px) {
  .logo-name { font-size: 1rem; }
  .logo-photo img { width: 40px; height: 40px; }
}
.nav-desktop { display: none; gap: 28px; }
.nav-desktop a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--text); }
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none !important; }
}
.menu-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(11,11,14,0.98);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: 999px; }
.btn-lg { padding: 16px 30px; font-size: 1rem; margin-top: 8px; }
.btn-primary {
  background: var(--accent);
  color: #1a1408;
  box-shadow: 0 10px 30px -10px rgba(229,181,103,0.5);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-soft); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--border-hover); background: var(--accent-bg); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--border-hover); transform: translateY(-2px); }
.icon-btn.sm { width: 34px; height: 34px; }

.link { color: var(--accent); font-weight: 500; transition: opacity 0.2s; }
.link:hover { opacity: 0.8; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.aurora {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 700px; max-height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.aurora-a {
  top: -10%; left: -15%;
  background: radial-gradient(circle, rgba(229,181,103,0.28), transparent 70%);
  animation: float 18s ease-in-out infinite;
}
.aurora-b {
  bottom: -20%; right: -15%;
  background: radial-gradient(circle, rgba(120,90,200,0.20), transparent 70%);
  animation: float 22s ease-in-out infinite reverse;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(4%, -6%) scale(1.08); }
}
.grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 60px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  background: var(--accent-bg);
  color: var(--accent-soft);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(229,181,103,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229,181,103,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(229,181,103,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,181,103,0); }
}
.grad {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent) 60%, #b88a3e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 500;
  color: var(--text-muted);
}
.hero-sub .sep { color: var(--accent); margin: 0 4px; }
.hero-lead {
  margin-top: 22px;
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(232,232,236,0.8);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}
.social-row .muted { margin-left: 8px; }

/* ===== SECTIONS ===== */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 48px; max-width: 720px; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head .sub {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.card:hover { border-color: var(--border-hover); }

.quote-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote-icon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.quote-card blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(232,232,236,0.92);
}
.quote-card figcaption p { margin: 0; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 3fr 2fr; gap: 56px; }
}
.about-left p { font-size: 1.05rem; line-height: 1.7; color: rgba(232,232,236,0.85); }
.quotes { display: grid; gap: 14px; margin-top: 24px; }
.quote-card p { font-size: 1.05rem; font-style: italic; color: var(--text); margin: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.25s;
}
.stat:hover { border-color: var(--border-hover); }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); margin: 0; line-height: 1; }
.stat-label { margin: 8px 0 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.stat-wide {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.stat-wide p { margin: 0; }

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }

.skills-grid .card h3 { color: var(--accent); margin-bottom: 14px; font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: rgba(232,232,236,0.85);
}

.how-i-work { margin-top: 48px; }
.how-i-work h4 { margin-bottom: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent-bg);
  border: 1px solid var(--border-hover);
  color: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: 500;
}
.pill.outline {
  background: var(--card);
  border-color: var(--border);
  color: rgba(232,232,236,0.85);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== EXPERIENCE / TIMELINE ===== */
.timeline { position: relative; }
.timeline-line {
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
@media (min-width: 768px) { .timeline-line { left: 10px; } }
.tl-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 28px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 0; top: 22px;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg);
}
.tl-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.tl-head h3 { font-size: 1.05rem; }
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-bg);
  border: 1px solid var(--border-hover);
  color: var(--accent-soft);
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.role { color: var(--accent); font-weight: 500; font-size: 0.92rem; margin: 4px 0 14px; }
.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: rgba(232,232,236,0.82);
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.bullets.tight li { font-size: 0.88rem; margin-bottom: 5px; }

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 800px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
.project { display: flex; flex-direction: column; }
.proj-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.proj-head h3 { font-size: 1.1rem; }
.project .muted { font-size: 0.92rem; margin-bottom: 12px; }
.proj-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.proj-foot .link { margin-left: auto; font-size: 0.88rem; }

/* ===== RECOMMENDATIONS ===== */
.rec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 800px) { .rec-grid { grid-template-columns: 1fr 1fr; } }
.certs { margin-top: 56px; }
.certs h4 { margin-bottom: 16px; }

/* ===== STUDENT REVIEWS ===== */
.reviews-block { margin-bottom: 72px; }
.reviews-block:last-child { margin-bottom: 0; }
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.reviews-head h3 {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-accent {
  background: var(--accent-bg);
  border: 1px solid var(--border-hover);
  color: var(--accent-soft);
}
.reviews-block > .muted { margin-bottom: 8px; font-size: 0.9rem; }
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}
@media (min-width: 700px) { .review-grid { grid-template-columns: 1fr 1fr; } }

.review-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0;
  transition: border-color 0.25s;
}
.review-card:hover { border-color: var(--border-hover); }
.avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: var(--accent-bg);
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.review-card blockquote {
  margin: 4px 0 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(232,232,236,0.9);
}
.review-card figcaption p { margin: 0; }

.public-lessons {
  margin-top: 32px;
  padding: 22px;
  background: rgba(20,20,26,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.public-lessons h4 { margin-bottom: 14px; }
.lesson-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lesson-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(232,232,236,0.9);
  transition: border-color 0.2s, color 0.2s;
}
.lesson-links a:hover { border-color: var(--border-hover); color: var(--accent); }
.lesson-links svg { color: var(--accent); flex-shrink: 0; }

/* ===== CONTACT ===== */
.contact-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.contact-section .container { position: relative; z-index: 1; }
.contact-h2 { margin-top: 10px; max-width: 640px; }
.contact-section .muted { margin-top: 14px; max-width: 640px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 48px;
}
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-card { padding: 22px; }
.contact-card svg { color: var(--accent); margin-bottom: 14px; }
.contact-card p { margin: 0; }
.contact-card p.muted { font-size: 0.8rem; }
.contact-card p.strong { font-size: 0.9rem; margin-top: 4px; word-break: break-word; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
footer p { margin: 0; }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 6, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: min(90vw, 720px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 20px;
  border: 2px solid rgba(229, 181, 103, 0.4);
  box-shadow:
    0 40px 90px -20px rgba(229, 181, 103, 0.35),
    0 0 0 10px rgba(229, 181, 103, 0.06);
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  object-fit: contain;
}
.lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 20, 26, 0.85);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s;
}
.lightbox-close:hover {
  transform: scale(1.06);
  background: rgba(229, 181, 103, 0.15);
  border-color: rgba(229, 181, 103, 0.5);
  color: var(--accent);
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 480px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox-img { max-width: 94vw; max-height: 82vh; }
}