/* ----------- Dark/Light Mode ----------- */
@media (prefers-color-scheme: dark) {
  &:has([name="toggle-color-scheme"]:checked) {
    color-scheme: light;
  }
}
@media (prefers-color-scheme: light) {
  &:has([name="toggle-color-scheme"]:checked) {
    color-scheme: dark;
  }
}

/* ----------- Navbar ----------- */

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background-color: light-dark(
    var(--light-background-500),
    var(--dark-background-500)
  );
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar--scrolled {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar__logo {
  height: 40px;
  width: auto;
  fill: light-dark(var(--light-primary-500), var(--dark-secondary-500));
}

.navbar__link {
  margin-left: 2rem;
  text-decoration: none;
  color: light-dark(var(--light-text-500), var(--dark-text-500));
  font-weight: 500;
  font-size: 18px;
}

.navbar__link:hover {
  color: light-dark(var(--light-primary-500), var(--dark-secondary-500));
}

.navbar__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.navbar__label {
  cursor: pointer;
  display: inline-block;
  margin-left: 2rem;
}

.navbar__icon {
  width: 24px;
  height: 24px;
  display: block;
  transition: transform 0.3s ease;
}

.navbar__label:hover .navbar__icon {
  transform: scale(1.1);
}

@media (prefers-color-scheme: light) {
  .navbar__icon {
    content: url("../img/navbar/dark.svg");
  }

  .navbar__checkbox:checked ~ .navbar__label .navbar__icon {
    content: url("../img/navbar/bright.svg");
  }
}

@media (prefers-color-scheme: dark) {
  .navbar__icon {
    content: url("../img/navbar/bright.svg");
  }

  .navbar__checkbox:checked ~ .navbar__label .navbar__icon {
    content: url("../img/navbar/dark.svg");
  }
}

/* ----------- Projects ----------- */

.projects__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.project {
  display: grid;
  grid-template-columns: 2.25fr 1.5fr;
  gap: 8px;
  width: 90%;
  max-width: 65rem;
  height: 60vh;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

.project__text {
  order: 1;
  padding: 16px;
}

.project__link-text {
  text-decoration: none;
  color: inherit;
}

.project__link-text:hover {
  color: light-dark(var(--light-primary-500), var(--dark-secondary-500));
}

.project__name {
  font-weight: 400;
  font-size: 28px;
}

.project__role {
  margin-top: 4px;
  font-weight: 400;
  font-size: 20px;
  opacity: 0.8;
}

.project__description {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 400;
}

.project__chips {
  margin-top: 32px;
  display: flex;
  gap: 16px;
}

.project__chip {
  border-radius: 99px;
  font-size: 20px;
  font-weight: 400;
  color: light-dark(var(--light-text-500), var(--dark-text-500));
  text-decoration: none;
}

.project__image {
  position: relative;
  order: -1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease-in-out;
}

.project__image__status {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  color: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  z-index: 10;
  margin: 0;
  opacity: 0;
  transition:
    opacity 0.4s ease-in-out,
    background-color 0.4s ease-in-out;
  pointer-events: none;
}

.project__image__image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-in-out;
  display: block;
  z-index: 1;
  overflow: hidden;
}

.project__image__image:first-of-type {
  z-index: 2;
}

.project__image-link {
  text-decoration: none;
  position: relative;
  display: block;
}

.project__image-link:hover .project__image__status {
  opacity: 1;
  background-color: rgba(255, 251, 0, 0.7);
  color: var(--light-text-500);
}

.project__image-link:hover .project__image__image {
  transform: translate(-50%, -50%) scale(1.05);
}

/* ----------- Footer ----------- */
.footer {
  /* margin-top: 10vh; */
  color: var(--light-text-500);
  padding-top: 0;
  position: relative;
  min-height: 500px;
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.footer__content-container {
  /* background: light-dark(var(--light-secondary-500), var(--dark-secondary-500)); */
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  padding-top: 275px;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 5vw;
  gap: 5rem;
  padding-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 75px;
  padding-bottom: 20px;
}

.footer__link {
  text-decoration: none;
  color: var(--light-text-500);
  font-size: 20px;
  font-weight: 400;
  display: flex;
  flex-direction: row;
}

.footer__link__icon {
  width: 34px;
  height: 34px;
  margin-right: 8px;
  vertical-align: middle;
  fill: light-dark(var(--light-primary-500), var(--dark-primary-500));
}

.footer__link:hover {
  color: light-dark(var(--light-text-700), var(--light-text-700));
}

.footer__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.footer__text__tagline {
  font-size: 34px;
  font-weight: 500;
}

.footer__copyright {
  font-size: 16px;
}
