@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700;800&display=swap");

html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  scrollbar-width: thin; /* "auto" or "none" can also be used */
  scrollbar-color: #0071f2 rgba(217, 217, 217, 0.4);
  font-family: "Poppins", sans-serif;
}
:root {
  --h1: 3.125rem; /*50px*/
  --h2: 2.1875rem; /*35px*/
  --h3: 1.25rem; /*20px*/
  --p: 1rem; /*16px*/
}
body {
  --radius: 20px;

  --shadow: 0px 0px 15px rgba(0, 0, 0, 0.35);
  --shadow-y-bottom: 0px 0px 10px rgba(0, 0, 0, 0.25);
  --shadow-y-top: 0px 4px 25px rgba(0, 0, 0, 0.25);

  --bg: #ffffff;
  --accent: #ffffff;
  --black: #292929;
  --text: #292929;
  --grey: rgba(217, 217, 217, 0.4);

  background-color: var(--bg);
  overflow-x: hidden !important;
}
body.dark {
  --bg: #141414;
  --text: #dddddd;
  --grey: rgba(217, 217, 217, 0.15);
}
body.dark h2{
  color: #fff;
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
p,
a {
  font-size: var(--p);
}
p {
  line-height: 1.8rem;
}
h1 {
  font-size: var(--h1);
}
h2 {
  font-size: var(--h2);
}
h3 {
  font-size: var(--h3);
}
hr {
  background-color: var(--grey);
  height: 2px;
  width: 30%;
  margin: 0 auto;
  opacity: 0.3;
}
.image-container {
  width: 30%;
  position: relative;
  overflow: hidden;
}
.image-container img {
  object-fit: cover;
  width: 100%;
}
.btn {
  background-color: transparent;
  border: 3px solid var(--primary);
  color: var(--primary);
  padding: 1rem 2rem;
  transition: background-color 300ms ease, color 300ms ease;
  border-radius: 10px;
}
body.dark .btn{
  border: 3px solid var(--dark-primary);
  color: var(--dark-primary);
}
.btn:hover {
  background-color: var(--primary);
  border: 3px solid var(--primary);
  color: var(--accent);
}
body.dark .btn:hover{
  background-color: var(--dark-primary);
  color: var(--accent);
}
section {
  padding: 0 5%;
  margin: 7rem auto;
  width: 100%;
}

/* ------------------------------------------------- LOADER ------------------------------------------------- */
.loader {
  min-height: 100vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  flex-direction: column;
  background-color: #000;
  padding: 2rem;
}
body {
  overflow-y: hidden;
}
.loader .animation {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 10vh;
}
.loader .animation span {
  width: 10px;
  height: 7vh;
  background-color: rgb(0, 91, 211);
  box-shadow: 0 0 15px rgba(0, 110, 255, 0.8), 0 0 50px rgba(68, 149, 255, 0.7);
  margin: 0 0.4rem;
  transition: height 300ms ease-out;
  animation: load 0.7s ease-in-out infinite;
}
.loader .animation span:nth-child(1) {
  animation-delay: 300ms;
}
.loader .animation span:nth-child(2) {
  animation-delay: 400ms;
}
.loader .animation span:nth-child(3) {
  animation-delay: 500ms;
}
.loader .animation span:nth-child(4) {
  animation-delay: 600ms;
}
.loader p {
  color: antiquewhite;
  margin-top: 2rem;
  padding-top: 2rem;
  font-size: 1rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  animation: blink 3s ease infinite;
}

@keyframes load {
  0% {
    height: 0vh;
  }
  50% {
    height: 7vh;
  }
  100% {
    height: 0vh;
  }
}
@keyframes blink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
/* ------------------------------------------------- LOADER ------------------------------------------------- */

/* ------------------------------------------------------------------ HEADER ------------------------------------------------------------ */

header {
  position: relative;
  padding: 3% 5% 7%;
  background: var(--primary);
  color: var(--accent);
  width: 100%;
  height: auto;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header nav .back-button {
  border: 5px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  padding: 1rem;
  cursor: pointer;
}
header nav .back-button .fa-arrow-left-long {
  font-size: calc(var(--p) + 1rem);
}
header nav .breadcrumbs {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}
header nav .breadcrumbs li {
  margin: 0 1rem;
}
header nav .breadcrumbs li a {
  position: relative;
  font-size: var(--h3);
  color: var(--accent);
  font-weight: bold;
}
header nav .breadcrumbs li:nth-child(2) {
  padding: 0 2rem;
  border-left: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
}
header nav .breadcrumbs li a::after {
  content: "";
  position: absolute;
  background-color: var(--accent);
  width: 0%;
  height: 3px;
  bottom: -5px;
  left: 0;
  transform-origin: left;
  transition: width 300ms ease;
}
header nav .breadcrumbs li a:hover::after {
  width: 100%;
}
header h1 {
  text-align: center;
  margin-top: 4rem;
  width: 100%;
}
header .mode {
  position: absolute;
  width: 70px;
  height: 70px;
  background-color: var(--bg);
  color: var(--primary);
  border: 3px solid var(--primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  right: 5%;
  bottom: -35px;
  cursor: pointer;
}
header .mode .fa-solid {
  color: var(--primary);
  font-size: calc(var(--p) + 0.7rem);
}
body.dark .mode{
  border: 3px solid var(--dark-primary);
}
body.dark .mode .fa-solid{
  color: var(--dark-primary);
}

/* ------------------------------------------------------------------ HEADER ------------------------------------------------------------ */

/* ------------------------------------------------------------------ BACKGROUND ------------------------------------------------------------ */

.background {
  width: 100%;
  color: var(--text);
}
.background h2 {
  margin-bottom: 2rem;
  color: var(--primary);
}

/* ------------------------------------------------------------------ BACKGROUND ------------------------------------------------------------ */

/* ------------------------------------------------------------------ IMPLEMENTATION ------------------------------------------------------------ */

.implementation h2 {
  color: var(--primary);
  margin-bottom: 2rem;
}
.implementation .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.implementation .content .left-side {
  width: 50%;
}
.implementation .content .left-side .solution {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 2rem 0;
}
.implementation .content .left-side .solution .fa-regular {
  font-size: calc(var(--p) + 0.7rem);
  color: #00be13;
  margin-right: 1rem;
}
.implementation .content .left-side .solution p {
  color: var(--text);
}
.implementation .content .image-container {
  width: 25%;
}

/* ------------------------------------------------------------------ IMPLEMENTATION ------------------------------------------------------------ */

/* ------------------------------------------------------------------ RESULTS ------------------------------------------------------------ */

.results {
  padding: 5%;
  background: var(--primary);
  color: var(--accent);
  text-align: center;
}
.results h2 {
  margin-bottom: 2rem;
}
.results p {
  width: 90%;
  margin: 3rem auto;
}

/* ------------------------------------------------------------------ RESULTS ------------------------------------------------------------ */

/* ------------------------------------------------------------------ COLLATERAL ------------------------------------------------------------ */

.showcase {
  width: 100%;
  margin-bottom: 0rem !important;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.showcase .image-container {
  width: 450px;
  height: auto;
  flex-grow: 1;
}
.showcase .image-container img{
  height: 100%;
}
.divider {
  margin-top: -1%;
  width: 100%;
  min-height: 300px;
  background-color: var(--black);
}
.extras {
  position: relative;
}
.extras .image-container {
  width: 100%;
}
.extras .image-container.logo-comp {
  margin-top: -200px;
}
.extras .image-container.sticker {
  position: absolute;
  width: 15%;
  top: -35%;
  left: 50%;
  transform: translateX(-50%);
}

/* ------------------------------------------------------------------ COLLATERAL ------------------------------------------------------------ */

/* ------------------------------------------------------------------ NEXT STEP ------------------------------------------------------------ */

.next-step {
  text-align: center;
  margin-top: 3rem;
  color: var(--text);
}
.next-step h2 {
  color: var(--primary);
}
.next-step p {
  margin: 2rem 0;
}
.next-step .btn {
  margin: 4rem auto;
  display: flex;
  width: fit-content;
}

/* ------------------------------------------------------------------ NEXT STEP ------------------------------------------------------------ */

/* ------------------------------------------------------------------ FOOTER ------------------------------------------------------------ */

footer {
  background-color: var(--primary);
  color: var(--accent);
  text-align: center;
  padding: 1rem;
  width: 100%;
}
footer p {
  font-weight: bold;
}

/* ------------------------------------------------------------------ FOOTER ------------------------------------------------------------ */

/* ------------------------------------------------------------------ BREAKPOINTS ------------------------------------------------------------ */

/* 1024px */
@media screen and (max-width: 1024px) {
  :root {
    --h1: 2.5rem;
    --h2: 2rem;
    --h3: 1.1rem;
    --p: 0.85rem;
  }
  .extras .image-container.sticker {
    top: -40%;
  }
}

/* 900px header override */
@media screen and (max-width: 900px) {
  :root {
    --h1: 2.25rem;
    --h2: 2rem;
    --h3: 1rem;
    --p: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .background {
    text-align: center;
  }
  .implementation .content {
    flex-direction: column-reverse;
  }
  .implementation h2 {
    text-align: center;
    width: 80%;
    margin: 2rem auto;
  }
  .implementation .content .left-side {
    width: 80%;
    margin: auto;
  }
  .implementation .content .image-container {
    width: 40%;
    margin: 2rem auto;
  }
  .extras .image-container.sticker {
    top: -50%;
  }
}

@media screen and (max-width: 576px) {
  :root {
    --h1: 1.5rem;
    --h2: 1.25rem;
    --h3: 1.125rem;
    --p: 0.75rem;
  }
  p {
    line-height: 1.4rem;
  }
  section {
    margin: 4rem auto;
  }
  header nav .breadcrumbs {
    display: none;
  }
  header h1 {
    margin: 3rem auto 2rem;
  }
  .implementation h2 {
    width: 100%;
  }
}

/* 475px */
@media screen and (max-width: 475px) {
  :root {
    --h1: 1.5rem;
    --h2: 1.25rem;
    --h3: 1.125rem;
    --p: 0.75rem;
  }
  header nav .back-button {
    padding: 0.5rem;
    width: 50px;
    height: 50px;
  }
  header nav .back-button .fa-arrow-left-long {
    font-size: calc(var(--p) + 0.75rem);
  }
  header .mode {
    width: 50px;
    height: 50px;
    bottom: -25px;
  }
  .implementation .content .image-container {
    width: 60%;
    margin: 2rem auto;
  }
  .divider {
    margin-top: -2%;
    min-height: 100px;
  }
  .extras {
    margin-top: -9%;
  }
  .extras .image-container.sticker {
    top: -30%;
  }
  .extras .image-container.logo-comp {
    margin-top: 0px;
  }
}
