*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

img,
svg,
canvas,
video {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font: inherit;
}

input,
label,
select,
textarea {
  font: inherit;
}

ul,
li {
  list-style: none;
}

a {
  font: inherit;
  color: inherit;
}

:root {
  /* PADDING */
  --header-container-padding: 1.25rem 2.25rem;

  /* GAP */
  --left-side-ele-gap: 1.75rem;
  --icon-gap: 0.75rem;

  /* FONT-SIZE */
  --icon-ionic-fs: 1.5rem;
  --icon-txt-fs: 2rem;

  /* WIDTH & HEIGHT */
  --application-icon-width: 3rem;
  --application-icon-height: 3rem;

  /* HEADING & PARA  */
  --primary-title-fs: 3.125rem;
  --secondary-title-fs: 2.25rem;
  --para-primary-fs: 1.15rem;
  --para-secondary-fs: 1.1rem;

  /* EXTENSION BTN */
  --btn-extension-padding: 0.5rem 1.25rem;

  --btn-extension-mg-top: 1.5rem;
  --service-two-btn-extension-mg-top: 2.5rem;

  --btn-extension-gap: 0.5rem;

  --btn-extension-fs: 1.25rem;

  --btn-extension-img-width: 1.5rem;

  /* COLOR */
  --white-clr: #fff;
  --service-bk-clr: #f4f4f5;
}

body {
  height: 100vh;
  position: relative;
  isolation: isolate;

  font-family: "Lato", sans-serif;
}

.flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.status__message {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  text-align: center;

  font-size: 1.1rem;
  color: #fff;
  padding: 0.25rem 1.5rem;
  border-radius: 100px;

  opacity: 0;
  transition: opacity 0.2s ease-in, transform 0.3s ease-in 0.25s;
  pointer-events: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 100;
}

.header__container {
  padding: var(--header-container-padding);
  background-color: var(--white-clr);
  border-bottom: 2px solid hsla(240, 5%, 34%, 0.15);
}

.left-side__ele {
  margin-right: auto;
  gap: var(--left-side-ele-gap);
}

.icon {
  cursor: pointer;
  gap: var(--icon-gap);
}

.icon__icon {
  width: var(--application-icon-width);
  height: var(--application-icon-height);
}

.icon__ionic {
  font-size: var(--icon-ionic-fs);
}

.icon__txt {
  font-family: "Sansation", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: var(--icon-txt-fs);
}

.loading__bar {
  height: 0.35rem;
  overflow: hidden;
  background-color: transparent;
}

.loading__bar_slider {
  width: 0%;
  height: 100%;
  position: relative;
  overflow: hidden;

  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;

  background-color: #2563eb;
  background-image: linear-gradient(
    45deg,
    hsl(166deg 85% 35%) 0%,
    hsl(172deg 100% 32%) 8%,
    hsl(177deg 100% 31%) 17%,
    hsl(183deg 100% 32%) 25%,
    hsl(189deg 100% 35%) 33%,
    hsl(193deg 100% 38%) 42%,
    hsl(198deg 100% 41%) 50%,
    hsl(201deg 100% 43%) 58%,
    hsl(205deg 100% 45%) 67%,
    hsl(207deg 100% 47%) 75%,
    hsl(210deg 100% 47%) 83%,
    hsl(212deg 100% 47%) 92%,
    hsl(221deg 83% 53%) 100%
  );
}

.loading__bar_slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;

  background-color: inherit;
  background-image: inherit;
}

@keyframes loadingBar {
  0% {
    width: 20%;
  }

  100% {
    width: 100%;
  }
}

/* MAIN */

/* HERO SECTION */
.hero__section {
  height: 100vh;

  /* PADDING */
  --search-box-input-padding: 0.5rem 1.125rem;
  --search-box-btn-padding: 0.5rem 1.25rem;

  /* MARGIN */
  --hero-txt-primary-heading-mg-btm: 2rem;

  /* GAP */
  --hero-section-container-gap: 2.75rem;

  /* FONT-SIZE */
  --search-box-input-txt: 1.125rem;
  --search-box-btn-fs: 1.125rem;
}

.hero__section {
}

.hero__section__container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  justify-items: center;
  text-align: center;
  gap: var(--hero-section-container-gap);
}

.hero__text {
  gap: 0.8rem;
}

.search__box {
  flex-wrap: wrap;
  width: 85%;
}

.search__link {
  flex: 1 1 60%;
  min-width: 20ch;
}

.convert__btn {
  flex: 1 1 30%;
  min-width: max-content;
}

.search__box input {
  font-size: var(--search-box-input-txt);
  padding: var(--search-box-input-padding);
  border-radius: 100px;
  border: 2px solid rgba(0, 0, 0, 0.65);
  outline: none;

  transition: border 0.25s;
}

.search__box input:focus {
  border-color: hsla(221, 83%, 53%, 0.65);
}

.search__box button {
  font-size: var(--search-box-btn-fs);
  padding: var(--search-box-btn-padding);
  border-radius: 100px;
  background-color: #3db599;
  color: #f4f4ed;
  border: 2px solid #3db599;

  text-wrap: nowrap;
  transition: all 0.3s;
}

.scanning__dot::after {
  content: "";
  display: inline-block;
  animation: dots-animation 2s steps(4, end) infinite;
  width: 1em;
  transform: scale(1.15);
  text-align: left;
}

@keyframes dots-animation {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
  100% {
    content: "";
  }
}

.spinner {
  width: 0.95em;
  aspect-ratio: 1/1;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.25rem;
  margin-bottom: 2.8px;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----------------------------- */

/* SERVICE SECTION */
.service__box {
  /* PADDING */
  --service-box-padding: 0rem 5rem;

  /* GAP */
  --service-box-gap: 3rem;
  --service-txt-gap: 0rem;
  --service-txt-sub-gap: 1.125rem;
  --steps-gap: 0.5rem;

  /* WIDTH & HEIGHT */
  --service-txt-min-width: 400px;
  --service-txt-sub-para-max-width: 65ch;
  --service-video-min-width: 360px;

  /* LINE HEIGHT */
  --service-txt-sub-para-line-height: 1.75;

  /* FONT SIZE */
  --steps-fs: 1.1rem;

  min-height: 100vh;
  padding: var(--service-box-padding);
  flex-wrap: wrap;
  gap: var(--service-box-gap);
  background-color: var(--service-bk-clr);
}

.service__box:not(:last-child) {
  border-bottom: 2px solid hsla(270, 3%, 14%, 0.15);
}

.service__01 .service__txt-sub {
  gap: 0.2rem;
}

.steps_to_get_link > p {
  margin-bottom: 0.75rem;
  color: #333;
}

.steps {
  gap: var(--steps-gap);
  font-size: var(--steps-fs);
}

.step span {
  font-weight: 600;
}

.service__02 .service__video {
  order: -1;
}

.service__txt {
  flex: 1 1 50%;
  min-width: var(--service-txt-min-width);

  gap: var(--service-txt-gap);
}

.service__txt-sub {
  gap: var(--service-txt-sub-gap);
}

.service__txt-sub p {
  max-width: var(--service-txt-sub-para-max-width);
  line-height: var(--service-txt-sub-para-line-height);
}

.service__video {
  flex: 1 1 40%;
  min-width: var(--service-video-min-width);
}

.btn__extension {
  gap: var(--btn-extension-gap);
  font-size: var(--btn-extension-fs);

  color: #f4f4ed;
  background-color: hsl(166, 50%, 47%);
  border: 2px solid hsl(166, 50%, 47%);
  border-radius: 100px;
  padding: var(--btn-extension-padding);

  width: max-content;
  transition: transform 0.3s, opacity 0.3s;
}

.btn__extension img {
  width: var(--btn-extension-img-width);
}

.service__02 .btn__extension {
  margin-top: var(--service-two-btn-extension-mg-top);
}

/* ----------------------------- */

/* FOOTER */
.footer__container {
  /* PADDING */
  --footer_container-padding: 3rem 2rem 2rem 2rem;

  /* FONT-SIZE */
  --footer-contact-fs: 1.3rem;
  --git-icon-fs: 1.75rem;
  --disclaimer-fs: 1.25rem;

  /* MARGIN */
  --disclaimer-mg-top: 2rem;

  /* GAP */
  --source-code-gap: 0.75rem;

  /* WIDTH & HEIGHT */
  --extension-logo-width: 1.75rem;

  color: var(--white-clr);
  background-color: #09090b;

  padding: var(--footer_container-padding);
}

.about__application {
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact {
  font-size: var(--footer-contact-fs);
  flex: 1;
  min-width: 350px;
}

.contact p {
  text-wrap: nowrap;
}

.social__links {
  align-self: flex-end;
  flex: 1;
  min-width: 200px;
}

.social__links .icon {
  justify-content: flex-end;
  text-wrap: nowrap;
}

.source__code {
  justify-content: flex-end;
  gap: var(--source-code-gap);
  text-wrap: nowrap;
}

.extension__logo {
  cursor: pointer;
  aspect-ratio: 1/1;
  width: var(--extension-logo-width);

  transition: transform 0.3s, opacity 0.3s;

  display: none;
}

.git__icon {
  cursor: pointer;
  font-size: var(--git-icon-fs);

  transition: transform 0.3s, opacity 0.3s;
  vertical-align: middle;
}

.disclaimer {
  margin-top: var(--disclaimer-mg-top);
  text-align: center;
  font-size: var(--disclaimer-fs);
}

/* ----------------------------- */

/* UTILITIES */
.hidden {
  display: none;
}

.btn__extension--plus_500 {
}

.btn__extension--minus_500 {
  display: none;
}

.status__message--active-red {
  transform: translate(-50%, 50%);
  opacity: 100%;
  pointer-events: auto;
  background-color: #ff6b6b;
}

.status__message--active-blue {
  transform: translate(-50%, 50%);
  opacity: 100%;
  pointer-events: auto;
  background-color: #2563eb;
}

.loading__bar_slider--activate {
  animation: loadingBar 5s linear infinite;
}

.loading__bar_slider--activate-scanner {
  background-image: linear-gradient(
    45deg,
    hsl(166deg 85% 35%) 0%,
    hsl(172deg 100% 32%) 8%,
    hsl(177deg 100% 31%) 17%,
    hsl(183deg 100% 32%) 25%,
    hsl(189deg 100% 35%) 33%,
    hsl(193deg 100% 38%) 42%,
    hsl(198deg 100% 41%) 50%,
    hsl(201deg 100% 43%) 58%,
    hsl(205deg 100% 45%) 67%,
    hsl(207deg 100% 47%) 75%,
    hsl(210deg 100% 47%) 83%,
    hsl(212deg 100% 47%) 92%,
    hsl(221deg 83% 53%) 100%
  );
}

.loading__bar_slider--activate-pdf {
  background-image: linear-gradient(
    45deg,
    hsl(221deg 83% 53%) 0%,
    hsl(244deg 72% 63%) 8%,
    hsl(264deg 66% 60%) 17%,
    hsl(280deg 60% 56%) 25%,
    hsl(296deg 53% 51%) 33%,
    hsl(310deg 62% 51%) 42%,
    hsl(318deg 74% 52%) 50%,
    hsl(325deg 83% 53%) 58%,
    hsl(331deg 91% 55%) 67%,
    hsl(337deg 96% 57%) 75%,
    hsl(344deg 99% 59%) 83%,
    hsl(351deg 100% 62%) 92%,
    hsl(0deg 99% 64%) 100%
  );
}

.search__box .input--invalid {
  border-color: #ff6b6b;
}

.search__box .convert__btn--freeze {
  pointer-events: none;
  opacity: 1;
}

.search__box .convert__btn--freeze-scanner {
  background-color: #2563eb;
  border-color: #2563eb;
}

.search__box .convert__btn--freeze-pdf {
  background-color: #fe4a49;
  border-color: #fe4a49;
}

.primary--title {
  font-size: var(--primary-title-fs);
  font-weight: 700;
  text-wrap: nowrap;
}

.para--primary--highlight {
  color: #0da380;
}

.secondary__title {
  font-size: var(--secondary-title-fs);
}

.secondary__title--highlight {
  color: #0da380;
}

.para--primary {
  font-size: var(--para-primary-fs);
  color: #333;
}

.para--secondary {
  font-size: var(--para-secondary-fs);
}

/* ----------------------------- */

@media only screen and (hover: hover) {
  .btn__extension:hover {
    opacity: 0.85;
    transform: scale(0.9);
  }

  .convert__btn:hover {
    opacity: 0.7;
    transform: scale(0.9);
  }

  .git__icon:hover {
    opacity: 0.7;
    transform: scale(0.9);
  }

  .extension__logo:hover {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

@media only screen and (max-width: 1250px) {
  :root {
    --primary-title-fs: 2.75rem;
    --secondary-title-fs: 2rem;
    --para-primary-fs: 1.1rem;

    /* EXTENSION BTN */
    --btn-extension-padding: 0.25rem 1rem;

    --service-two-btn-extension-mg-top: 1.75rem;

    --btn-extension-fs: 1.125rem;

    --btn-extension-img-width: 1.25rem;
  }

  .service__box {
    /* PADDING */
    --service-box-padding: 0rem 4rem;
  }
}

@media only screen and (max-width: 1000px) {
  :root {
    /* PADDING */
    --header-container-padding: 1.25rem 1.5rem;

    /* GAP */
    --icon-gap: 0.75rem;

    /* FONT-SIZE */
    --icon-txt-fs: 1.75rem;

    /* WIDTH & HEIGHT */
    --application-icon-width: 2.5rem;
    --application-icon-height: 2.5rem;

    --primary-title-fs: 2.5rem;
    --secondary-title-fs: 1.75rem;
    --para-primary-fs: 1rem;
  }

  .service__box {
    /* PADDING */
    --service-box-padding: 0rem 2.5rem;

    /* LINE HEIGHT */
    --service-txt-sub-para-line-height: 1.5;
  }
}

@media only screen and (max-width: 900px) {
  :root {
    /* PADDING */
    --header-container-padding: 1.25rem 1.5rem;

    --secondary-title-fs: 1.9rem;
  }

  .hero__section {
    /* PADDING */
    --search-box-input-padding: 0.4rem 1rem;
    --search-box-btn-padding: 0.4rem 1rem;

    /* FONT-SIZE */
    --search-box-input-txt: 1.05rem;
    --search-box-btn-fs: 1.05rem;
  }

  .service__box {
    /* PADDING */
    --service-box-padding: 4rem 2.5rem;

    /* GAP */
    --service-box-gap: 6rem;

    /* FONT SIZE */
    --steps-fs: 1rem;
  }

  .service__video {
    max-width: 80%;
    margin-inline: auto;
  }

  .service__02 .service__video {
    order: 0;
  }

  .footer__container {
    /* PADDING */
    --footer_container-padding: 3rem 2rem 3rem 2rem;

    /* MARGIN */
    --disclaimer-mg-top: 3rem;

    /* FONT-SIZE */
    --footer-contact-fs: 1.125rem;
    --disclaimer-fs: 1.125rem;
  }
}

@media only screen and (max-width: 650px) {
  :root {
    /* PADDING */
    --header-container-padding: 1.25rem 1rem;

    /* GAP */
    --icon-gap: 0.5rem;

    /* FONT-SIZE */
    --icon-txt-fs: 1.5rem;

    /* WIDTH & HEIGHT */
    --application-icon-width: 2.25rem;
    --application-icon-height: 2.25rem;

    --primary-title-fs: 2.25rem;
    --secondary-title-fs: 1.75rem;

    /* EXTENSION BTN */
    --btn-extension-mg-top: 2rem;
    --service-two-btn-extension-mg-top: 2.5rem;
  }

  .primary--title {
    text-wrap: wrap;
  }

  .hero__section {
    /* PADDING */
    --search-box-input-padding: 0.35rem 1.25rem;
    --search-box-btn-padding: 0.35rem 1rem;

    /* MARGIN */
    --hero-txt-primary-heading-mg-btm: 1rem;

    /* GAP */
    --hero-section-container-gap: 2.5rem;
  }

  .hero__text {
    min-width: 350px;
  }

  .service__box {
    /* PADDING */
    --service-box-padding: 5rem 2.5rem;

    /* GAP */
    --service-box-gap: 9rem;
  }

  .footer__container {
    /* PADDING */
    --footer_container-padding: 3rem 1.5rem 3rem 1.5rem;

    /* FONT-SIZE */
    --git-icon-fs: 1.6rem;

    /* WIDTH & HEIGHT */
    --extension-logo-width: 1.6rem;
  }
}

@media only screen and (max-width: 500px) {
  :root {
    /* PADDING */
    --header-container-padding: 1rem 1rem;

    --primary-title-fs: 1.8rem;
    --secondary-title-fs: 1.55rem;
    --para-secondary-fs: 1.025rem;

    /* FONT-SIZE */
    --icon-txt-fs: 1.25rem;

    /* WIDTH & HEIGHT */
    --application-icon-width: 2rem;
    --application-icon-height: 2rem;

    /* EXTENSION BTN */
    --service-two-btn-extension-mg-top: 2rem;
  }

  .icon__txt--header {
    display: none;
  }

  .btn__extension--plus_500 {
    display: none;
  }

  .btn__extension--minus_500 {
    display: flex;
    font-size: 1rem;
  }

  .status__message {
    top: 17%;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;

    width: 90%;
  }

  .hero__section {
    padding: 0rem 1.5rem;

    /* PADDING */
    --search-box-input-padding: 0.35rem 1.25rem;
    --search-box-btn-padding: 0.3rem 1rem;

    /* WIDTH & HEIGHT */
    --search-box-input-min-width: 100%;
  }

  .hero__text {
    min-width: 315px;
  }

  .service__box {
    /* PADDING */
    --service-box-padding: 3rem 1.5rem;

    /* WIDTH & HEIGHT */
    --service-txt-sub-para-max-width: auto;
    --service-txt-min-width: auto;
    --service-video-min-width: auto;

    /* GAP */
    --service-box-gap: 6rem;
  }

  .service__01 .service__txt-sub {
    gap: 0.25rem;
  }

  .steps_to_get_link > p {
    margin-bottom: 1rem;
  }

  .service__video {
    max-width: 100%;
  }

  .footer__container {
    /* FONT-SIZE */
    --footer-contact-fs: 1.05rem;
    --disclaimer-fs: 1.125rem;
  }

  .contact {
    text-align: center;
    gap: 0.75rem;

    min-width: auto;
  }

  .contact p {
    text-wrap: auto;
  }

  .social__links {
    justify-items: center;
  }
}
