@import url("./reset.css");

html {
    width: 100%;
    scroll-behavior: smooth;
}
body {
    width: 100%;
    height: 100%;
    max-width: 100%;
    background-color: #020228;
    color: #ffffff;
    box-sizing: border-box;
}
.menu {
    background-color: rgb(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 2px;
    height: 3rem;
    width: 100%;
    padding: 20px 10px;
    gap: 20px;
    box-sizing: border-box;
    position: fixed;
    z-index: 2;
    
}
.menu__logo img {
    width: 100%;
    object-fit: scale-down;
}
.menu__logo {
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}
.menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    margin-right: 1rem;
}
.menu__link {
    text-decoration: none;
    font-family: "Raleway", sans-serif;
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
}
.menu__btn {
    border: none;
    border-radius: 30px;
    padding: 8px 10px;
    width: 170px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-family: "Raleway", sans-serif;
    font-weight: bold;
    color: #ffffff;
    background-color: #b535f6;
    transition: background 1s, color 1s;
    cursor: pointer;
}
.menu__btn:hover {
    background: #ffffff;
    color: #020228;
}
.header {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: linear-gradient(-45deg, #56125b, #0f0f10, #271e6e);
    background-size: 400% 400%;
    animation: gradient-background 10s  ease infinite alternate;
}
.header::after {
  content: "";
  width: 100%;
  height: 250px;
  position: absolute;
  bottom: 0;
  background: linear-gradient(0deg, #020228, transparent);
}
.container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-items: center;
    gap: 5px;
    font-family: "Raleway", sans-serif;
    text-align: center;
    padding: 20px 10px;
    margin-bottom: 20px;
}
.container ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.header__text--small {
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 45px;
    padding: 0 20px;
}
.header__text--large {
    font-weight: bold;
    font-size: 3rem;
}
.divider {
    width: 55%;
    height: 5px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #5516ba, rgba(255, 0, 229, 0.5) 80%);
}
.content__txt--small {
    font-size: 1.25rem;
    font-family: "Quicksand", sans-serif;
}
.content__txt--large {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.content__text--smaller {
    font-size: 1rem;
    font-weight: normal;
}
.btn {
    background: linear-gradient(60deg, #9b34ef 5%, #490cb0 15%, transparent 50%);
    color: #ffffff;
    font-family: "Raleway", sans-serif;
    font-weight: bold;
    font-size: .8rem;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    width: 400px;
    padding: 15px 20px;
    margin: 30px auto;
    letter-spacing: 4px;
    outline: 3px solid transparent;
    cursor: pointer;
    background-size: 250%;
    transition: background 1s, outline 1s, transform 1s;

}
.header__btn {
    width: 200px;
    animation: wiggle 2.2s linear infinite;
}
.header__btn:hover, .btn:hover {
    background-color: transparent;
    background-position: 100%;
    outline: 2px solid #ff00e5;
    transform: scale(1.05);

}
.obs__text {
    padding: 20px 0;
    width: 300px;
    font-family: "Quicksand", sans-serif;
    font-weight: 300;
    margin-bottom: 250px;
}
main {
    font-family: "Raleway", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    background-repeat: no-repeat;
}
.sub__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-image: url(../images/background-movies-series.png);
    background-repeat: no-repeat;
    background-size: cover;

}
.main__text--large {
    width: 60%;
    font-size: 2rem;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}
.main__cards {
    display: flex;
    gap: 40px;
    margin-bottom: 150px;
    perspective: 2000px;
    perspective-origin: top;
}
.card__container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(0deg, transparent, #3b1e63);
    border-radius: 10px;
    width: 430px;
    padding: 50px;
    margin-bottom: 20px;
    transition: transform 1s ease-in-out;
}
.main__cards:has(.card__container:nth-child(1):hover)
  .card__container:nth-child(2) {
  transform: rotateY(-45deg);
}

.main__cards:has(.card__container:nth-child(2):hover)
  .card__container:nth-child(1) {
  transform: rotateY(45deg);
}
.text__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.card__title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}
.card__txt--title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.card__txt--large {
    color: #ff00e5;
    font-weight: 600;
    font-size: 2rem;
}
.card__text--smaller {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 300;
}
.sub__description::marker {
    content: "+";
    font-size: 2em;
    margin: 0 8px 0 0;

}
.sub__description {
    font-size: 1.25rem;
    padding:0 0 20px 15px;
}
.main__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 100px auto;
    width: 100%;
}
.content__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    width: 80%;
    gap: 40px;
}
.content__card {
    border: none;
    border-radius: 16px;
    outline: 2px solid transparent;
    transition: transform 0.8s, background 0.8s, outline 1s;
}
.content__card:hover {    
    transform: scale(1.05);
    outline: 2px solid #b535f6;
}
.content__card:hover .card__img {
    opacity: 0;
}
.card__img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 2s;
}
.content__card:nth-child(1):hover {
  background-image: url("../images/hbo-hover_0.png");
  background-size: cover;
  background-position: center;
}
.content__card:nth-child(2):hover {
  background-image: url("../images/MAX-Hover.webp");
  background-size: cover;
  background-position: center;
}
.content__card:nth-child(3):hover {
  background-image: url("../images/DC-Hover.webp");
  background-size: cover;
  background-position: center;
}
.content__card:nth-child(4):hover {
  background-image: url("../images/WB-Hover.webp");
  background-size: cover;
  background-position: center;
}
.content__card:nth-child(5):hover {
  background-image: url("../images/CN-Hover.png");
  background-size: cover;
  background-position: center;
}
.content__card:nth-child(6):hover {
  background-image: url("../images/UCL-Hover.webp");
  background-size: cover;
  background-position: center;
}
footer p {
    text-align: center;
    color: #9e86ff;
    font-family: "Quicksand", sans-serif;
    margin: 0 20px;
    font-size: 14px;
    font-weight: 100;
}
.footer__nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 10px 40px;
    margin-bottom: 20px;
}
.footer__link {
    display: flex;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Raleway", sans-serif;
    font-weight: bold;
    color: #9e86ff;
    cursor: pointer;
    transition: color 1s;
}
.footer__link:hover {
    color: #ffffff;
}
.footer__social {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    gap: 40px;
    margin: 60px auto 0px auto;
}



@keyframes gradient-background {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@keyframes wiggle {
    0% {
        transform: rotate(0);
    }
    15% {
        transform: rotate(-15deg);
    }
    20% {
        transform: rotate(10deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    30% {
        transform: rotate(10deg);
    }
    35% {
        transform: rotate(-10deg);
    }
    40%, 100% {
        transform: rotate(0);
    }
}
@media screen and (max-width: 1140px) {
    .main__cards {
        flex-direction: column;
        align-items: center;
    }
    .card__title {
        flex-direction: column;
        align-items: center;
    }
    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer__nav {
        text-align: center;
    }
}
@media screen and (max-width: 800px) {
    .content__container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    
    }
    .card__container {
        width: 60%;
    }
    .btn {
        width: 95%;
    }
}
@media screen and (max-width: 480px) {
    .menu {
        flex-direction: column;
        height: auto;
    }
    .content__container {
        grid-template-columns: repeat(6, 100%);
        grid-template-rows: none;
        grid-auto-flow: column;
        overflow: auto hidden;
    }

}
@media (pointer: coarse) {
  .content__card:hover {
    transform: none;
  }

  .main__cards:has(.card__container:nth-child(1):hover)
    .card__container:nth-child(2),
  .main__cards:has(.card__container:nth-child(2):hover)
    .card__container:nth-child(1) {
    transform: none;
  }
}
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #b535f6;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff00e5;
}