@import url("https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Fira+Sans+Extra+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Vina+Sans&display=swap");

:root {
  --primary: #083e4b;
  --secondary: #8ff1e4;
  --secondary-black: #087266;
  --white: #edf5f6;
  --gray: #cfd8da;
  --black: #181f21;
}

* {
  padding: 0;
  margin: 0;
  color: var(--white);
  font-family: "Fira Sans", serif;
  font-weight: 400;
  z-index: 2;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s ease-out;

  &:hover {
    color: var(--secondary);
  }
}

h1 {
  font-family: "Vina Sans";
  font-size: 4rem;
}

h2 {
  font-size: 1.5rem;
}

hr {
  border-color: var(--white);
  opacity: 50%;
}

p {
  font-weight: 300;
  line-height: 140%;
}

h3 {
  font-family: "Fira Sans Condensed";
  font-weight: 600;
  font-size: 1.25rem;
}

html {
  scroll-behavior: smooth;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

#blur {
  display: none;
  z-index: 1;
}

header {
  height: 100vh;
  width: 100%;
  background: var(--white);
  z-index: 1;
  align-items: center;
  justify-content: center;
}

.banner-content {
  padding-bottom: 16rem;
  gap: 10rem;
  align-items: center;
}

.banner-nav {
  width: 100%;
  justify-content: space-around;

  & > li > a {
    color: var(--black);
    font-weight: 500;
    font-size: min(4vw, 1.25rem);

    &:hover {
      color: var(--secondary-black);
    }
  }
}

.banner-info {
  align-items: center;
  gap: 0.5rem;
  flex: 1;

  & > * {
    color: var(--black);
    text-align: center;
  }

  & > h1 {
    font-size: min(15vw, 6rem);
  }

  & > h2 {
    font-size: min(5vw, 2rem);
    font-family: "Fira Sans Condensed";
    font-weight: 300;
  }
}

.banner-foreground {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;

  & > img {
    position: absolute;
    left: 100%;
    translate: -100%;
    min-width: 1440px;
    width: 100%;
    z-index: 1;

    &:not(:first-child) {
      filter: drop-shadow(
        0px 2px 20px color-mix(in srgb, var(--white) 30%, transparent)
      );
    }
  }
}

.content {
  background-color: var(--primary);
  padding: 4rem 2rem;
  z-index: 1;
}

aside {
  gap: 4rem;
  align-self: start;
}

hgroup {
  gap: 1rem;

  & > .info-brief {
    color: var(--gray);
    font-weight: 300;
    font-size: 1.25rem;
  }
}

nav {
  display: none;

  & > li > a {
    width: min-content;
    transition: all 0.2s ease-in-out;

    & > img {
      width: 10px;
      height: 10px;
    }
  }
}

.actual > a {
  font-weight: 500;
  opacity: 100%;

  & > img {
    width: 20px;
    height: 20px;
  }
}

main {
  gap: 1.5rem;
}

section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sub-title {
  font-family: "Vina Sans";
  font-size: 2.5rem;
  opacity: 50%;
  transition: all 0.2s ease-in-out;
}

.sub-title--selected {
  opacity: 100%;
}

.tag {
  background-color: var(--secondary-black);
  color: var(--secondary);

  display: flex;
  align-items: center;
  gap: 0.375rem;

  border-radius: 4rem;
  padding: 0.5rem 0.75rem;
}

.tag-list {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.stack {
  gap: 0.25rem;
}

.experience {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;

  border: solid 1px var(--secondary-black);
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;

  transition: all 0.3s ease-in-out;

  &:hover {
    background-color: color-mix(
      in srgb,
      var(--secondary-black) 35%,
      transparent
    );

    border-top: 1px solid var(--secondary);

    cursor: pointer;
  }

  & > p {
    font-size: 0.875rem;
  }
}

.collapsible > p {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

.collapsible-close > p {
  max-height: 500px;
}

.links {
  display: flex;
  gap: 1rem;

  & > a {
    height: 1.5rem;
    width: 1.5rem;

    & > svg {
      transition: fill 0.2s ease-in-out;
      height: 1.5rem;
      width: 1.5rem;

      &:hover {
        fill: var(--secondary);
      }
    }
  }
}

@media screen and (min-width: 768px) {
  #blur {
    display: inline;

    position: fixed;
    translate: -50% -50%;
    width: 175vh;
    height: 175vh;

    background: radial-gradient(var(--secondary), transparent 50%);
    mix-blend-mode: overlay;
    opacity: 35%;

    transition: width 0.3s ease-in, height 0.3s ease-in, opacity 0.3s ease-in;
  }

  body:has(a:hover) > #blur {
    width: 100vh;
    height: 100vh;
    opacity: 70%;
  }

  nav {
    display: flex;
    flex-direction: column;

    gap: 0.5rem;

    flex: 1;

    & > li > a {
      font-family: "Fira Sans Condensed";
      font-weight: 300;
      font-size: 1.25rem;

      display: flex;
      align-items: center;

      gap: 0.25rem;
      opacity: 50%;

      & > img {
        transition: all 0.2s ease-in-out;
      }
    }
  }

  aside {
    position: sticky;
    top: 4rem;
    height: calc(100vh - 8rem);
  }

  .content {
    padding: 4rem 13rem;
    display: grid;
    grid-template-columns: 520px 580px;
  }

  .credit {
    margin-top: 4rem;
  }
}
