@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");
/*  General   */
:root {
  --base-color: #323232;

  --large-h2: clamp(4rem, 10vw, 12rem);
  --med-h2: clamp(4rem, 6vw, 8rem);
  --p-size: clamp(1.125rem, 2vw, 2.5rem);
  --caption-size: clamp(0.875rem, 2vw, 1.125rem);
}

p {
  font-size: var(--p-size);
}

body {
  height: 100vh;
  max-height: 100vh;
  margin: 0px;
}

body .background {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: -10;
  top: 0;
  left: 0;

  background-image: linear-gradient(348deg, #fff 50%, var(--base-color) 50.1%);
  background-size: 200% 200%;
  background-position: 100% 100%;
  pointer-events: none;
}

section {
  width: 100%;
  height: 100vh;
  color: #fff;
  padding-inline: 1rem;

  display: flex;
  flex-direction: column;
  justify-content: center;

  margin-bottom: 3rem;

  @media only screen and (min-width: 744px) {
    padding-inline: clamp(2rem, 4vw, 6rem);
  }
}

/*  Header  */

#header {
  /* background-color: #fff; */
  padding-block: 1rem;
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

body.is-loaded #header {
  transform: translateX(0%);
}

#header .text-container,
#header #status {
  overflow: clip;
  padding-inline: 1rem;
  gap: 0.25rem;
}

#header .text-container * {
  margin-bottom: 0.25rem;
  font-family: "Anton", sans-serif;
  display: block;
  color: #fff;
  opacity: 0;
  transform: translateX(-150%);
}

#header #status {
  display: flex;
  align-items: center;
}

#header #status .indicator {
  width: 0.66rem;
  height: 0.66rem;
  border-radius: 99px;
  scale: 0;
  background-color: #71b340;
  filter: drop-shadow(0px 0px 4px #71b34090);
}

#header #status span {
  color: #fff;
  font-family: "Anton", sans-serif;
  transform: translateX(150%);
  opacity: 0;
}

/*  Intro Section */

#intro .text-container h2 {
  font-family: "Anton", sans-serif;
  font-size: var(--large-h2);
  text-align: center;
}

#intro .split-text {
  opacity: 0;
  visibility: hidden;
  font-family: "Noto Sans", sans-serif;
  text-align: center;
}

#intro .text-container p {
}

#intro #stack-list {
  padding: 0px;
  margin-block: 0.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

#intro #stack-list .stack-item {
  font-family: "Noto Sans", sans-serif;
  opacity: 0;
  font-size: var(--caption-size);
  color: #fff;
  padding-inline: 0.5rem;
  padding-block: 0.25rem;
  border: 1px solid #fff;
  border-radius: 99px;
}

/* About Me */

#about {
  gap: 3rem;
}

#about .about.title {
  font-family: "Anton", sans-serif;
  font-size: var(--med-h2);
  text-align: center;
  margin-bottom: 1.125rem;
  opacity: 0.25;
}

#about .about.description {
  font-family: "Noto Sans", sans-serif;
  font-size: var(--p-size);
  opacity: 0.25;
}

/* Projects */

#projects {
  position: relative;
  padding-inline: 0px;
  gap: 1rem;

  scroll-snap-type: x mandatory;
  scroll-snap-align: start;
}

#projects .carousel-container {
  display: flex;
  overflow-y: hidden;
  overflow-x: scroll;
  flex-direction: row;
  justify-content: left;

  @media only screen and (min-width: 744px) {
    gap: 2rem;
    overflow-x: hidden;
    padding-inline: 2rem;
  }
}

#projects .carousel-icon-container {
  display: flex;
  gap: 0.25rem;
  padding-inline: 0.5rem;
  width: 100%;
  position: absolute;
  bottom: 0.5rem;
  left: 0;

  @media only screen and (min-width: 744px) {
    display: none;
  }
}

#projects .carousel-icon-container .carousel-icon {
  width: 100%;
  height: 0.25rem;
  background-image: linear-gradient(90deg, #fff 50%, #ffffff50 50%);
  background-size: 200%;
  background-position: 100% 0%;
  border-radius: 99px;

  &.active {
    opacity: 1;
  }
}

#projects .project-container {
  position: relative;
  scroll-snap-stop: always;
  scroll-snap-align: start;
  flex: 1 0 0;
  flex-basis: 100vw;
  height: 100dvh;

  @media only screen and (min-width: 744px) {
    flex: 1 1 0;
  }
}

#projects .project-container .project-bg-container {
  height: 100%;
}

#projects .project-container .info-container {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: 1rem;

  @media only screen and (min-width: 744px) {
    padding-inline: clamp(2rem, 6vw, 6rem);
  }
}

#projects .project-container .info-container .title,
#contact .title {
  font-family: "Anton", sans-serif;
  font-size: var(--med-h2);
}

#projects .project-container .info-container .desc,
#contact .contact-email {
  font-family: "Noto Sans", sans-serif;
}

#projects .project-container .info-container .line {
  transform: translateY(-100%);
  /* opacity: 0; */
}

#projects .project-container .info-container .link-container {
  margin-left: auto;
}

#projects .project-container .info-container .link {
  text-decoration: none;
  padding-inline: 1rem;
  opacity: 0;
}

#projects .project-container .info-container .link::after {
  font-family: "bootstrap-icons";
  content: "\F1C5";
  color: #fff;
  font-weight: 500;
  font-size: var(--p-size);
}

#projects .project-container .project-bg-container video {
  filter: blur(0.3rem) grayscale(100%) brightness(0.25);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

#contact .contact {
  text-align: center;
}

.main {
  @media only screen and (max-width: 800px) {
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0, 0, 0.2, 1);
    /* display: flex;
    flex-direction: column;
    justify-content: center; */
  }
}

.text-box {
  overflow: hidden;
}
