:root {
  --ink: #101318;
  --muted: #5d6673;
  --paper: #f7f4ee;
  --panel: #ffffff;
  --line: rgba(16, 19, 24, 0.14);
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --copper: #b45f38;
  --night: #111827;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #081012;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.page-video {
  position: fixed;
  inset: -8vh 0;
  z-index: -2;
  overflow: hidden;
  background: var(--night);
  pointer-events: none;
}

.page-video video,
.page-video-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 116vh;
}

.page-video video {
  object-fit: cover;
  transform: translate3d(0, var(--video-shift, 0px), 0) scale(1.08);
  transform-origin: center;
  filter: saturate(1.08) contrast(1.06);
  will-change: transform;
}

.page-video-shade {
  background:
    linear-gradient(90deg, rgba(5, 10, 14, 0.9), rgba(5, 10, 14, 0.54), rgba(5, 10, 14, 0.82)),
    linear-gradient(0deg, rgba(5, 10, 14, 0.72), rgba(5, 10, 14, 0.22) 45%, rgba(5, 10, 14, 0.78));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.92);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.86rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.82;
}

.site-nav a:hover {
  opacity: 1;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  inset: 76px 16px auto;
  z-index: 19;
  display: none;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 244, 238, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.mobile-nav a {
  padding: 12px;
  border-radius: 6px;
  font-weight: 750;
}

.mobile-nav a:hover {
  background: rgba(15, 118, 110, 0.1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) 42px;
  color: #fff;
}

.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 12, 18, 0.56), rgba(7, 12, 18, 0.12), rgba(7, 12, 18, 0.42)),
    linear-gradient(0deg, rgba(7, 12, 18, 0.46), rgba(7, 12, 18, 0.02) 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8de1d7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.7rem, 12vw, 9.2rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.15;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

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

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

.button.secondary {
  border-color: currentColor;
  background: transparent;
}

.hero-status {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.hero-status span,
.tech-list span {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.86rem;
  font-weight: 850;
}

.section {
  padding: clamp(68px, 9vw, 118px) clamp(20px, 5vw, 72px);
  background: rgba(247, 244, 238, 0.93);
  backdrop-filter: blur(10px);
}

.intro-grid,
.certificate-layout,
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.intro-copy p,
.section-heading p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.metric-strip {
  display: grid;
  gap: 12px;
}

.metric-strip article,
.skill-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(17, 24, 39, 0.07);
}

.metric-strip article {
  padding: 22px;
}

.metric-strip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-size: 1.7rem;
  line-height: 1;
}

.metric-strip span {
  color: var(--muted);
  font-weight: 700;
}

.skills-section {
  background: rgba(255, 255, 255, 0.94);
}

.section-heading {
  margin-bottom: 34px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  min-height: 245px;
  padding: 22px;
}

.skill-card span {
  color: var(--copper);
  font-weight: 900;
}

.skill-card p,
.project-card span {
  color: var(--muted);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tech-list span {
  color: var(--accent-strong);
}

.project-section {
  background: rgba(237, 242, 239, 0.93);
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-card {
  padding: 24px;
}

.project-card p {
  margin-bottom: 10px;
  color: var(--copper);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 8px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.88rem;
  transition: color 0.2s ease, gap 0.2s ease;
  gap: 4px;
}

.project-link:hover {
  color: var(--accent-strong);
  gap: 8px;
}

.certificate-section {
  display: grid;
  min-height: 100vh;
  align-items: center;
  background: rgba(247, 244, 238, 0.95);
}

.certificate-frame {
  min-height: calc(100vh - 180px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.certificate-frame iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 180px);
  border: 0;
}

.certificate-frame a {
  display: inline-flex;
  margin: 24px;
  color: var(--accent-strong);
  font-weight: 850;
}

.contact-section {
  background: #151a21;
  color: #fff;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-panel h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: #0f1319;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 750;
}

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

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

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .intro-grid,
  .certificate-layout,
  .project-layout {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 104px 18px 32px;
  }

  h1 {
    font-size: clamp(3.2rem, 19vw, 5.8rem);
  }

  h2 {
    font-size: 2.1rem;
  }

  .section {
    padding: 58px 18px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 200px;
  }

  .certificate-frame {
    min-height: 72vh;
  }

  .certificate-frame iframe {
    height: 72vh;
  }

  .button {
    width: 100%;
  }
}
