@import url("https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Caveat+Brush&family=Montserrat&family=Sacramento&display=swap");
@import url("https://fonts.googleapis.com/css?family=Lato:300");

body {
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
}

/*HEADER*/

.header-wrapper {
  height: 100vh;
  width: 100vw;
  background: linear-gradient(
    -60deg,
    #5f86f2,
    #7f52aa,   
    #f3517d,
    #e42c71,
    #ff6a40,
    #ffa92a,
    #009dc3,
    #008bac  
    );


  background-size: 400% 400%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: backgroundTransition 8s ease-in-out infinite;
  position: relative;
}

h1 {
  font-size: 70px;
  font-weight: 400;
  letter-spacing: 4px;
  font-family: "Architects Daughter", sans-serif;
  margin-bottom: 0px;
}

h2 {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-size: 40px;
}

.social-media {
  margin-top: 1rem;
  display: flex;
}

.social-media a {
  text-decoration: none;
  color: #ffffff;
  font-size: 22px;
  padding: 1rem 4rem;
  border: 1px solid #ffffff;
  min-width: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s cubic-bezier(0.55, 0.025, 0.675, 0.97);
}

a:hover {
  color: #251642;
  background-color: #ffffff;
}

@keyframes backgroundTransition {
  0% {
    background-position: 0% 80%;
  }

  50% {
    background-position: 80% 100%;
  }

  100% {
    background-position: 0% 90%;
  }
}

/* MENU HAMBURGUER */

.checkbox-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.checkbox {
  height: 100px;
  width: 100px;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: 400ms ease-in-out 0s;
}

.checkbox .trace {
  width: 50px;
  height: 2px;
  background-color: #ffffff;
  position: absolute;
  border-radius: 4px;
  transition: 0.5s ease-in-out;
}

.checkbox .trace:nth-child(1) {
  top: 26px;
  transform: rotate(0);
}

.checkbox .trace:nth-child(2) {
  top: 46px;
  transform: rotate(0);
}

.checkbox .trace:nth-child(3) {
  top: 66px;
  transform: rotate(0);
}

#toggle {
  display: none;
}

/* MENU */

.menu {
  position: absolute;
  top: 28px;
  right: 30px;
  background: transparent;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  box-shadow: 0px 0px 0px 0px #ffffff;
  z-index: -1;
  transition: 400ms ease-in-out 0s;
}

.menu-items {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: 400ms ease-in-out 0s;
}

.menu-items ul {
  list-style-type: none;
}

.menu-items ul li a {
  margin: 10px 0;
  color: #251642;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 40px;
}

/*  ANIMAÇÃO MENU */

#toggle:checked + .checkbox .trace:nth-child(1) {
  transform: rotate(45deg);
  background-color: #251642;
  top: 47px;
}

#toggle:checked + .checkbox .trace:nth-child(2) {
  transform: translateX(-100px);
  width: 30px;
  visibility: hidden;
  opacity: 0;
}

#toggle:checked + .checkbox .trace:nth-child(3) {
  transform: rotate(-45deg);
  background-color: #251642;
  top: 48px;
}

#toggle:checked + .checkbox {
  background-color: #ffffff;
}

#toggle:checked ~ .menu {
  box-shadow: 0px 0px 0px 100vmax #ffffff;
  z-index: 1;
}

#toggle:checked ~ .menu-items {
  visibility: visible;
  opacity: 1;
}

/* CARDS */

.container {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  margin: 3rem 0;
}

.title {
  color: #251642;
  font-size: 100px;
  font-weight: 400;
  font-family: "Caveat Brush", cursive;
  text-transform: uppercase;
}

.card-container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 90%;
}

.card {
  height: 300px;
  width: 400px;
  margin: 3rem 0 0 0;
  background-image: url("/styles/background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: grayscale(0.5);
  cursor: pointer;
  transition: 0.3s;
}

.card-text {
  width: 40%;
  font-family: sans-serif;
  letter-spacing: 1px;
  color: #6d6d6d;
  line-height: 22px;
  padding-top: 3%;
}

.card-techs {
  width: 10%;
  font-family: sans-serif;
  letter-spacing: 1px;
  color: #6d6d6d;
}

.card-techs h5 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #6d6d6d;
  font-size: 15px;
}

.fa-brands,
.fab {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  padding: 0 5px 0 0;
  color: #6d6d6d;
  font-size: 16px;
}

.card-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  
}

.card-wrapper::before {
  content: "";
  position: absolute;
  height: 100px;
  width: 100px;
  display: block;
  border: 1px solid #1a759f;
  opacity: 0;
  transition: 0.3s;
}

.card-wrapper h2 {
  font-size: 34px;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0 0 0 5%;
  transition: 0.3s;
  color: #251642;
}

.card-wrapper p {
  font-size: 0;
  visibility: hidden;
  opacity: 0;
  font-weight: 400;
  text-transform: uppercase;
  transition: 0.3s;
  color: #251642;
  font-family: "Caveat Brush", sans-serif;
}

.card-wrapper a {
  text-decoration: none;
}

.card:hover {
  filter: unset;
}

.card:hover > .card-wrapper::before {
  height: 250px;
  width: 350px;
  opacity: 1;
}

.card:hover > .card-wrapper p {
  opacity: 1;
  visibility: visible;
  font-size: 18px;
}

.frontback {
  display: inline-flex;
 justify-content: center;
 width: 30%;

}

.double{
  width: 50%;
}

.gradient-border {
  --border-width: 3px;
  position: relative;
  border-radius: var(--border-width);
}
.gradient-border::after {
    position: absolute;
    content: "";
    top: calc(-1 * var(--border-width));
    left: calc(-1 * var(--border-width));
    z-index: -1;
    width: calc(100% + var(--border-width) * 2);
    height: calc(100% + var(--border-width) * 2);
    background: linear-gradient(
      60deg,
      #5f86f2,
      #7f52aa,   
      #f3517d,
      #e42c71,
      #ff6a40,
      #ffa92a,
      #009dc3,
      #008bac  


    );
    background-size: 300% 300%;
    background-position: 0 50%;
    border-radius: calc(2 * var(--border-width));
    animation: moveGradient 4s alternate infinite;
  }

 .line 
  {
    width:90% ; 
    margin-top: 1%
  }
@keyframes moveGradient {
  50% {
    background-position: 100% 50%;
  }
}

/* FOOTER */
.footer {
  width: 100%;
  height: 100px;
  background-color: #1a759f;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Architects Daughter", cursive;
  font-size: 18px;
}

/* RESPONSIVO */

@media (max-width: 800px) {
  .social-media {
    display: flex;
    flex-direction: column;
  }

  .container {
    margin-top: 0;
  }

  .card-container {
    flex-direction: column;
  }

  .container .card-container:nth-child(1),
  .container .card-container:nth-child(3) {
    flex-direction: column-reverse;
  }

  .card {
    height: 250px;
    width: 250px;
  }

  .card-text {
    width: 90%;
    margin-top: 2rem;
    text-align: center;
  }

  .card:hover > .card-wrapper::before {
    height: 190px;
    width: 190px;
  }
}




