@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;900&display=swap");

:root {
  --primary: #6a38fe;
  --secondary: rgb(168, 85, 247);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  outline: 0;
  border: 0;
}

html {
  background-image: url("images/lines.svg"), linear-gradient(to right, #070a29, #070a29);
  background-size: 200px 200px;
  color: white;
  scroll-behavior: smooth;
}

#loading {
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  position: fixed;
  display: block;
  z-index: 99;
  background-color: white;
}


.custom-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 100;
  --d:40px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  color: #766DF4;
  box-shadow: 
    calc(1*var(--d))      calc(0*var(--d))     0 0,
    calc(0.707*var(--d))  calc(0.707*var(--d)) 0 1px,
    calc(0*var(--d))      calc(1*var(--d))     0 2px,
    calc(-0.707*var(--d)) calc(0.707*var(--d)) 0 3px,
    calc(-1*var(--d))     calc(0*var(--d))     0 4px,
    calc(-0.707*var(--d)) calc(-0.707*var(--d))0 5px,
    calc(0*var(--d))      calc(-1*var(--d))    0 6px;
  animation: s7 1s infinite steps(8);
}

@keyframes s7 {
  100% {transform: rotate(1turn)}
}

body {
  background-image: linear-gradient(
    to right,
    rgb(from var(--primary) r g b / 20%),
    rgb(from var(--secondary) r g b / 20%)
  );
  font-family: "Outfit", sans-serif;
  font-size: 1rem /* 16px */;
  line-height: 1.5rem /* 24px */;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* height: 4rem; */
  backdrop-filter: blur(8px);
  z-index: 10;
}

button {
  background-image: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 0.625rem 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all ease 0.3s;
}

button.btn-large {
  font-size: 1rem /* 16px */;
  line-height: 1.5rem;
  padding: 1rem 3rem;
}

button:hover {
  background-image: linear-gradient(to left, var(--primary), var(--secondary));
}

button:focus {
  outline: 2px solid rgb(233, 213, 255);
  outline-offset: 2px;
}

main {
  padding-top: 4rem;
}

/* 
======== HERO SECTION ============
*/

#hero {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

#hero > div {
  width: 100%;
  text-align: center;
}

#hero h2 {
  font-weight: 900;
  font-size: 2.25rem /* 36px */;
  line-height: 2.5rem /* 40px */;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-bottom: 1rem;
}

#hero button {
  margin-top: 1rem;
}

#hero .btns {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.custom-select {
  position: relative;
  /* width: 400px; */
  max-width: 100%;
  font-size: 1.15rem;
  color: #000;
}

.select-button {
  font-size: 1.15rem;
  /* background-color: #fff; */
  font-size: 1rem /* 16px */;
  line-height: 1.5rem;
  padding: 1rem 2rem;
  cursor: pointer;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.selected-value {
  text-align: left;
}

.arrow {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #000;
  transition: transform ease-in-out 0.3s;
  color: white;
}

.select-dropdown {
  position: absolute;
  list-style: none;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background-color: #301654;
  border: 1px solid #caced1;
  border-radius: 4px;
  padding: 10px 0;
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
  transition: 0.5s ease;
  transform: scaleY(0);
  opacity: 0;
  visibility: hidden;
}

.select-dropdown:focus-within {
  box-shadow: 0 10px 25px rgba(94, 108, 233, 0.6);
}

.select-dropdown li {
  position: relative;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  align-items: center;
  color: white;
  min-width: max-content;
}

.select-dropdown li label {
  width: 100%;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.select-dropdown::-webkit-scrollbar {
  width: 7px;
}
.select-dropdown::-webkit-scrollbar-track {
  background: #301654;
  border-radius: 25px;
}

.select-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}

.select-dropdown li:hover,
.select-dropdown input:checked ~ label {
  background-color: var(--primary);
}

.select-dropdown input:focus ~ label {
  background-color: #dfdfdf;
}

.select-dropdown input[type="radio"] {
  position: absolute;
  left: 0;
  opacity: 0;
}

/* interactivity */

.custom-select.active .arrow {
  transform: rotate(180deg);
}

.custom-select.active .select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

@media (min-width: 768px) {
  #hero div.left {
    width: 66.666667%;
  }
  #hero div.right {
    width: 33.333333%;
  }
  #hero h2 {
    font-size: 3.25rem;
    line-height: 1;
  }
  #hero p {
    font-size: 1.125rem /* 18px */;
    line-height: 1.75rem; /* 28px */
  }
  #hero .btns {
    flex-direction: row;
  }
}

/* 
========= SELECTION SECTION ===========
*/

#selection {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.5rem 2rem 2rem;
  margin-bottom: 4rem;
}

#selection h3 {
  text-align: center;
  font-size: 1.875rem /* 30px */;
  line-height: 2.25rem /* 36px */;
  font-weight: 900;
  margin-bottom: 2.5rem;
}

#selection .grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

#selection .grid-child {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  /* background-image: linear-gradient(to right, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.1)); */
  background-color: rgb(255 255 255 / 0.1);
  border-radius: 0.5rem;
  padding: 2rem 2rem 2rem;
  transition: all ease 0.3s;
}

#selection .grid-child:hover {
  background-image: linear-gradient(to right, var(--primary), var(--secondary));
}

#selection .grid-child:focus {
  outline: 2px solid rgb(233, 213, 255);
  outline-offset: 2px;
}

#selection .grid-child h5 {
  font-size: 1.125rem /* 18px */;
  line-height: 1.75rem /* 28px */;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

#selection .grid-child p {
  color: rgb(255 255 255 / 75%);
}

@media (min-width: 768px) {
  #selection h3 {
    font-size: 2.25rem /* 36px */;
    line-height: 2.5rem /* 40px */;
  }
  #selection .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 
======== FOOTER ============
*/
footer {
  background-color: rgb(0 0 0 / 0.5);
  padding: 3rem 2rem 0;
}

footer section {
  max-width: 80rem;
  margin: 0 auto;
}

footer .socials {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

footer .socials span:hover {
  text-decoration: underline;
  cursor: pointer;
}

footer .copyright {
  font-size: 0.875rem /* 14px */;
  line-height: 1.25rem /* 20px */;
  color: rgb(156 163 175);
  text-align: center;
  padding: 2rem 0.5rem;
}

@media (min-width: 768px) {
  footer .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
