:root {
  --color-base-bg: #fff;
  --color-base-50: #fafafa;
  --color-base-100: #f5f5f5;
  --color-base-200: #e5e5e5;
  --color-base-300: #d4d4d4;
  --color-base-400: #a3a3a3;
  --color-base-500: #737373;
  --color-base-600: #525252;
  --color-base-700: #404040;
  --color-base-800: #262626;
  --color-base-900: #171717;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--color-base-800);
  font-family: "Zen Maru Gothic", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--color-base-800);
  text-decoration: none;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--color-base-bg);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.header.is-scrolled {
  background-color: rgb(255 255 255 / 82%);
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 4%);
  backdrop-filter: blur(3px);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  height: 10vh;
  margin: 0 auto;
}

.logo {
  font-size: 2rem;
}

.nav__ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.menu-button {
  display: none;
}

.nav__link:hover {
  color: var(--color-base-300);
  text-decoration: underline;
  text-underline-offset: 1rem;
}

section {
  width: 65%;
  min-height: 90vh;
  margin: 0 auto;
  padding-top: 12vh;
  text-align: center;
}

section h2 {
  font-size: 3rem;
}

section h3 {
  font-size: 1.75rem;
}

section p {
  font-size: 1.25rem;
}

.section__label {
  color: var(--color-base-500);
  font-size: 1rem;
}

.profile__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  min-height: 70vh;
}

.profile__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.profile__lead {
  max-width: 80%;
  font-size: 1.4rem;
  line-height: 1.8;
}

.profile__text {
  max-width: 75%;
  color: var(--color-base-600);
  line-height: 1.8;
}

.profile__actions {
  display: flex;
  margin-top: 0.5rem;
}

.profile__github {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 1rem 1.4rem;
  border: 1px solid var(--color-base-500);
  border-radius: 999px;
}

.profile__github:hover {
  background-color: var(--color-base-800);
  color: var(--color-base-bg);
}

.socials__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.profile__github:hover .socials__icon {
  filter: invert(1);
}

.profile__photo {
  flex: 0 0 25rem;
}

.profile__photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1.5px solid var(--color-base-300);
  border-radius: 50%;
  background-color: var(--color-base-50);
  box-shadow: 0 1rem 2rem rgb(0 0 0 / 6%);
  overflow: hidden;
}

.profile__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}

.about__summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.about__card,
.experience__details {
  border: 1.5px solid var(--color-base-300);
  border-radius: 1.5rem;
  background-color: var(--color-base-50);
}

.about__card {
  padding: 1.5rem;
}

.about__card-label,
.experience__label {
  color: var(--color-base-500);
  font-size: 0.95rem;
}

.about__card h3 {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.35rem;
}

.about__card p:last-child,
.about__strength p {
  color: var(--color-base-600);
  font-size: 1rem;
  line-height: 1.8;
}

.about__strengths-section h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.about__strengths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.about__strength {
  padding: 1.25rem;
  border: 1px solid var(--color-base-200);
  border-radius: 1rem;
  background-color: var(--color-base-bg);
}

.about__strength h4 {
  margin-bottom: 0.5rem;
}

.experience h4,
.about__strength h4 {
  font-size: 1rem;
}

.experience__container {
  display: flex;
  gap: 1rem;
}

.experience {
  width: 100%;
}

.experience > h3 {
  margin-bottom: 1rem;
}

.experience__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.experience__details h4 {
  font-size: 1.1rem;
}

.experience__articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.experience__article {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--color-base-200);
  border-radius: 1rem;
  background-color: var(--color-base-bg);
}

.experience__icon {
  width: 2rem;
  height: 2rem;
}

.experience__article h4 {
  font-size: 1rem;
}

.experience__article p {
  font-size: 0.9rem;
}

.works__container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.works__featured {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2rem;
  border: 1.5px solid var(--color-base-300);
  border-radius: 1.5rem;
  background-color: var(--color-base-50);
  text-align: left;
}

.works__slider {
  flex: 1.1;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--color-base-200);
  background-color: var(--color-base-bg);
  box-shadow: 0 1rem 2rem rgb(0 0 0 / 8%);
}

.works__slides {
  position: relative;
  aspect-ratio: 16 / 10;
}

.works__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.works__slide.is-active {
  opacity: 1;
}

.works__slider-button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-base-300);
  border-radius: 50%;
  background-color: rgb(255 255 255 / 85%);
  color: var(--color-base-800);
  font-size: 1.2rem;
  transform: translateY(-50%);
  cursor: pointer;
}

.works__slider-button:hover {
  background-color: var(--color-base-800);
  color: var(--color-base-bg);
}

.works__slider-button--prev {
  left: 1rem;
}

.works__slider-button--next {
  right: 1rem;
}

.works__slider-dots {
  position: absolute;
  right: 0;
  bottom: 1rem;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.works__slider-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid var(--color-base-500);
  border-radius: 50%;
  background-color: rgb(255 255 255 / 75%);
  cursor: pointer;
}

.works__slider-dot.is-active {
  background-color: var(--color-base-800);
}

.works__slider.is-single .works__slider-button,
.works__slider.is-single .works__slider-dots {
  display: none;
}

.works__content {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.works__label {
  color: var(--color-base-500);
  font-size: 1rem;
}

.works__description {
  line-height: 1.8;
}

.works__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.works__meta h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.works__tags,
.works__points {
  list-style: none;
}

.works__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.works__tags li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-base-300);
  border-radius: 999px;
  background-color: var(--color-base-bg);
  font-size: 0.9rem;
}

.works__points {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--color-base-600);
}

.works__points li::before {
  content: "- ";
}

.works__buttons {
  display: flex;
  gap: 1rem;
}

.works__button {
  min-width: 10rem;
  padding: 1rem;
  border: 1px solid var(--color-base-500);
  border-radius: 999px;
  text-align: center;
}

.works__button:hover {
  background-color: var(--color-base-800);
  color: var(--color-base-bg);
}

.contact__container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem;
  border: 1.5px solid var(--color-base-300);
  border-radius: 1.5rem;
  background-color: var(--color-base-50);
  text-align: center;
}

.contact__content p {
  color: var(--color-base-600);
  line-height: 1.8;
}

.contact__links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact__button {
  min-width: 10rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--color-base-500);
  border-radius: 999px;
  text-align: center;
}

.contact__button:hover {
  background-color: var(--color-base-800);
  color: var(--color-base-bg);
}

.contact__button--secondary {
  border-color: var(--color-base-300);
  color: var(--color-base-500);
}

.footer {
  width: 75%;
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--color-base-200);
  color: var(--color-base-500);
  text-align: center;
}

@media (max-width: 1280px) {
  .header__container {
    position: relative;
    width: 90%;
  }

  .logo {
    font-size: 1.6rem;
  }

  .menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--color-base-300);
    border-radius: 50%;
    background-color: var(--color-base-bg);
    cursor: pointer;
  }

  .menu-button__line {
    display: block;
    width: 1.1rem;
    height: 1px;
    margin: 0 auto;
    background-color: var(--color-base-800);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .menu-button.is-open .menu-button__line:nth-child(1) {
    transform: translateY(0.43rem) rotate(45deg);
  }

  .menu-button.is-open .menu-button__line:nth-child(2) {
    opacity: 0;
  }

  .menu-button.is-open .menu-button__line:nth-child(3) {
    transform: translateY(-0.43rem) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(16rem, 100%);
    padding: 1rem;
    border: 1px solid var(--color-base-200);
    border-radius: 1rem;
    background-color: rgb(255 255 255 / 92%);
    box-shadow: 0 1rem 2rem rgb(0 0 0 / 8%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
    backdrop-filter: blur(12px);
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__ul {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
  }

  .nav__link:hover {
    background-color: var(--color-base-100);
    text-decoration: none;
  }

  section {
    width: 80%;
    height: auto;
    padding-top: 12vh;
    padding-bottom: 8vh;
  }

  .profile__container,
  .works__featured {
    flex-direction: column;
  }

  .profile__details {
    text-align: center;
  }

  .profile__lead,
  .profile__text {
    margin: 0 auto;
  }

  .profile__actions {
    justify-content: center;
  }

  .profile__photo {
    flex: none;
    width: min(100%, 25rem);
  }

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

  .experience__container {
    flex-direction: column;
  }

  .works__featured {
    padding: 1.25rem;
  }

  .works__slider {
    width: 100%;
  }
}

@media (max-width: 768px) {
  section h2 {
    font-size: 2.25rem;
  }

  section h3 {
    font-size: 1.5rem;
  }

  section p {
    font-size: 1rem;
  }

  .works__buttons {
    flex-direction: column;
  }

  .contact__links {
    flex-direction: column;
  }

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