*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: url(imgs/main-back.jpg);
  scroll-behavior: smooth;
  /* background-size: cover;
  background-position: center;
  background-attachment: fixed; */
}

.container {
  width: min(90%, 150rem);
  margin: max(5vh, 2rem) auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: max(1rem, 1vw);
}

.main {
  width: 100%;
  height: 100%;
}

.section {
  /* padding: 15rem 1rem; */

  .section__label {
    text-align: center;
    padding: max(1rem, 1vh) 0;

    h1 {
      font-size: clamp(1.2rem, 2vw + 1rem, 1.8rem);
    }
  }
}

.overlay {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9;
  backdrop-filter: blur(3rem);
  left: 0;
  top: 0;
  border-radius: inherit;
}

.overlay.hidden {
  opacity: 0;
  display: none;
}

/******************       BURGER ICON           ***********/

.burger {
  width: 5rem;
  height: 5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 9999;
  display: none;
  transition: all 0.4s;
}

.line {
  width: 1rem;
  height: 1rem;
  background-color: #fff;
  margin: 0.4rem;
  border-radius: 50%;

  transition: all 0.4s;
}

.burger.active {
  margin-left: 25rem;

  .line {
    &:first-child {
      width: 4px;
      height: 3rem;
      border-radius: 10rem;
      transform: rotateZ(45deg) translateX(4px) translateY(-3px);
      background-color: rgb(220, 20, 60);
    }

    &:nth-child(2) {
      display: none;
    }

    &:last-child {
      width: 4px;
      height: 3rem;
      border-radius: 10rem;
      transform: rotateZ(-45deg) translateX(-6px) translateY(-5px);
      background-color: rgb(220, 20, 60);
    }
  }
}

/******************       HEADER           ***********/

.header {
  padding: max(1rem, 2vw);
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;

  transition: background-color 0.4s;

  .header__wrapper {
    display: flex;
    align-items: center;
  }

  .header__list {
    margin-right: auto;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    list-style: none;
  }

  .header__item:not(:first-child) {
    margin-left: max(1rem, 2vw);
  }

  .header__link {
    color: #fff;
    text-decoration: none;
    font-size: clamp(1rem, 3vw + 1rem, 1.24rem);
    font-weight: 500;
    padding: 1rem 3rem;
    position: relative;

    &::after {
      content: '';
      position: absolute;
      width: 1rem;
      height: 1rem;
      background-color: rgba(220, 20, 60);
      z-index: -1;
      border-radius: 50%;
      left: 0;
      top: -50%;
      transform: translateY(-50%);
      opacity: 0;
      transition: all 0.4s;
    }

    &:hover&::after {
      top: 50%;
      left: 1rem;
      opacity: 1;
    }
  }

  .header__link--active {
    &::after {
      top: 50%;
      left: 1rem;
      opacity: 1;
    }
  }
}

.header.sticky {
  background: rgba(112, 98, 255);
  position: sticky;
}

.btn--register {
  color: #fff;
  text-decoration: none;
  background-color: rgba(112, 98, 255);
  text-align: center;
  padding: max(1rem, 1vh + 1rem);
  font-size: clamp(1rem, 3vw, 1.4rem);
  display: flex;
  align-items: center;
  border-radius: 1rem;
  box-shadow: 0.4rem 0.4rem 0.4rem rgba(255, 255, 255, 0.5);
}



.socials {
  color: #fafafa;
  fill: #fafafa;

  & :first-child{
    margin-right: 1rem;
  }

  .icon {
      color: #fafafa;
  fill: #fafafa;
  }
}

/******************       SLIDER           ***********/

.slider {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;

  .slider__container {
    height: 65rem;
    /* background: rgba(255, 165, 0, 0.4); */
    overflow: hidden;
    position: relative;
  }

  .slide {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    padding: max(2vh, 1rem);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transition: transform 0.4s;

    & > * {
      flex: 1;
    }
  }

  .slider__img-box {
    width: 60rem;
    /* background: orange; */
    border-radius: 0.5rem;
    padding: max(0.5rem, 0.4rem);
    margin-left: auto;

    /* border: 1px solid rgb(0, 0, 0); */

    transform: translateX(100%);

    transition: transform 0.6s cubic-bezier(0.455, 0.03, 0.515, 0.955);

    .slider__img {
      width: 100%;
      height: 100%;
      border-radius: inherit;
    }
  }

  .slider__details {
    color: #fff;
    /* background: rgba(14, 14, 14, 0.5); */
    border-radius: 1rem;
    /* padding: max(1rem, 3vh); */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-decoration: none;
  }

  .slider__title {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1vw, 2.4rem);

    transform: translateX(-100%);

    transition: transform 0.6s 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .slider__description {
    padding: 0.5rem;
    font-size: clamp(1rem, 1vw, 1.4rem);
    text-align: justify;
    line-height: 1.5;

    transform: translateY(4rem);
    opacity: 0;

    /* transition: transform 0.6s 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55),
      opacity 0.6s 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55); */

    transition: all 0.6s 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .slider__view-more {
    text-decoration: none;
    font-size: clamp(1.1rem, 1vw, 1.4rem);
    border: 1px solid #fff;
    align-self: flex-start;
    width: min(100%, 15rem);
    text-align: center;
    padding: max(1rem, 0.5vw) 0;
    color: #fff;
    border-radius: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    opacity: 0;
    transform: scale(0);

    transition: all 1s 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    &::after {
      content: '\2192';
      font-size: clamp(1rem, 2vw + 10rem, 1.6rem);
    }
  }

  .slide--active {
    .slider__img-box {
      transform: translateX(0);
    }

    .slider__title {
      transform: translateX(0);
    }

    .slider__description {
      transform: translateY(0);
      opacity: 1;
    }

    .slider__view-more {
      opacity: 1;
      transform: scale(1);
    }
  }

  .slider__arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: absolute;
    right: 0;
    top: 35%;
    transform: translateY(-50%) rotateZ(90deg);
  }

  .slider__arrow {
    padding: 0.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background-color: transparent;
    color: #fff;
    padding: 1rem;
    cursor: pointer;
  }
}

/******************       TABEED COMPONENT           ***********/

.tab {
  background-color: rgba(138, 43, 226, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  margin: max(1rem, 3rem) 0;
  padding: 15rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;

  .tab__button__container {
    margin: max(1rem, 5vh) 0;
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .tab__button {
    font-size: clamp(1rem, 2vw, 1.4rem);
    padding: max(1rem, 1vh) 1rem;
    cursor: pointer;
    border: none;
    border-radius: 0.2rem;
    outline: none;
    box-shadow: none;
    background-color: transparent;
    color: #fff;
    position: relative;

    &::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      background: orange;
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
      transition: width cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.2s;
    }
  }

  .tab__button:hover.tab__button::after {
    width: 50%;
  }

  .tab__button--active {
    &::after {
      width: 15%;
    }
  }

  .tab__button__text--active {
    color: orange;
  }

  .tab__content__container {
    position: relative;
    width: min(120rem, 90%);
  }

  .tab__content {
    display: flex;
    overflow-x: hidden;
    /* background-color: rgba(138, 43, 226, 0.8); */
  }
}

/*  Card slider arrow  */

.btn-arrow {
  padding: 1rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.6rem;
  background-color: transparent;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: padding 0.4s;

  &::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background-color: crimson;
    border-radius: inherit;
    z-index: -1;
  }

  span {
    animation: up-down 1s infinite;
  }

  &:hover {
    padding: 4rem;

    span {
      animation: none;
    }
  }
}

.btn-arrow--next {
  right: 0;
}

.btn-arrow--prev {
  left: 0;
}

/* Dots */

.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -3rem;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);

  & :not(:last-child) {
    margin-right: 1rem;
  }
}

.dots__dot {
  width: 1rem;
  height: 1rem;
  border-radius: 1rem;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(0.9);
  transition: all 0.5s;
}

.dots__dot:hover .dots__dot:has(.dots__dot) {
  background-color: black;
}

.dots__dot--active {
  background: #fff;
  width: 3.5rem;
}

/******************       CARD           ***********/

.card {
  width: min(calc(100vw / 3), 18vw);
  height: min(40rem, 40rem);
  background-color: #fff;
  margin-inline: max(1rem, 1vh);
  margin-bottom: max(4rem, 1vw);
  margin-top: 3rem;
  position: relative;
  overflow-y: hidden;
  display: inline-block;
  border: 1px solid #fff;
  border-radius: 1rem;
  box-sizing: content-box;
  flex: 0 0 25rem;
  transition: transform 0.4s;

  .card__wrapper {
    width: 100%;
    height: 100%;
  }

  .card__img {
    width: 100%;
    height: 100%;
    cursor: pointer;

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

  .card__details {
    position: absolute;
    width: 100%;
    bottom: -6rem;
    left: 0;
    padding: max(1rem, 2vh);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: bottom 0.4s;
  }

  &:hover .card__details {
    bottom: 0;
  }

  .card__name {
    flex: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;

    a {
      text-decoration: none;
      color: #fff;
      display: flex;
      position: absolute;
      left: -4rem;
      opacity: 0;
      transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }
  }

  &:hover .card__details .card__name a {
    left: 0;
    opacity: 1;
  }

  .card__price {
    color: #fff;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1.5;
    position: relative;
    min-height: 3rem;
    overflow: hidden;
  }

  .card__main-price {
    position: absolute;
    right: -5rem;
    top: 0;
    opacity: 0;
    transition: all 0.8s 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .card__discount-price {
    position: absolute;
    bottom: -5rem;
    opacity: 0;
    left: 50%;
    transform: translate(-50%, 0);
    transition: all 0.8s 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }

  &:hover .card__details .card__price .card__main-price {
    opacity: 1;
    right: 50%;
    transform: translate(50%, 0);
  }

  &:hover .card__details .card__price .card__discount-price {
    opacity: 1;
    bottom: 0;
  }
}

/******************       BLOGS           ***********/

.blog {
  margin: max(1rem, 3rem) 0;
  padding: max(1rem, 2vh);

  .blog__wrapper {
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    padding: max(1rem, 1vh);
  }

  .blog__card {
    flex: 1 0 32%;
    margin: max(0.5rem, 1vh);
    /* border: 1px solid aliceblue; */
    border-radius: 1rem;
    background-color: rgba(255, 165, 0, 0.1);
    /* width: min(90%, 40rem); */
    min-height: 30rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }

  .blog__img {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.4s;

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

  .blog__details {
    position: absolute;
    width: 100%;
    bottom: -100%;
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: max(1rem, 1vh);
    border-top-right-radius: 5rem;
    transition: bottom 0.4s, border-radius 0.3s;
  }

  .blog__link {
    text-decoration: navajowhite;
    color: #fff;
    font-size: clamp(1.1rem, 3vh, 1.45rem);
  }

  .blog__description {
    color: #fff;
    font-size: clamp(1rem, 1vw + 1rem, 1.3rem);
    text-align: justify;
    margin-top: max(1rem, 1vh);
    opacity: 0;
    transform: translateY(3rem);
    transition: all 0.4s 0.4s;
  }

  .blog__action {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 10%;
    right: -100%;
    transform: translate(0, -20%);
    gap: 1rem;
    padding: 0 max(1rem, 1vh);
    transition: right 0.4s;

    .blog__action__btn {
      width: 3rem;
      height: 3rem;
      border-radius: 4rem;
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #fff;
    }
  }

  .blog__card:hover {
    .blog__action {
      right: 0;
    }

    .blog__details {
      bottom: 0;
      visibility: visible;
    }

    .blog__img {
      transform: scale(0.8) translateY(-3rem);
    }

    .blog__description {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/******************       About us           ***********/

.about-us {
  padding: max(1rem, 1vh) 0;

  .about-us__wrapper {
    display: flex;
    justify-content: space-evenly;
    margin: max(1rem, 2vh) 0;
    flex-direction: column;
    align-items: center;
  }

  .about-us__story {
    width: min(90%, 120rem);
    display: flex;
  }

  .about-us__img {
    /* width: 50rem; */
    flex: 1;
    border: 1rem solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    box-shadow: -0.2rem 0.2rem 0.4rem rgb(255, 255, 255), -0.4rem 0.4rem 0.4rem rgb(0, 0, 0),
      -0.6rem 0.6rem 0.6rem rgba(138, 43, 226, 0.8), -0.8rem 0.8rem 0.4rem rgba(255, 165, 0, 0.4);

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

  .about-us__text-container {
    column-count: 2;
    column-gap: 2rem;
    margin-top: 2rem;
  }

  .about-us__text {
    flex: 1;
    font-size: clamp(1rem, 2vw + 1rem, 1.4rem);
    margin: 0 max(1rem, 1vh);
    text-align: justify;
    line-height: 1.5;
    font-weight: 500;
    color: rgb(255, 255, 255);

    h3 {
      font-size: clamp(1rem, 2vw + 1rem, 1.6rem);
    }
  }

  .about-us__list-container {
    margin: max(0rem, 1vh) 0;
    padding: 1.5rem;
  }

  .about-us__list__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: max(1rem, 1vh);
    gap: 5rem;
  }

  .about-us__list__item {
    flex: 1;
  }

  .about-us__team {
    margin-top: max(2rem, 5vh);

    h3 {
      text-align: center;
      font-size: clamp(1.1rem, 2vw + 1rem, 1.3rem);
      margin-bottom: max(1rem, 3vh);
      color: #fff;
    }

    .about-us__team__wrapper {
      display: flex;
      padding: 2rem;
      flex-wrap: wrap;
    }

    .team {
      display: flex;
      flex-direction: column;
      flex: 1;
      border: 1px solid #fff;
      border-radius: 0.5rem;
      margin: max(1rem, 1vh);
    }

    .team__img {
      background: rgab(255, 255, 255, 0.2);
      width: 100%;
      height: 20rem;
      padding: 1rem;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0.5rem;
      }
    }

    .team__detail {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: max(1rem, 2vh) 0;
      min-height: 10rem;
      justify-content: space-evenly;
    }

    .team__name {
      font-size: clamp(1rem, 3vw + 1rem, 1.4rem);
      font-weight: 700;
      color: #fff;
      text-transform: capitalize full-width;
    }

    .team__job {
      color: rgba(255, 255, 255, 0.6);
      text-transform: capitalize;
      font-size: clamp(0.875rem, 3vw + 5px, 1.15rem);
    }

    .team__media {
      ul {
        display: flex;
        align-items: center;
        list-style: none;
        gap: 1rem;
        margin-top: 2rem;

        li:hover {
          &:first-child {
            a {
              background-color: rgba(29, 77, 233, 1);
            }
          }

          &:nth-child(2) {
            a {
              background-color: black;
            }
          }

          &:last-child {
            a {
              background-color: rgba(29, 77, 233, 1);
            }
          }
        }
      }

      a {
        text-decoration: navajowhite;
        color: #fff;
        border: 1px solid #fff;
        padding: 1rem;
        border-radius: 50%;
        transition: all 0.4s;
      }
    }
  }
}

/******************       ANIMATIONS           ***********/

@keyframes up-down {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }

  100% {
    transform: translateY(0);
  }
}

/******************       FOOTER           ***********/

footer {
  min-height: 1rem;
  background-color: rgba(112, 98, 255, .5);
  color: #fafafa;
  padding: max(1rem, 1vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

/******************       RESPONSIVE           ***********/

@media (max-width: 1200px) {
  .about-us {
    .about-us__img {
      width: 30rem;
    }
  }
}

@media (max-width: 1000px) {
  .about-us {
    .about-us__img {
      border: none;

      & > * {
        border-radius: inherit;
      }
    }

    .about-us__text-container {
      column-count: 1;
    }
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .header {
    background: rgba(112, 98, 255, 1);
    width: min(100%, 25rem);
    height: 100%;
    z-index: 99999;
    position: fixed !important;
    opacity: 0;
    left: -100%;
    top: 0;
    border-top-left-radius: inherit;
    border-bottom-left-radius: inherit;
    transition: left 0.6s 0.6s;

    .header__wrapper {
      flex-direction: column;
      gap: 3rem;
    }

    .header__list {
      flex-direction: column;
      margin-right: initial;
      gap: 3rem;
      align-items: flex-start;
      margin-top: 1rem;
    }

    .header__item:not(:first-child) {
      margin-left: 0;
    }

    .header__link {
      color: #fff;
      text-decoration: none;
      font-size: clamp(1rem, 3vw + 1rem, 1.24rem);
      font-weight: 500;
      padding: 1rem 3rem;
      position: relative;
    }
  }

  .header.active {
    opacity: 1;
    left: 0;
  }

  .btn--register {
    margin-top: 10rem;
    width: 100%;
    justify-content: center;
    box-shadow: 0rem 0 0.7rem rgb(255, 255, 255);
  }

  .slide {
    & > * {
      flex: 1 0 51% !important;
    }
  }

  .slider__arrow-container {
    right: -5% !important;
    top: 10% !important;
  }

  .btn-arrow {
    display: none;
  }

  .about-us {
    .about-us__story {
      flex-direction: column;
      align-items: center;
    }

    .about-us__img {
      width: 80vw;
    }

    .about-us__text {
      margin-top: 3rem;
      margin-inline: 0;
    }

    .about-us__team__wrapper {
      padding: 0 !important;
      justify-content: center;
      gap: 1rem;
    }

    .team {
      flex: 0 0 45% !important;
      margin-top: 2rem;
      margin-left: 0 !important;
    }
  }

  .blog__card {
    flex: 1 0 50% !important;

    .blog__action {
      right: 0;
    }
  }
}

@media (max-width: 540px) {
  .about-us {
    .team {
      flex: 0 0 100% !important;
      margin: 0 !important;
    }
  }
}

@media (max-width: 480px) {
  .tab {
    .tab__button__container {
      gap: 0.5rem;
    }
  }
}
