:root {
  --intro-color: hsl(217, 28%, 15%);
  --bg-color: hsl(218, 28%, 13%);
  --footer-bg-color: hsl(216, 53%, 9%);
  --testimonials-color: hsl(219, 30%, 18%);
  --font-body: "Open Sans", sans-serif;
  --font-title: "Raleway", sans-serif;
  --white-color: hsl(0, 0%, 100%);
  --blue: hsl(198, 60%, 50%);
  --cyan: hsl(176, 52%, 53%);
  --call-to-action: hsl(217, 28%, 15%);
}

body {
  color: var(--white-color);
  background-color: var(--intro-color);
  font-size: 14px;
  font-family: var(--font-body);
  line-height: 1.5;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.primary-btn {
  width: 200px;
  height: 40px;
  background-color: var(--blue);
  border-radius: 30px;
  display: inline-block;
  text-align: center;
  line-height: 40px;
}
.primary-btn:hover {
  background-color: var(--cyan);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  height: 100px;
}
nav ul {
  display: flex;
  gap: 0 40px;
}
nav ul li a {
  color: var(--white-color);
  font-family: var(--font-title);
}
nav ul li a:hover {
  text-decoration: underline;
}

/* Hero Section */

#hero {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin: 40px auto 0;
  max-width: 75ch;
  padding: 0 20px;
}

#hero .hero-image img {
  margin: 0 auto;
}

.hero-title {
  font-size: 40px;
  text-align: center;
}
.hero-text {
  max-width: 50ch;
  text-align: center;
  margin: 20px 0;
}

/* Features Section */

.main {
  background-color: var(--bg-color);
  position: relative;
}

.main::before {
  content: "";
  position: absolute;
  background-image: url("../images/bg-curvy-desktop.svg");
  background-repeat: no-repeat;
  background-size: cover;
  bottom: 100%;
  left: 0;
  height: 15vw;
  width: 100%;
  z-index: -1;
}

#features {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 80px;
  gap: 24px;
}

#features .features-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(40% - 12px);
  min-width: 310px;
}

#features .features-card h3 {
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 18px;
}

#features .features-card p {
  opacity: 0.5;
  max-width: 44ch;
}

/* Stay Productive */

#stay-productive {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 80px;
}

#stay-productive .stay-productive-right h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  max-width: 18ch;
}

#stay-productive .stay-productive-right p:first-child {
  margin-top: 50px;
}

#stay-productive .stay-productive-right p {
  opacity: 0.5;
  padding: 10px 0;
}

#stay-productive .stay-productive-right a {
  color: var(--cyan);
  border-bottom: 1px solid currentColor;
  padding-bottom: 8px;
}

/* Testimonials */

#testimonials::before {
  content: "";
  position: absolute;
  background-image: url("../images/bg-quotes.png");
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  z-index: -1;
  top: -35px;
  left: -10px;
}
#testimonials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 140px 0 70px 0;
  gap: 30px;
}
#testimonials .testimonials-card {
  background-color: var(--testimonials-color);
  border-radius: 5px;
  padding: 44px 20px 30px 20px;
}
#testimonials .testimonials-card .testimonials-user {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

#testimonials .testimonials-card .testimonials-user .testimonials-image img {
  height: 30px;
  width: 100%;
  border-radius: 50%;
}

#testimonials .testimonials-card .testimonials-user .user-title {
  opacity: 0.5;
}

/* Call to Action */

#call-to-action {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background-color: var(--testimonials-color);
  padding: 48px;
  border-radius: 8px;
  box-shadow: 0 5px 10px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  bottom: -70px;
}

#call-to-action h3 {
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 24px;
}

#call-to-action form {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#call-to-action .input-wrapper {
  flex: 1;
  height: 40px;
}

#call-to-action .button-wrapper {
  margin-left: 20px;
}

#call-to-action .button-wrapper .primary-btn {
  outline: none;
  border: none;
  color: var(--white-color);
  cursor: pointer;
}

#call-to-action .input-wrapper input {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  outline: none;
  border: none;
  text-indent: 12px;
  height: 40px;
}
#call-to-action .input-wrapper input::placeholder {
  opacity: 0.65;
}

#email-error {
  margin-top: 5px;
  display: block;
  color: rgb(196, 36, 36);
  text-align: left;
}

/* Footer */

#footer {
  padding: 130px 0;
  background-color: var(--footer-bg-color);
}
#footer .logo {
  margin-bottom: 30px;
}

#footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

#footer .footer-address {
  display: flex;
}
#footer .footer-address img {
  height: 20px;
  width: auto;
  margin-right: 20px;
  position: relative;
  top: 5px;
}
#footer .footer-address p {
  max-width: 50ch;
}

#footer .footer-information .information-card {
  display: flex;
  margin-bottom: 20px;
}

#footer .footer-information .information-card a {
  margin-left: 20px;
}

#footer .footer-link-1 li,
.footer-link-2 li {
  margin-bottom: 20px;
}
#footer .footer-link-1 a:hover,
.footer-link-2 a:hover {
  color: var(--white-color);
  font-weight: 700;
}

.social-media ul {
  display: flex;
  gap: 5px;
}
.social-media ul li a {
  display: inline-block;
}
.social-media ul li a:hover {
  color: var(--cyan);
}

.social-media ul li a i {
  font-size: 18px;
}

/* Media Query */

@media (max-width: 767px) {
  nav ul {
    gap: 15px;
  }

  header .logo img {
    height: 40px;
    width: 100%;
  }

  .hero-title {
    line-height: 1.3;
    font-size: 30px;
  }

  #testimonials {
    flex-direction: column;
  }

  .main::before {
    background-image: url("../images/bg-curvy-mobile.svg");
    height: 149px;
    top: -149px;
  }

  #features .features-card {
    min-width: 100%;
  }

  #call-to-action .input-wrapper {
    width: 100%;
    margin-bottom: 20px;
  }
  #call-to-action .button-wrapper {
    width: 100%;
    margin-left: 0;
  }
  #call-to-action .button-wrapper .primary-btn {
    width: 100%;
  }
  #call-to-action form {
    flex-direction: column;
  }

  #email-error {
    text-align: center;
  }

  #stay-productive {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }
  .social-media {
    display: flex;
    margin-top: 40px;
    justify-content: center;
  }
  #footer {
    padding-bottom: 60px;
  }
}
