:root {
  --bg: #f4efe7;
  --bg-soft: rgba(255, 255, 255, 0.6);
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #fffdf8;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: rgba(31, 41, 55, 0.12);
  --accent: #c2410c;
  --accent-strong: #9a3412;
  --shadow: 0 20px 60px rgba(98, 62, 22, 0.14);
}

body.dark {
  --bg: #111827;
  --bg-soft: rgba(17, 24, 39, 0.65);
  --surface: rgba(20, 29, 48, 0.88);
  --surface-strong: #172033;
  --text: #f9fafb;
  --muted: #c7d2e0;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #fb923c;
  --accent-strong: #fdba74;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.menu-toggle {
  display: none;
  padding: 0.75rem;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-text,
.section-heading p,
.about-copy p,
.contact-card p,
.project-content p {
  color: var(--muted);
}

.hero-text {
  max-width: 62ch;
  font-size: 1.08rem;
  margin: 1.5rem 0 0;
}

.hero-actions,
.contact-actions,
.project-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff7ed;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.hero-card,
.project-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card {
  padding: 2rem;
  border-radius: 28px;
}

.avatar {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  color: white;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-card h2,
.section-heading h2,
.contact-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18));
}

body.dark .section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03));
}

.section-heading {
  max-width: 680px;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.project-card {
  overflow: hidden;
  border-radius: 24px;
}

.project-card img,
.project-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.2), rgba(14, 165, 233, 0.2));
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.tags,
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tags {
  margin: 1rem 0 1.2rem;
}

.tags span,
.skill-chip {
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.project-links a {
  font-weight: 700;
  color: var(--accent);
}

.about-grid {
  display: grid;
  gap: 1.6rem;
}

.about-copy {
  max-width: 720px;
}

.contact-card {
  border-radius: 28px;
  padding: 2.2rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.6rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.course-provider {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.course-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.course-date {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: auto;
}

.site-footer {
  padding: 1.5rem 0 2rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.hero-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-orb-left {
  top: 1rem;
  left: -5rem;
  background: #fdba74;
}

.hero-orb-right {
  right: -4rem;
  bottom: 2rem;
  background: #7dd3fc;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .projects-grid,
  .footer-content {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-content {
    justify-content: unset;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 4rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-card,
  .contact-card,
  .project-content {
    padding: 1.25rem;
  }
}
