/* Interstate */
/* @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"); */

/* Bebas */
/* @import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap"); */

@import url("https://fonts.googleapis.com/css?family=Lato:300,400|Poppins:300,400,800&display=swap");

:root {
  /* --ff-inter: "Inter", sans-serif; */
  --ff-bebas: "Bebas Neue", sans-serif;
  --ff-ivy: "ivypresto-display", serif;
  --clr-offwhite: #f7f8f4f4;
  --clr-nearblack: #232323;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  /* font-family: "Inter"; */
  /* overflow: hidden; */
  min-height: 100vh;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100vw;
  min-height: 100vh;
  width: 100vw;
  position: relative;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a,
p {
  text-decoration: none;
  color: var(--clr-offwhite);
  font-size: 14px;
}

nav {
  grid-row: 1;
  grid-column: 1;
  width: 100vw;
  z-index: 20;
  position: relative;
  padding: 2em;
  display: flex;
  justify-content: center;
  gap: 2em;
}

nav a {
  opacity: 0.5;
}

nav a#active {
  opacity: 1;
}

h1 {
  margin: 0;
  font-family: var(--ff-ivy);
  font-weight: 300;
  font-style: normal;
  font-size: 4rem;
  line-height: 1.05;
  text-align: left;
  color: var(--clr-offwhite);
  opacity: 0;
  animation: fadeUp 2s ease-out forwards;
  margin-bottom: 0.72rem;
}

.slider {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slider-images {
  position: absolute;
  width: 100%;
  height: 100%;
}

.img {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slider-counter {
  position: absolute;
  bottom: 2em;
  left: 50%;
  transform: translateX(-50%);
  height: 24px;
  display: flex;
  gap: 0.5em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.slider-counter > div {
  flex: 1;
}

.slider-counter p {
  line-height: 20px;
}

.counter {
  position: relative;
  top: 0px;
  will-change: transform;
}

.slider-title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 64px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.slider-title-wrapper {
  position: relative;
  width: 100%;
  top: 0px;
  text-align: center;
  will-change: transform;
}

.slider-title-wrapper p {
  font-size: 50px;
  line-height: 60px;
}

.slider-indicators {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  display: flex;
  justify-content: space-between;
}

.slider-indicators p {
  position: relative;
  font-size: 40px;
  font-weight: 200;
  will-change: transform;
}

.slider-preview {
  position: absolute;
  bottom: 2em;
  right: 2em;
  width: 35%;
  height: 50px;
  display: flex;
  gap: 1em;
}

.preview {
  position: relative;
  flex: 1;
  cursor: pointer;
}

.preview::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  transition: 0.3s ease-in-out;
}

.preview.active::after {
  background-color: rgba(0, 0, 0, 0);
}

/* Stuff I'm adding */

.slider-info {
  position: absolute;
  bottom: 3.8em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

nav {
  position: absolute;
  top: 0;
  margin: 0;
  padding: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
}

.nav-col {
  flex: 1;
  display: flex;
}

.nav-items {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-col:nth-child(2) .nav-items:last-child p {
  text-align: right;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--clr-offwhite);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* End of stuff I'm adding */

@media (max-width: 900px) {
  .slider-indicators {
    width: 90%;
  }

  .slider-preview {
    width: 90%;
    bottom: 5em;
  }

  .slider-title-wrapper p {
    font-size: 30px;
  }

  .nav-col:nth-child(1) .nav-items:nth-child(2) p {
    text-align: right;
  }

  .nav-col:nth-child(2) {
    display: none;
  }
}

section {
  grid-row: 2;
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  position: relative;
  z-index: 1;
}

section video {
  grid-row: 1 / -1;
  grid-column: 1 / -1;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.landing-container {
  grid-row: 1 / -1;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 10;
  position: relative;
  padding-left: 0; /* Changes for mobile */
  /* For debugging */
  /* border: 2px solid red;  */
}

footer {
  grid-row: 3;
  grid-column: 1;
  width: 100vw;
  z-index: 20;
  position: relative;
}

.landing-title {
  margin: 0;
  font-family: var(--ff-ivy);
  font-weight: 300;
  font-style: normal;
  font-size: 4rem;
  line-height: 1.05;
  text-align: left;
  color: var(--clr-offwhite);
  opacity: 0;
  animation: fadeUp 2s ease-out forwards;
  margin-bottom: 0.72rem;
  text-shadow:
    0 6px 32px rgba(0, 0, 0, 0.65),
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(0, 0, 0, 0.18);
}

.landing-subtitle {
  animation: secFadeIn 2s forwards;
  animation-delay: 1s;
  font-weight: 400;
  font-family: "Lato";
  /* font-size: 12px; */
  text-transform: uppercase;
  letter-spacing: 5px;

  margin: 0;
  /* font-family: var(--ff-inter); */
  /* font-style: italic; */
  font-size: 0.75rem;
  color: var(--clr-offwhite);
  opacity: 0;
  /* animation: fadeUp 2s ease-out forwards; */
  text-align: left;
  width: 100%;
  text-shadow:
    0 4px 18px rgba(0, 0, 0, 0.55),
    0 1.5px 6px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(0, 0, 0, 0.12);
}

.landing-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: flex-start;
  width: 100%;
  opacity: 0.6;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55))
    drop-shadow(0 1.5px 6px rgba(0, 0, 0, 0.22))
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.12));
}

.landing-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border-radius: 6px;
  transition: background 0.2s;
  opacity: 0;
  transform: translateY(-15px);
  animation: iconFall 1.5s cubic-bezier(0.23, 1.02, 0.32, 1) forwards;
}

.landing-icons a:nth-child(1) {
  animation-delay: 1s;
}
.landing-icons a:nth-child(2) {
  animation-delay: 1.15s;
}
.landing-icons a:nth-child(3) {
  animation-delay: 1.3s;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    /* transform: translate(-50%, -80%); */
  }
  100% {
    opacity: 1;
    /* transform: translate(-50%, -50%); */
  }
}

@keyframes iconFall {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.snap-sections {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
  width: 100vw;
  position: relative;
}

.snap-section {
  scroll-snap-align: start;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s;
  position: relative;
  z-index: 1;
}

.snap-section.active {
  opacity: 1;
}

#about {
  background: #333;
}
#work {
  background: black;
}
#contact {
  background: #555;
}

/* Responsive */

/* Mobile (default styles, or use max-width: 600px) */
@media (max-width: 600px) {
  .landing-container {
    padding-left: 3rem; /* Keeps title from hitting left edge of screen on mobile */
  }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
  /* Tablet styles */
}

/* Desktop */
@media (min-width: 1025px) {
  /* Desktop styles */
}

.container {
  width: 100%;
  height: 100vh;
  /* background: #232323; */

  display: flex;
  justify-content: center;
  align-items: center;

  .box {
    width: 350px;
    height: 350px;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;

    .title {
      width: 100%;
      position: relative;
      display: flex;
      align-items: center;
      height: 50px;

      .block {
        width: 0%;
        height: inherit;
        background: #ffb510;
        position: absolute;
        animation: mainBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
        display: flex;
      }

      h1 {
        font-family: "Poppins";
        color: #fff;
        font-size: 32px;
        -webkit-animation: mainFadeIn 2s forwards;
        -o-animation: mainFadeIn 2s forwards;
        animation: mainFadeIn 2s forwards;
        animation-delay: 1.6s;
        opacity: 0;
        display: flex;
        align-items: baseline;
        position: relative;

        span {
          width: 0px;
          height: 0px;
          -webkit-border-radius: 50%;
          -moz-border-radius: 50%;
          border-radius: 50%;

          background: #ffb510;
          -webkit-animation: load 0.6s cubic-bezier(0.74, 0.06, 0.4, 0.92)
            forwards;
          animation: popIn 0.8s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
          animation-delay: 2s;
          margin-left: 5px;
          margin-top: -10px;
          position: absolute;
          bottom: 13px;
          right: -12px;
        }
      }
    }

    .role {
      width: 100%;
      position: relative;
      display: flex;
      align-items: center;
      height: 30px;
      margin-top: -10px;

      .block {
        width: 0%;
        height: inherit;
        background: #e91e63;
        position: absolute;
        animation: secBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
        animation-delay: 2s;
        display: flex;
      }

      p {
        animation: secFadeIn 2s forwards;
        animation-delay: 3.2s;
        opacity: 0;
        font-weight: 400;
        font-family: "Lato";
        color: #ffffff;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 5px;
      }
    }
  }
}

@keyframes mainBlock {
  0% {
    width: 0%;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

@keyframes secBlock {
  0% {
    width: 0%;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

@keyframes mainFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes popIn {
  0% {
    width: 0px;
    height: 0px;
    background: #e9d856;
    border: 0px solid #ddd;
    opacity: 0;
  }
  50% {
    width: 10px;
    height: 10px;
    background: #e9d856;
    opacity: 1;
    bottom: 45px;
  }
  65% {
    width: 7px;
    height: 7px;
    bottom: 0px;
    width: 15px;
  }
  80% {
    width: 10px;
    height: 10px;
    bottom: 20px;
  }
  100% {
    width: 7px;
    height: 7px;
    background: #e9d856;
    border: 0px solid #222;
    bottom: 13px;
  }
}

@keyframes secFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.5;
  }
}

/* footer {
  width: 350px;
  height: 80px;
  background: #ffb510;
  position: absolute;
  right: 0;
  bottom: -80px;
  display: flex;
  justify-content: center;
  align-items: center;
   animation: top 0.8s forwards;
   animation-delay: 4s;
  span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #232323;
    font-family: 'Poppins';

    i {
      margin-right: 25px;
      font-size: 22px;
      color: #232323;
      animation: icon 2s forwards;
      animation-delay: 4s;
      opacity: 0;
    }
  }
} */

@keyframes top {
  0% {
    opacity: 0;
    bottom: -80px;
  }
  100% {
    opacity: 1;
    bottom: 0px;
  }
}

@keyframes icon {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) rotate(-02deg);
  }
  100% {
    opacity: 1;
    bottom: 0px;
  }
}
