:root {
  --teal: #078aa3;
  --teal-dark: #04758a;
  --teal-soft: #86dce7;
  --orange: #cf7b39;
  --ink: #050505;
  --muted: #555555;
  --paper: #ffffff;
  --mist: #f3f8f9;
  --line: rgba(7, 138, 163, 0.28);
  --shadow: 0 10px 18px rgba(7, 138, 163, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

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

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

.topbar {
  width: min(1120px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
}

.logo {
  color: var(--teal);
  font-size: 1.12rem;
  font-weight: 800;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
}

.menu a {
  position: relative;
  padding: 8px 0;
}

.menu a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  content: "";
  transition: width 180ms ease;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--teal);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--teal);
}

.hero {
  width: min(1160px, calc(100% - 48px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 30px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.86fr);
  align-items: center;
  column-gap: 48px;
}

.welcome {
  margin: 0 0 28px;
  color: #3fb5c1;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 400;
}

.hero h1 {
  max-width: 680px;
  margin: 0 0 32px;
  font-size: clamp(3rem, 6.1vw, 4.95rem);
  line-height: 0.98;
  font-weight: 900;
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 span {
  color: var(--teal);
}

.hero h1 strong {
  color: var(--orange);
}

.intro {
  max-width: 620px;
  margin: 0 0 44px;
  color: #070707;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  font-weight: 650;
  line-height: 1.18;
}

.intro a {
  color: var(--teal);
  white-space: nowrap;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-width: 194px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 28px;
  color: var(--teal);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  border: 2px solid var(--teal);
  background: var(--teal);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.button.secondary {
  border: 2px solid var(--teal);
  background: #ffffff;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  width: min(464px, 100%);
  isolation: isolate;
}

.photo-frame::before {
  position: absolute;
  z-index: -1;
  left: -34px;
  top: 34px;
  width: 310px;
  height: calc(100% - 2px);
  border-radius: 0 0 0 260px;
  background: var(--teal-soft);
  transform: rotate(-3deg);
  content: "";
}

.photo-frame::after {
  position: absolute;
  left: -1px;
  bottom: -1px;
  z-index: 2;
  width: 58%;
  height: 46%;
  border-left: 14px solid var(--teal-soft);
  border-bottom: 14px solid var(--teal-soft);
  border-radius: 0 0 0 260px;
  pointer-events: none;
  content: "";
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 464 / 489;
  border: 2px solid var(--teal);
  object-fit: cover;
  object-position: center;
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-title p {
  margin: 0 0 12px;
  color: #3fb5c1;
  font-size: 1.2rem;
}

.section-title h2 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(2.2rem, 4.5vw, 4.25rem);
  line-height: 1;
  font-weight: 900;
}

.section-title h2 span {
  color: var(--teal);
}

.about {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.about .section-title {
  margin-bottom: 0;
}

.about-copy {
  margin: 46px 0 0;
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
}

.skill-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.skill-item {
  min-height: 210px;
  border: 2px solid var(--teal);
  border-radius: 7px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 7px 7px 0 rgba(134, 220, 231, 0.42);
}

.skill-item b {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  font-size: 0.95rem;
}

.skill-item h3,
.work-row h3,
.timeline-card h3 {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 1.45rem;
}

.skill-item p,
.work-row p,
.timeline-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.work-list {
  display: grid;
  gap: 18px;
}

.work-row {
  display: grid;
  grid-template-columns: 72px minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border-bottom: 2px solid var(--line);
  padding: 24px 0;
}

.work-row span {
  color: var(--orange);
  font-size: 1.35rem;
  font-weight: 900;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.timeline-card {
  min-height: 185px;
  border: 2px solid var(--teal);
  border-radius: 7px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(134, 220, 231, 0.2), transparent 46%),
    #ffffff;
}

.timeline-card h3 {
  color: var(--orange);
}

.footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--teal);
  font-weight: 700;
}

.reveal {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 940px) {
  .menu-button {
    display: block;
  }

  .menu {
    position: absolute;
    top: 72px;
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 2px solid var(--teal);
    border-radius: 7px;
    padding: 12px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 12px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 30px;
  }

  .welcome {
    margin-bottom: 30px;
  }

  .hero h1 {
    margin-bottom: 34px;
  }

  .intro {
    margin-bottom: 42px;
  }

  .hero-photo {
    justify-content: flex-start;
  }

  .about,
  .skill-board,
  .timeline {
    grid-template-columns: 1fr;
  }

  .about-copy {
    margin-top: 0;
  }

  .work-row {
    grid-template-columns: 56px 1fr;
  }

  .work-row p {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  .topbar,
  .hero,
  .section,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .topbar {
    min-height: 68px;
  }

  .hero {
    padding-bottom: 48px;
  }

  .hero-buttons {
    gap: 16px;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .photo-frame::before {
    left: -16px;
    width: 210px;
  }

  .photo-frame::after {
    border-left-width: 9px;
    border-bottom-width: 9px;
  }

  .section {
    padding: 58px 0;
  }

  .skill-item {
    min-height: auto;
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .work-row p {
    grid-column: auto;
  }

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