/***
  ** #Custom Properties
  */

:root {
  --color-primary: #898989;
  --color-primary-variant: rgba(0, 0, 240, 0.2);
  --color-white: #fff;
  --color-light: #f4f4f4;
  --color-black: #4d4c4c;
  --color-dark: #575757;

  --bottom-section-padding: 12rem;
  --bottom-section-padding-mobile: 8rem;

  --transition: a 400ms ease;

  --container-width: 84%;
  --container-width-tablet: 90%;
  --container-width-phone: 94%;
}

/***
  ** #Reset
  */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--color-dark);
  line-height: 1.7;
  background: var(--color-white);
}

/***
  ** #Reused Styles
  */

.container {
  width: var(--container-width);
  margin: 0 auto;
}

h1 {
  font-size: 5.6rem;
  line-height: 1;
  color: var(--color-black);
}

h2 {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
}

.lead {
  width: 63%;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 1.5rem auto 3rem;
}

a {
  color: var(--color-white);
  font-weight: 300;
}

img {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 1rem 2.3rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
  border-radius: 0.4rem;
  transition: all 300ms ease;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  transition: all 300ms ease;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-black);
}

.avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  overflow: hidden;
}

section {
  max-width: 100vw;
  padding-bottom: var(--bottom-section-padding);
}

/***
  ** #Navbar
  */

nav {
  width: 100vw;
  height: 6rem;
  display: grid;
  place-items: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.window-scroll {
  background: var(--color-primary);
  border-bottom: 1px solid var(--color-white);
  box-shadow: 0 1rem 1rem var(--color-dark);
}

.nav_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav button {
  display: none;
}

.nav_items {
  display: flex;
  gap: 2rem;
}

.nav_logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav_signin-signout {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav_logo h3 {
  font-size: 1.5rem;
}

/***
  ** #Header
  */

header {
  background: url('../images/header2bg.jpg') no-repeat top center/100vw;
  max-width: 100vw;
  text-align: center;
  padding-bottom: var(--bottom-section-padding);
}

.header_title {
  padding-top: 12rem;
  color: var(--color-white);
}

header p {
  color: var(--color-light);
  margin-bottom: 0;
}

.header_image {
  width: 92%;
  margin: 0 auto;
}

.cta {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.cta a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-weight: 400;
  background: #000;
  border-radius: 0.7rem;
  padding: 0.8rem 1.6rem;
}

.cta a:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.cta .logo {
  width: 2rem;
}

.cta a h4 {
  font-weight: 500;
  font-size: 1.4rem;
}

.header_socials {
  position: absolute;
  left: 3rem;
  top: 38%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.2rem;
}

.header_decorator-1 {
  position: absolute;
}

.header_decorator-2 {
  position: absolute;
  right: 0;
  margin-top: -24rem;
}

.about_title {
  text-align: center;
  margin-bottom: 5rem;
}

.about_article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}

.about_article-title {
  color: var(--color-black);
  margin-bottom: 1.5rem;
}

.about_article .btn {
  margin-top: 2.4rem;
}
/***
  ** #Clients
  */

#clients {
  text-align: center;
}

.clients_container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.clients_container div {
  background: var(--color-light);
  display: grid;
  place-items: center;
  height: 8rem;
  padding: 3rem;
  transition: all 300ms ease;
}

.clients_container div:hover {
  background: var(--color-white);
}

/***
  ** #Testimonials
  */

#testimonial h1{
  text-align: center;
}

#testimonial p{
  text-align: left;
}

.container_testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: var(--color-light);
  padding: 3rem;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: all 300ms ease;
}

.testimonial:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 2rem 2rem var(--color-primary);
  z-index: 1;
}

.testimonial_client {
  display: flex;
  gap: 1rem;
}

/***
  ** #FAQs
  */

#faqs h1 {
  text-align: center;
  margin-bottom: 4rem;
}

.faqs_container {
  width: 44%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faqs {
  background: var(--color-white);
  padding: 2rem;
  display: flex;
  gap: 1rem;
  border: 1px solid #ddd;
  cursor: pointer;
}

.faqs:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.faq_icon i {
  font-size: 1.4rem;
  font-weight: 200;
}

.faq_question {
  font-size: 1.2rem;
  font-weight: 500;
}

.faq_answer {
  margin-top: 1rem;
  display: none;
}

.faqs.open{
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 2rem 2rem var(--color-primary-variant);
  z-index: 1;
}

.faqs.open .faq_answer {
  display: block;
}

/***
  **  #Download Section
  */

.downloadApp_container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.downloadApp_content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.downloadApp_container .cta {
  justify-content: start;
  margin-top: 2rem;
}

/***
  **  #Subscribe Section
  */

.subscribe_container {
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  padding: 4rem;
  height: 20rem;    
  width: 40rem;
  border-radius: 2rem;
}

.subscribe_text p {
  margin-top: 1.4rem;
  width: 80%;
}
/***
  ** #Footer
  */

footer {
  background: var(--color-primary);
  padding-top: 5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer_container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: space-between;
  gap: 5rem;
}

.footer_container > div h4 {
  margin-bottom: 1.6rem;
  color: var(--color-white);
}

.footer_logo h3 {
  font-size: 1.7rem;
}

.footer_1 p {
  margin: 1rem 0 2rem;
  width: 20rem;
}

.footer_subscribe {
  background: transparent;
  border: 1px solid var(--color-light);
  display: flex;
  align-items: center; 
  justify-content: space-between;
  height: 3rem;
  width: 80%;
}

.footer_subscribe input {
  background: transparent;
  color: var(--color-white);
  margin-left: 1rem;
}

.footer_subscribe input::placeholder {
  color: var(--color-light);
}

.footer_subscribe button {
  background: var(--color-white);
  color: var(--color-black);
  transition: all 300ms ease;
  width: 3rem;
  height: 100%;
  font-size: 1.2rem;
}

.footer_subscribe button:hover {
  background: var(--color-light);
  color: var(--color-primary);
  cursor: pointer;
}

footer ul li {
  margin: 1rem;
}

footer ul li a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer_4 p {
  margin-bottom: 1.6rem;
}

.footer_socials {
  display: flex;
  gap: 1rem;
  font-size: 1.4rem;
}

.copyright {
  text-align: center;
  margin-top: 4rem;
  padding: 1.2rem;
  color: var(--color-white);
  border-top: 1px solid var(--color-light);
}

/***
  ** #Media Queries
  */

/* reponsive for screen 1024px */

@media screen and (max-width: 1024px) {
  .container {
    width: var(--container-width-tablet);
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.9rem;
  }

  .lead {
    width: 72%;
    margin-bottom: 3rem;
  }

  section {
    padding-bottom: var(--bottom-section-padding-mobile);
  }

  /* Nav Bar */
  nav {
    background: var(--color-primary);
  }

  .nav_container {
    position: relative;
    width: 100vw;
  }

  .nav_logo {
    margin-left: 2rem;
    position: relative;
  }

  .nav_items {
    position: fixed;
    top: 6rem;
    right: 0;
    background: var(--color-white);
    height: max-content;
    width: 18rem;
    box-shadow: -2rem 2rem 3rem rgba(0, 0, 0, 0.2);
    flex-direction: column;
    gap: 0;
    z-index: 3;
    display: none;
  }

  .nav_items li {
    width: 100%;
    height: 6rem;
  }

  .nav_items li a {
    color: var(--color-black);
    width: 100%;
    height: 100%;
    display: block;
    padding-left: 3rem;
    display: flex;
    align-items: center;
    transition: all 400ms ease;
  }

  .nav_items li a:hover{
    background: var(--color-primary);
    color: var(--color-white);
  }

  .nav_signin-signout {
    display: none;
  }

  .nav_logo {
    position: relative;
    left: 0;
    transform: translate(0);
  }

  nav button {
    display: inline-block;
    margin-right: 1.4rem;
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
  }

  nav button#close-btn {
    display: none;
  }
 
  nav button i {
    font-size: 2.4rem;
  }

  /* Header */
  header {
    padding-bottom: var(--bottom-section-padding-mobile);
    background: var(--color-primary);
  }

  .header_title {
    margin-bottom: 1.5rem;
  }

  .header_image {
    display: none;
  }

  .cta {
    margin-top: 3rem;
  }

  .header_socials {
    top: 24%;
    gap: 1rem;
    font-size: 1rem;
  }

  .header_decorator-2 {
    display: none;
  }

  /* About Section */
  #about {
    margin-top: 7rem;
  }

  .about_article {
    margin: 0 auto;
  }

  /* Clients Section */

  .clients_container {
    gap: 1rem;
  }

  /* Testimonial Section */

  .container_testimonials {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Download App */
  #downloadApp {
    text-align: center;
  }

  #downloadApp .cta {
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
  }

  /* Subscribe */
  .subscribe_container {
    flex-direction: column;
    height: auto;
    gap: 5rem;
    padding: 3rem;
    font-size: 1.2rem;
  }

  .subscribe_container p {
    width: 94%;
  }

  /* Footer */
  .footer_container {
    grid-template-columns: 1fr 1fr;
  }
}
 
/* reponsive for screen 600px */
@media screen and (max-width: 600px){
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 3.rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }
  
  .lead {
    width: var(--container-width-phone);
  }

  /* NavBar */
  .nav_logo {
    margin-left: 1rem;
  }

  .nav_items li a {
    justify-content: center;
    padding: 0;
  }

  nav button {
    margin-right: 0.7rem;
  }

  /* Header */
  .header_title {
    padding-top: 11rem;
  }

  .cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .header_socials {
    display: none;
  }

  /* About */
  .about_article {
    grid-template-columns: 1fr;
    margin-top: 5rem;
    text-align: center;
    gap: 0;
  }

  .about_article:nth-child(2) .about_image {
    grid-row: 1;
  }

  /* Clients */
  .clients_container {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .testimonial {
    padding: 1.4rem;
  }

  /* Footer */
  .footer_container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer_1 {
    width: var(--container-width-phone);
  }

  .footer_1 p {
    width: var(--container-width-phone);
    margin: 0 auto 3rem;
  }

  .footer_subscribe {
    display: none;
  }

  .footer_socials {
    justify-content: center;
  }
}
