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

/* https://andy-bell.co.uk/a-modern-css-reset/ */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 100%;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --Primary-100: 231 69% 60%;
  --Primary-200: 0 94% 66%;

  --Neutral-100: 229 8% 60%;
  --Neutral-200: 229 31% 21%;
}

/* gobal style */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(90%, 68.75rem);
  margin-inline: auto;

  /* outline: 2px solid lime; */
}

p[class*="__description"] {
  color: hsl(var(--Neutral-100));
}

/* gobal style end */

body {
  font-family: "Rubik", sans-serif;
  font-size: 1.125rem;
  overflow-x: hidden;
}
body.active-body {
  overflow-y: hidden;
}

.app {
  position: relative;
  max-width: 1440px;
  margin-inline: center;
}

a {
  text-decoration: none;
}

.gobal-link-style {
  display: block;
  font-size: var(--global-link-fs, 0.9rem);
  line-height: 1;

  padding: 1em 1.4em 1em 1.4em;
  font-weight: 500;

  border-radius: 0.2rem;

  background-color: var(--global-link-bg-clr, transparent);
  color: var(--global-link-txt-clr, black);
  border: 2px solid var(--global-link-border-clr, transparent);
  box-shadow: 0px 8px 16px -8px var(--global-link-boxshadow-clr, rgba(0, 0, 0, 0.75));
}

.gobal-link-style:hover {
  background-color: hsl(0, 0%, 100%);
  color: var(--link-txt-clr-hover, --global-link-txt-clr);
  border: 2px solid var(--border-link-hover, black);
}

/* header */

.header {
  /* outline: 1px solid red; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.header__logo--container {
  position: relative;
  z-index: 11;
}

.bookmark path.nav-open:first-child,
.circle-logo.nav-open {
  fill: white;
}

.bookmark path.nav-open:last-child {
  fill: hsl(var(--Neutral-200) / 0.9);
}

.header__hambuger--btn {
  background-image: url(../images/icon-hamburger.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  height: 1.2rem;
  width: 1.4rem;
  cursor: pointer;

  position: relative;
  z-index: 11;
}
.header__hambuger--btn.nav-open {
  background-image: url(../images/icon-close.svg);
}

.header__navigation {
  position: fixed;
  background-color: hsl(var(--Neutral-200) / 0.9);
  inset: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding-block: 3.5627rem;
  /* height: 0; */
  opacity: 0;
  transform: translateY(-100%);

  transition: transform 0.01s ease-in-out, opacity 0.1s ease-in-out;
}

.header__navigation.nav-open {
  transform: translateY(0);
  opacity: 1;
  z-index: 10;
}

.header__list {
  width: 90%;
}

.header--item:first-child {
  border-top: 1px solid hsl(var(--Neutral-100) / 0.2);
}

.header--item {
  border-bottom: 1px solid hsl(var(--Neutral-100) / 0.2);
  width: 100%;
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
  padding-block: 1em;
}

.header--link {
  color: hsl(0 0% 100% / 0.9);
  text-transform: uppercase;
}

.header__socials {
  /* outline: 1px solid red; */
  margin-block: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header--item_login {
  margin-top: 1.5rem;
  border: 2px solid white;
  border-radius: 0.2rem;
}

/* header end */

/* section 1 / hero section */

.hero__section-1 {
  margin-top: 5em;
}

.hero__img--container {
  position: relative;
  isolation: isolate;
}

.hero__img--container::after {
  content: "";
  background-color: hsl(var(--Primary-100));
  position: absolute;
  display: block;
  border-radius: 100px;
  bottom: 0;
  left: 15%;
  height: 74%;
  width: 400%;

  z-index: -1;
}

.hero__img {
  margin-inline: auto;
}

.hero__content--container {
  text-align: center;
  margin-top: 2em;
}

.hero__heading {
  font-size: 2rem;
  font-size: clamp(2rem, 1.5rem + 2.13vw, 2.7rem);
  color: hsl(var(--Neutral-200));
  font-weight: 500;
}

.hero__links--container {
  display: flex;
  justify-content: center;
  gap: 1rem;

  margin-top: 1.5em;
}

.get-in-chrome {
  --global-link-bg-clr: hsl(var(--Primary-100));
  --global-link-txt-clr: hsl(0, 0%, 100%);
  --global-link-border-clr: var(--global-link-bg-clr);
  --global-link-boxshadow-clr: var(--global-link-bg-clr);
}
.get-in-chrome:hover {
  --border-link-hover: hsl(var(--Primary-100));
  --link-txt-clr-hover: hsl(var(--Primary-100));
}
.get-in-firefox {
  --global-link-bg-clr: rgb(238, 238, 238);
  --global-link-txt-clr: hsl(var(--Neutral-200) / 0.8);
  --global-link-border-clr: var(---global-link-bg-clr);
  --global-link-boxshadow-clr: hsl(var(--Neutral-100));
}
.get-in-firefox {
  --border-link-hover: hsl(var(--Neutral-100));
  --link-txt-clr-hover: hsl(var(--Neutral-200) / 0.8);
}

/* section 1 / hero section end */

/* section 2 / features */

.features {
  margin-top: 10rem;
  text-align: center;
}

.feature__heading {
  font-size: 1.9rem;
  color: hsl(var(--Neutral-200));
}

.feature__description {
  /* font-size: 1rem; */
  margin-inline: auto;
  width: min(90%, 48ch);
}

.feature__list {
  margin-top: 3rem;
}

.feature__heading--tab > span:hover {
  color: hsl(var(--Primary-200));
}

.feature__heading--tab:first-child {
  border-top: 1px solid hsl(var(--Neutral-100));
}

.feature__heading--tab {
  border-bottom: 1px solid hsl(var(--Neutral-100));
  padding-block: 1rem;
  color: hsl(var(--Neutral-200) / 0.7);
  cursor: pointer;
}

.feature__heading--tab > [aria-selected="true"] {
  position: relative;
  color: hsl(var(--Neutral-200));
}

.feature__heading--tab > [aria-selected="true"]::before {
  content: "";
  position: absolute;
  background-color: hsl(var(--Primary-200));

  width: 90%;
  height: 0.25rem;

  bottom: -1.3rem;
  left: 50%;
  transform: translate(-50%, -50%);
}

.feature__item {
  margin-top: 5rem;
}

.feature__item:not([data-active-tab]) {
  display: none;
}

.feature__img--container {
  position: relative;
  isolation: isolate;
}
.feature__img--container::after {
  content: "";
  position: absolute;
  background-color: hsl(var(--Primary-100));
  z-index: -1;
  border-radius: 100px;

  height: 103%;
  width: 400%;
  right: 10%;
  bottom: -20%;
}

.feature__img {
  aspect-ratio: 2 / 1.1;
  width: 100%;
}

.feature__item--description {
  margin-top: 8rem;
}

.description__title {
  color: hsl(var(--Neutral-200));
  font-size: 1.7rem;
}

.description__content {
  color: hsl(var(--Neutral-100));
  /* font-size: 1.1rem; */
}

.feature__link {
  --global-link-bg-clr: hsl(var(--Primary-100));
  --global-link-txt-clr: hsl(0, 0%, 100%);
  --global-link-border-clr: var(--global-link-bg-clr);
  --global-link-boxshadow-clr: var(--global-link-bg-clr);
  display: inline-block;
  --global-link-fs: 0.8rem;
  margin-top: 1.5rem;
}

.feature__link:hover {
  --border-link-hover: hsl(var(--Primary-100));
  --link-txt-clr-hover: hsl(var(--Primary-100));
}

/* section 2 / features end */

/* section 3 / download extension */

.product {
  margin-top: 10rem;
  text-align: center;
}

.product__heading {
  color: hsl(var(--Neutral-200));
  font-size: 1.7rem;
  font-weight: 700;
}

.product__description {
  width: min(90%, 50ch);

  margin-inline: auto;
}

.product__list {
  margin-top: 4rem;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product__item {
  border-radius: 0.3rem;
  box-shadow: 0px 6px 14px -5px rgba(0, 0, 0, 0.75);

  padding: 4rem 1rem 2rem 1rem;

  background-image: url(../images/bg-dots.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 1px 75%;

  height: max-content;
}

.produc__img {
  margin-inline: auto;
}

.product__name {
  margin-top: 3rem;
  font-size: 1.5rem;
  color: hsl(var(--Neutral-200));
  font-weight: 500;
}

.product__version {
  color: hsl(var(--Neutral-100));
}

.product__link {
  margin-top: 4rem;
  --global-link-bg-clr: hsl(var(--Primary-100));
  --global-link-txt-clr: hsl(0, 0%, 100%);
  --global-link-border-clr: var(--global-link-bg-clr);
  --global-link-boxshadow-clr: var(--global-link-bg-clr);
}

.product__link:hover {
  --border-link-hover: hsl(var(--Primary-100));
  --link-txt-clr-hover: hsl(var(--Primary-100));
}

/* section 3 / download extension end */

/* frequently ask / section 4 */

.frequently-ask {
  margin-top: 8rem;
  text-align: center;
}

.frequently-ask__heading {
  font-size: 1.8rem;
  color: hsl(var(--Neutral-200));
}

.question__list {
  margin-top: 3rem;
  text-align: left;
  max-width: 35rem;
  margin-inline: auto;
}

.question__item {
  border-bottom: 1px solid hsl(var(--Neutral-100));
}

.question__heading {
  color: hsl(var(--Neutral-200));
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;

  padding-block: 1rem;
}

.frequently-ask__description {
  max-width: 45ch;
  margin-inline: auto;
}

.question__answer {
  color: hsl(var(--Neutral-200) / 0.7);
  font-size: 1rem;

  margin-top: 0;
  height: 0;
  overflow: hidden;

  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s ease-out, margin-top 0.1s ease-in-out;
}

.question__item:hover > .question__heading {
  color: hsl(var(--Primary-200));
}

.question__item.active > p > svg path,
.question__item.active > .question__heading {
  stroke: red;
  color: red;
}
.question__item.active > p > svg {
  transform: rotate(180deg);
  transition: transform 0.2s ease-in-out;
}
.question__item.active > .question__answer[data-answer] {
  margin-block: 0.5rem;
  height: auto;
  transform: scaleY(1);
}

/* frequently ask / section 4 end */

/* contact us  */

.contact-us {
  padding-top: 5rem;
  padding-bottom: 3rem;
  margin-top: 8rem;
  background-color: hsl(var(--Primary-100));
  color: hsl(0, 0%, 100%);
  text-align: center;
}

.number-of-people-joined {
  color: hsl(0, 0%, 100%, 0.8);
  font-size: 0.9rem;
  letter-spacing: 0.4rem;
  font-weight: 500;
}

.contact-us__heading {
  margin-top: 0.4rem;
  font-size: 1.6rem;
  font-size: clamp(1.6rem, 1.14rem + 1.97vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.02rem;
}

form {
  width: min(30rem, 90%);
  margin-inline: auto;
}

.email {
  margin-top: 0.8rem;
  padding: 0.5em 1rem;
  width: 100%;
  border-radius: 0.4rem;
  position: relative;
}

.label {
  position: relative;
  max-width: max-content;
}

.error-message {
  position: absolute;
  background-color: hsl(var(--Primary-200));
  bottom: -2.5rem;
  font-style: italic;
  width: 98.7%;
  left: 0.1rem;
  text-align: left;
  border-radius: 0.3rem;
  padding: 0.5em 0.1em;
  font-size: 0.8rem;
  display: none;
}

.invalid {
  border: 2px solid hsl(var(--Primary-200));
  background-image: url(../images/icon-error.svg);
  background-repeat: no-repeat;
  background-position: 95% center;
}

.invalid:focus-visible {
  outline: transparent;
}

.contact-us__link {
  margin-top: 2.5rem;
  border-radius: 0.4rem;
  --global-link-bg-clr: hsl(var(--Primary-200));
  --global-link-txt-clr: hsl(0, 0%, 100%);
  --global-link-border-clr: var(--global-link-bg-clr);
  --global-link-boxshadow-clr: var(--global-link-bg-clr);
}

.contact-us__link:hover {
  --border-link-hover: hsl(var(--Primary-200));
  --link-txt-clr-hover: hsl(var(--Primary-200));
}
/* contact us  end */

footer {
  background-color: hsl(var(--Neutral-200));
  padding-block: 2rem;
  /* color: white; */
}
.footer__wrapper {
  display: grid;
  place-items: center;
}

.footer__navigation {
  text-align: center;
}

.footer__nav--item {
  margin-top: 2rem;
}

.footer__nav--link {
  color: hsl(var(--Neutral-100));
  text-transform: uppercase;
}
.footer__nav--link:hover {
  color: hsl(var(--Primary-200));
}

.footer__social {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.footer__social a:hover svg path {
  fill: hsl(var(--Primary-200));
}

/* 700px */
@media (min-width: 43.75em) {
  body {
    /* background-color: red; */
  }

  .bookmark path.nav-open:first-child {
    fill: #242a45;
  }

  .circle-logo.nav-open {
    fill: #5267df;
  }

  .bookmark path.nav-open:last-child {
    fill: white;
  }

  .header__hambuger--btn {
    display: none;
  }

  .header__navigation {
    position: relative;
    padding-block: 0;
    background-color: transparent;
    text-align: left;
    transform: translateY(0);
    opacity: 1;

    /* display: flex;
    align-items: center;
    flex-direction: column; */
  }

  .header__list {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 3rem;
  }

  .header--item:first-child {
    border-top: none;
  }

  .header--item {
    border-bottom: none;
    font-size: 0.8rem;
    padding-block: 0;
  }

  .header--link {
    color: hsl(var(--Neutral-200));
  }
  .header--link:hover {
    color: hsl(var(--Primary-200));
  }

  .header--item_login {
    margin-top: 0;
    border: none;
    border-radius: 0.2rem;
  }

  .header--link_login {
    color: hsl(0 0% 100%);
    display: inline-block;
    background-color: hsl(var(--Primary-200));
    border-radius: inherit;
    padding: 0.6em 2.1em;
    border-radius: 0.3rem;
    border: 2px solid hsl(var(--Primary-200));
    font-weight: 500;
  }

  .header--link_login:hover {
    background-color: hsl(0, 0%, 100%);
    border: 2px solid hsl(var(--Primary-200));
    color: hsl(var(--Primary-200));
  }

  .header__socials {
    display: none;
  }

  /* Q and A section */

  .question__item:first-child {
    border-top: 1px solid hsl(var(--Neutral-100));
  }

  /* Q and A section end */

  /* contact us  */
  .contact-us {
    padding-bottom: 5rem;
  }

  form {
    display: flex;
    gap: 1rem;
    /* outline: 1px solid red; */
  }

  .contact-us__heading {
    margin-top: 1.5rem;
  }

  .error-message {
    bottom: -1.7rem;
    padding: 0.5em 0.1em;
    font-size: 0.8rem;
  }

  .error-message {
    width: 99.5%;
  }

  .email {
    width: 20rem;
  }

  .contact-us__link {
    flex-basis: 50%;

    margin-top: 0.9rem;
  }
  /* contact us end */

  /* footer  */

  .footer__wrapper {
    grid-template-columns: 12.5rem 1fr 1fr;
    grid-auto-flow: column;
  }
  .footer__wrapper > * {
    justify-self: flex-start;
  }

  .footer__navigation {
    place-items: initial;
    text-align: left;
    display: flex;
    gap: 3rem;
  }

  .footer__nav--item {
    margin-top: 0;
  }

  .footer__nav--link {
    font-size: 0.9rem;
    text-transform: uppercase;
  }

  .footer__social {
    margin-top: 0;
    justify-self: flex-end;
  }

  /* footer end */
}

/* 900px */
@media (min-width: 56.25em) {
  .hero__section-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero__img--container {
    grid-column: 2;

    position: relative;
  }

  .hero__content--container {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    text-align: left;
    margin-top: 0;
  }

  .hero__heading {
    /* font-size: 2.7rem; */
    line-height: 1;
  }
  .hero__description {
    width: 45ch;
  }

  .hero__links--container {
    justify-content: flex-start;
  }

  /* section 2 feature section  */

  .features {
    margin-top: 5rem;
  }

  .feature__list {
    /* margin-top: 3rem; */
  }

  .feature__headings {
    display: flex;
    justify-content: space-around;

    border-bottom: 1px solid hsl(var(--Neutral-100));
    width: 70%;
    margin-inline: auto;
  }

  .feature__heading--tab:first-child {
    border-top: none;
  }

  .feature__heading--tab {
    border-bottom: none;
  }

  .feature__heading--tab > [aria-selected="true"]::before {
    width: 148%;
  }

  .feature__item {
    /* margin-top: 4rem; */
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .feature__item--description {
    margin-top: 0;
    align-self: center;
    /* outline: 1px solid red; */
  }

  .feature__img {
    aspect-ratio: 1.5/ 1;
  }

  .description__title {
    font-weight: 500;
    /* font-size: 2rem; */
  }

  /* section 2 feature section end */

  /* section 3 / product  */

  /* .product__item:nth-child(2) {
    margin-top: 3rem;
  }
  .product__item:nth-child(3) {
    margin-top: 6rem;
  } */

  .product__item:nth-child(2) {
    margin-top: 3rem;
  }
  .product__item:nth-child(3) {
    margin-top: 6rem;
  }

  /* section 3 / product end */
}
