html {
  scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    font-family: "Raleway";
}
a {
  all: unset;
  cursor: pointer;
}
h1 {
  font-family: "Raleway";
  color: #333333;
  font-size: 16px;
}
h2 {
  font-family: sans-serif;
  color: #333333;
  font-size: 80px;
  margin: 30px;
}
h3 {
  font-size: 24px;
  margin: 50px auto;
}
.container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.section {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  scroll-snap-align: start;
}
.blue {
  color: #73a7d3;
}

/****************
HOME SECTION
****************/
.bg-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
}
.section:nth-child(1) {
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-container {
  text-align: center;
  width: 20%;
  z-index: 2;
}
.logo {
  width: 100%;
  margin-bottom: 50px;
}
.logo-container a {
  font-family: "Raleway";
  color: #FFFFFF;
  margin: 0;
}
.discover {
  opacity: 0;
  animation:
    nudge 5s linear infinite alternate,
    wait-anim 1s linear 2s forwards;
}

/****************
ABOUT SECTION 1
****************/
.section:nth-child(2) {
    background: #ffffff;
    align-items: center;
    overflow: hidden;
}
.text-container-card {
  position: relative;
  background-color: transparent;
  padding: 50px;
  text-align: center;
  margin: 0 auto;
  width: 50%;
  overflow: hidden;
}
.header-container {
  display: flex;
}
.text-container-card p {
  color: #333333;
  margin-bottom: 40px;
}
.parallax {
  display: flex;
  min-height: 100%;
  align-items: center;
}

/****************
ABOUT SECTION 2
****************/
.section:nth-child(3) {
    background: #333333;
}
.section:nth-child(3) .text-container-card p, .section:nth-child(3) .text-container-card h2 {
  color: #FFFFFF;
}
.wrapper-container-grab {
  display: flex;
  width: 500px;
  margin: 20px auto;
}

.letter-r, .letter-v, .letter-b {
  transition: all 2s ease;
}

.wrapper-container-grab:hover .letter-r {
  transform: translate(0px, 30px);
}

.wrapper-container-grab:hover .letter-v {
  transform: translate(0px, -30px) rotate(180deg);
}

.wrapper-container-grab:hover .letter-b {
  transform: translate(0px, 30px);
}

.header-container-grab {
  display: flex;
  margin: 30px auto;
  width: 120px;
  height: 150px;
  max-width: calc(100% - 60px);
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.header-container-grab::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  top: 10px;
  left: 10px;
  border-radius: inherit;
  background: repeating-linear-gradient(
    45deg,
    #ffffff,
    #ffffff 2px,
    transparent 2px,
    transparent 6px
  );
  transition: all 0.3s ease;
}

.header-container-grab:hover::before {
  top: 20px;
  left: 20px;
}

.reverse {
  transform: translate(0px, 50px)
}

.section:nth-child(3) .text-container-card h2.black {
  color: #333333;
}

.wrapper-container-grab-mobile {
  display: none;
}

/****************
PROJETC SECTION
****************/
.section:nth-child(4) {
    background: #ffffff;
    align-items: center;
}

.projects-container {
  text-align: center;
}

.project-container {
  width: 80%;
  display: flex;
  gap: 20px;
  margin: 0 auto;
}

.project-container img {
  width: 100%;
  height: auto;
  margin: 20px auto;
  cursor: pointer;
  transition: all 0.5s ease;
}

.projects-container h2 {
  transition: all 0.5s ease;
}

.project-container img:hover {
  transform: scale(1.02);
}

.projects-container h2:hover {
  transform: scale(1.02);
}



/****************
CONTACT SECTION
****************/
.contact-container {
  padding-top: 50px;
  width: 60%;
  margin: 0 auto;
  text-align: center;
  color: #333333;
}
.logo-footer-container img {
  margin: 40px auto;
  width: 20%;
  max-width: 150px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  margin: 10px auto;
  text-align: center;
  color: #43503c;
}
.footer p {
  font-size: 12px;
}

/****************
CONTACT LOGO
****************/
.instagram-container {
  position: fixed;
  display: flex;
  align-items: center;
  top: 20px;
  right: -80px;
  color: #ffffff;
  transition: all 1s ease;
}
.instagram-container i {
    font-size: 32px;
    transition: all 1s ease;
}
.instagram-container span {
    transition: opacity 1s;
    font-size: 13px;
    opacity: 0;
    padding: 10px 0;
    margin-left: 10px;
}
.instagram-container:hover {
    transform: translate(-105px , 0);
}
.instagram-container:hover i {
    transform: scale(1.2);
}
.instagram-container:hover span {
    opacity: 1;
}

/****************
ANIMATIONS
****************/
@keyframes wait-anim {
  to { opacity: 1; }
}

@keyframes fade-in-anim {
  to { opacity: 1; }
}

@keyframes nudge {
  0%, 100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(0, 10px);
  }

  80% {
    transform: translate(0, -10px);
  }
}

.replace {
  transform: translateY(1);
  opacity: 1;

  @media (prefers-reduced-motion: no-preference) {
    animation: fade-in 3s ease-out;
    animation-composition: replace;

    &:hover {
      animation-play-state: paused;
    }
  }
}

@keyframes fade-in {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
}

.loop-text {
     animation: loopText 5s infinite linear;
}

@keyframes loopText {
   from {
       transform: translateX(0);
    }
   to {
       transform: translateX(-113%);
    }
}

@keyframes loopTextMobile {
   from {
       transform: translateX(0);
    }
   to {
       transform: translateX(-122%);
    }
}

/****************
MODAL
****************/
#myBtn {
  cursor: pointer;
}
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.modal-content {
  background-color: #fefefe;
  border-radius: 0;
  border: none;
  margin: 100px auto auto;
  padding: 20px 40px;
  border: none;
  width: 70%;
  height: 400px;
  overflow-y: scroll;
}
.modal-content h2 {
  margin: 40px auto;
  text-align: center;
}
.modal-content h3 {
  margin: 20px 0;
  font-size: 16px;
  text-decoration: underline;
}
.modal-content p {
  margin: 2px auto;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/****************
MEDIA QUERIES
****************/
@media screen and (max-width: 700px) {
  .logo-container {
    width: 30%;
  }
  h2 {
    font-size: 3rem
  }
  h3 {
    font-size: 14px;
  }
  p {
    font-size: 12px;
  }

  .wrapper-container-grab {
    display: none;
  }

  .wrapper-container-grab-mobile {
    display: block;
  }

  .text-container-card {
    width: 60%;
  }

  .section:nth-child(3) .text-container-card h2.black {
    color: #FFFFFF;
  }

  .project-container {
    display: block;
  }

  .projects-container h2, .contact-container h2 {
    font-size: 2.5rem;
  }

  .contact-container {
    padding-top: 20px;
    width: 80%;
  }

  .contact-container h3 {
    margin: 20px auto;
  }

  .logo-footer-container img {
      margin: 10px auto;
      width: 20%;
      max-width: 150px;
  }

  .instagram-container i {
    font-size: 32px;
  }
  .footer p {
    font-size: 10px;
  }
  .loop-text {
       animation: loopTextMobile 5s infinite linear;
  }
  .instagram-container {
    right: 20px;
  }
  .instagram-container span {
      display: none;
  }
  .instagram-container:hover {
      transform: none;
  }
  .instagram-container:hover i {
      transform: none;
  }
}
