@use "index" as *;

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  line-height: 1.5;
  font-family: "Open Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1 {
  color: $primary-color;
  text-transform: capitalize;
  font-size: 30px;
  @include responsive(lg) {
    font-size: 45.83px;
  }
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 3rem;
}

p {
  line-height: 25px;
  font-size: 14px;
  // @include responsive(md) {
  //   font-size: 16px;
  // }
  // @include responsive(lg) {
  //   font-size: 19px;
  // }
}

li {
  position: relative;
  padding-left: 2rem;

  margin-bottom: 25px;

  font-size: 14px;
  // @include responsive(md) {
  //   font-size: 16px;
  // }
  // @include responsive(lg) {
  //   font-size: 19px;
  // }

  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0; // aligns icon with text

    // @include responsive(md) {
    //   top: 0.2em;
    // }
    width: 21px;
    height: 21px;
    @include responsive(lg) {
      width: 23px;
      height: 23px;
    }
    background-image: url("../images/circle-arrow.png");
    background-repeat: no-repeat;
    background-size: contain;
  }
}

.container2 {
  width: 90vw;
  margin: 0 auto;
//  @include responsive(md) {
//     width: 90vw;
//   }
  @include responsive(2xl) {
    width: 71.75rem;
  }
  max-width: 1148px;
  // overflow: hidden;
}

.container {
  width: 90vw;
  margin: 0 auto;

  @include responsive(2xl) {
    width: 71.75rem;
  }
  max-width: 1148px;
  overflow: hidden;
}

#hero_logo,
#header_logo {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#hero_logo.visible,
#header_logo.visible {
  opacity: 1;
  visibility: visible;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
}

img {
  max-width: 100%;
}

button {
  border: none;
  outline: none;
  background: none;
}

.scroll-top-btn {
  position: fixed;
  right: 30px;
  bottom: 40px;
  width: 50px;
  z-index: 99;
  height: 50px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  border: none;

  @include grid-center;

  box-shadow: $shadow-lg;
  transition: $transition;
  &:hover {
    background-color: $primary-color;
    transform: scale(1.2);
  }
}

.scroll-top-btn .scroll-btn {
  width: 20px;
  height: 20px;
  object-fit: contain;
  rotate: 90deg;
  @include white-filter;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.scroll-top-btn.show {
  @include responsive(sm) {
    opacity: 1;
    visibility: visible;

    animation: bounceIn 0.6s ease forwards;
  }
  transform: translateY(0);
  pointer-events: auto;
}

//scroll top animation
@keyframes bounceIn {
  0% {
    transform: translateY(50px) scale(0.5);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px) scale(1.1);
    opacity: 1;
  }
  80% {
    transform: translateY(5px) scale(0.95);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(0);
  // transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;

  &[data-animate="fade-up"] {
    transform: translateY(80px);
    // transform: translateY(80px) scale(0.7);
    // transform: perspective(800px) rotateX(-90deg);
  }
  &[data-animate="fade-down"] {
    transform: translateY(-80px);
    // transform: translateY(-80px) scale(0.7);
    //  transform: perspective(800px) rotateX(90deg);
  }
  &[data-animate="fade-left"] {
    transform: translateX(80px);
    // transform: translateX(80px) scale(0.7);
    //  transform: perspective(800px) rotateY(90deg);
  }
  &[data-animate="fade-right"] {
    transform: translateX(-80px);
    // transform: translateX(-80px) scale(0.7)
    // transform: perspective(800px) rotateY(-90deg);
  }

  &.in-view {
    opacity: 1;
    transform: translate(0, 0);
  }
}
