@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



body {
  background-color: var(--primary-color);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
}

section {
    scroll-margin-top: 80px;
}


.button--gradient {
  background: var(--btn-bg-color-gradient);
  outline: 3px solid transparent;
  transition: background 1s, outline 1s, transform 1s;
  background-size: 250%;
}

.button.button--gradient:hover {
  background-color: transparent;
  background-position: 100%;
  outline: 2px solid var(--secondary-color);
  transition: background 1s, outline 1s, transform 1s;

  transform: scale(1.15);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--tertiary-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Header-NAV*/

.header {
  display: flex;
  position: fixed;
  width: 100%;
  padding: 12px 16px;
  top: 0;
  background: var(--nav-bg-color);
  z-index: 100;
}

.menu {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.menu a img {
  width: 100%;
  max-width: 160px;
}



.menu_item {
  color: var(--text-color);
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.75rem;
  margin-right: 24px;
  text-decoration: none;
  text-transform: uppercase;
}

.button {
  padding: 16px 24px;
  background-color: var(--tertiary-color);
  border-radius: 500px;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 4px;
  transform: scale(1);
}


.header-button {
  animation: wiggle 2.2s linear infinite;
}


.menu_item--button {
  padding: 8px 26px;
  transition:
    background 2s, color 1s;
}


.menu_item--button:hover {
  background-color: var(--btn-link-bg-color);
  color: var(--btn-link-color);
}



/*-----------------------------EDITANDO MAIN---------------------*/

/*PRIMEIRA SEÇÂO*/

.cabecalho {
  width: 100%;
  padding-top: 100px;
  position: relative;
  margin-top: 3.4rem;
  background: linear-gradient(-45deg, #56125b, #0f0f10, #271e6e);
  background-size: 400% 400%;
  animation: gradient 10s ease infinite alternate;
}

.cabecalho::after {
  content: "";
  width: 100%;
  height: 250px;
  position: absolute;
  bottom: 0;
  background: linear-gradient(0deg, var(--primary-color), transparent);
}

.content-cabecalho {
  min-height: 100vh;
  display: flex;
  max-width: 100vw;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 0 40px;

}

.divider {
  width: 70%;
  max-width: 700px;
  height: 5px;
  background: var(--divider-bg-color);
}


.text--small {
  max-width: 300px;
  text-align: center;
}



.header-title {
  text-transform: uppercase;
  text-align: center;
  font-size: 3rem;
}

.header-title--light {
  display: block;
  font-size: 2rem;
}

.content-cabecalho .icons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.header-icons {
  object-fit: contain;
}


.oferta {
  display: flex;
  font-size: 1.25rem;
  flex-direction: column;
  font-family: "Quicksand", sans-serif;

}


.oferta .oferta-preco {
  margin-top: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "Raleway", sans-serif;
}

.oferta .oferta-preco span {
  font-size: 1.2rem;
  font-weight: 300;
}


/*Segunda sesção*/

.container-planos {
  background: url(../assets/images/background-movies-series.png) no-repeat;
  background-size: cover;
  position: relative;
}

.container {

  max-width: 1200px;

  margin: auto;
  padding: 24px;
  text-align: center;

}

.title {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.subscription-description {
  text-align: start;
  padding-left: 14px;
  margin-bottom: 14px;
  list-style: none;

}

.subscription-description::marker {
  content: "+";
  font-size: 2rem;
  margin: 0 8px 0 0;
}


.container-plans {
  display: flex;
  justify-content: space-around;
  gap: 80px;
  margin: 40px 0;

  perspective: 2000px;
  perspective-origin: top;
}

.container-card {
  background: var(--card-bg-color);
  padding: 40px 60px;
  border-radius: 8px;
  display: flex;
  min-height: 600px;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 1s ease-in-out;
}


.container-plan {
  display: flex;
  justify-content: space-between;
  
  margin-bottom: 24px;
  font-size: 1.25rem;;
}


.container-plan p {
  font-size: 2rem;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  color: var(--secondary-color);
}

.container-plan p span {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-color);
}

.container-plans:has(.container-card:nth-child(1):hover)
  .container-card:nth-child(2) {
  transform: rotateY(-45deg);
}

.container-plans:has(.container-card:nth-child(2):hover)
  .container-card:nth-child(1) {
  transform: rotateY(45deg);
}

/*Descubra novos universos*/


.contents {
  margin: 100px auto;
}




.contents-container {
  display: grid;
  max-width: 100vw;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: auto;
  
}

.contents-card {
  border: 2px solid transparent;
  margin-top: 24px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 15px;
  transition: transform 0.8s, background 0.8s, border 1s;  
}

.contents-card:hover  {
  border: 2px solid var(--secondary-color);
  transform: scale(1.05);
  
}

.contents-card:hover .contents-image {
  opacity: 0;
}


.contents-image {
  width: 100%;
  object-fit: cover;
  object-position: center; 
  transition: opacity 3s ease; 
}


@media screen and (max-width: 1200px) {
    .contents-container {
        gap: 32px;
    }
}

@media screen and (max-width: 690px) {
    .menu {
        padding: 32px 24px;
        flex-direction: column;
        gap: 24px;
    }

    .container-plans {
      display: flex;
      flex-direction: column;
    }

    .main-container {
      min-height: 100vh;
      padding-top: 100px;
      width: 100dvw;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin-left: auto;

    }

    .contents-container {
      grid-template-columns: repeat(2, 1fr);
    }
}

@media (pointer: coarse) {
    .contents-card:hover {
        transform: none;
    }
}

@media screen and (max-width: 480px) {
    .menu {
        padding: 32px 24px;
        flex-direction: column;
        gap: 24px;
    }

    .contents-image {
      transform: scale(1);
    }

    .container-plans {
      display: flex;
      flex-direction: column;
    }

    .main-container {
      
      padding-top: 150px;

    }

    .contents-container {
      grid-template-columns: repeat(6, 100%);
        grid-auto-flow: column;
        overflow: auto hidden;
    }

    .link-list ul {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }

    .btn-global {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: auto;
      gap: 16px;
      
    }
}






/*TROCA DAS IMAGENS NO HOVER*/

.contents-card:nth-child(1):hover {
    background-image: url(../assets/images/hbo-hover_0.webp);  
}

.contents-card:nth-child(2):hover {
    background-image: url(../assets/images/MAX-Hover.webp);  
}

.contents-card:nth-child(3):hover {
    background-image: url(../assets/images/DC-Hover.webp);  
}

.contents-card:nth-child(4):hover {
    background-image: url(../assets/images/WB-Hover.webp);  
}

.contents-card:nth-child(5):hover {
    background-image: url(../assets/images/CN-Hover.png);  
}

.contents-card:nth-child(6):hover {
    background-image: url(../assets/images/UCL-Hover.webp);  
}






/*FOOTER*/

.foot-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  color: var(--link-color); 
  padding: 24px;
}

.link-list ul {
  display: flex;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: bold;
  font-family: "Raleway", sans-serif;
  transition: color 0.5s;
  letter-spacing: 2px;


}

.text-footer{
  font-size: 0.75rem;
  color: var(--link-color);
  margin: 16px 0;
  
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.link-list .list-item {
  list-style: none;
  margin: 0 14px;
}


.list-item a {
  display: flex;
  color: var(--link-color);
  text-decoration: none;
  transition:  transform .5s, color 1.5s;
}

.list-item a:hover {
  color: var(--text-color);  
  transform: scale(1.05);
}

.list-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  gap: 40px;
}



















/* Animations */

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes wiggle {

  0%,
  10% {
    transform: rotate(0) scale(1);
  }

  15% {
    transform: rotate(-15deg) scale(1);
  }

  20% {
    transform: rotate(10deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  30% {
    transform: rotate(10deg);
  }

  35% {
    transform: rotate(-10deg);
  }

  40%,
  100% {
    transform: rotate(0);
  }
}