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

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

* {
  margin: 0;
}

p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

input,
button,
textarea,
select {
  font: inherit;
}

:root {
  --color-primary-dark: #121212;
  --color-primary-regular: #474747;
  --color-primary-light: #d8c6ff;
  --color-accent: #ffcc00;
  --color-body: #f0f8ff;

  --color-content-heading: #12191f;
  --color-content-subheading: #383b3d;

  --ff-primary: "Inter", sans-serif;

  --fw-bold: 900;
  --fw-regular: 500;
  --fw-light: 300;

  --fs-heading: 2.5rem;
  --fs-subheading: 2rem;
  --fs-body: 1.2rem;

  --border-radius: 20px;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 var(--color-accent);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    transform: scale(0.95);
  }
}

.heading {
  font-weight: var(--fw-bold);
  color: var(--color-content-heading);
  font-size: var(--fs-heading);
}

.subheading {
  color: var(--color-content-subheading);
}

.button {
  color: var(--color-primary-dark);
  border: none;
  background-color: var(--color-accent);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--color-primary-dark) 3px 3px;
}

.button:hover {
  font-weight: var(--fw-bold);
  transition: all 0.3s ease-in-out;
}

.button--pulse {
  animation: pulse 2s infinite;
}

body {
  font-family: var(--ff-primary);
  background-color: var(--color-body);
  font-weight: var(--fw-regular);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 10px;
}

header {
  background-color: var(--color-primary-dark);
  padding-bottom: 5rem;
}

.nav {
  color: white;
  height: 60px;
}

.nav-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__text {
  color: #a68b61;
  background-image: linear-gradient(90deg, #a68b61, #fad961, #fff3c4, #ffffff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
}

.nav-container .brand .brand__text {
  display: none;
}

.brand__logo {
  width: 50px;
}

.nav-items {
  list-style: none;
  gap: 30px;
  align-items: center;
  display: none;
}

.nav-items a {
  text-decoration: none;
  color: white;
}

.nav-items a:hover {
  color: var(--color-accent);
}

.nav-items .button {
  color: var(--color-primary-dark);
}

.nav-items .button:hover {
  color: var(--color-primary-dark);
}

.hero {
  color: white;
  text-align: center;
  display: grid;
  justify-items: center;
}

.hero__content {
  margin-block: 3rem;
}

.hero__heading {
  font-weight: var(--fw-bold);
  font-size: 4rem;
  color: #a68b61;
  background-image: linear-gradient(90deg, #a68b61, #fad961, #fff3c4, #ffffff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subheading {
  font-weight: var(--fw-light);
  font-size: var(--fs-subheading);
}

.experience {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  text-align: center;
  padding-block: 5rem;
  gap: 50px;
  border-bottom: 1px solid var(--color-primary-light);
}

.experience__col {
  width: 200px;
}

.section__heading {
  margin-block: 3rem;
  font-size: var(--fs-heading);
  font-weight: var(--fw-bold);
  text-align: center;
}

main > .section__heading {
  margin-block: 6rem;
}

.service__heading {
  font-size: var(--fs-heading);
  font-weight: var(--fw-bold);
  margin-block: 1.5rem;
}

.service__content {
  font-size: var(--fs-body);
  text-align: start;
}

.service__content .button {
  margin-top: 10px;
}

.service-section {
  margin-block: 5rem;
  gap: 2rem;
  display: grid;
  justify-items: center;
}

.testimonials {
  margin: 10rem auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

.testimonial {
  border-radius: var(--border-radius);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  display: grid;
  justify-items: center;
  background-color: white;
  font-size: var(--fs-body);
}

.testimonial .testimonial__content blockquote {
  font-style: italic;
  text-align: start;
  color: var(--color-content-subheading);
  margin: 1rem 0;
}

.testimonial .testimonial__content p {
  text-align: start;
}

.analytics {
  background-color: var(--color-primary-dark);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.analytics__content-container {
  display: grid;
  margin-block: 3rem;
  justify-items: center;
}

.analytics__content-container > img {
  filter: drop-shadow(var(--color-accent) 3px 3px);
}

.analytics__feature {
  display: flex;
  gap: 10px;
}

.analytics__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin-block: 20px;
}

.contact {
  margin-block: 10rem;
}

.contact__content {
  display: grid;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-form {
  margin-top: 2rem;
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.contact-form input {
  height: 3rem;
}

.contact-form textarea {
  height: 7rem;
}

.contact-form textarea,
.contact-form input {
  border: none;
  border-radius: var(--border-radius);
  padding: 10px 15px;
  background-color: var(--color-primary-regular);
  color: white;
  resize: none;
  box-shadow: var(--color-accent) 3px 3px;
}

textarea::placeholder,
input::placeholder {
  color: white;
}

.contact-form__content {
  padding: 2rem;
  text-align: center;
}

.contact-form__content .section__heading {
  margin: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.contact img {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
}

footer {
  background-color: var(--color-primary-dark);
  color: white;
  padding-block: 2rem;
}

.footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3rem;
}

.footer__heading {
  text-align: center;
}

.footer__brand {
  order: 1;
}

.footer__socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.footer__links {
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__links ul {
  margin-block: 10px;
  list-style: none;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0;
  gap: 10px;
}

.footer__links a {
  text-decoration: none;
  color: white;
}

.footer__links a:hover {
  color: var(--color-accent);
}

@media screen and (min-width: 1200px) {
  .analytics__content-container {
    max-width: 75%;
  }
}

@media screen and (min-width: 768px) {
  .grid--2x1 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-container .brand .brand__text {
    display: block;
  }

  .hero {
    text-align: start;
    margin-top: 3rem;
  }

  .service-section:nth-of-type(2n) .service__content {
    order: 1;
  }

  .analytics__content-container {
    justify-items: center;
  }

  .contact img {
    display: block;
  }

  .contact__content {
    justify-items: center;
    align-items: center;
  }

  .footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
  }

  .footer__brand {
    order: 0;
    text-align: start;
  }

  .footer__heading {
    text-align: start;
  }

  .footer__links {
    flex-direction: row;
    gap: 3rem;
  }

  .footer__links ul {
    text-align: start;
  }

  .footer__socials {
    justify-content: start;
  }
}

@media screen and (min-width: 640px) {
  .nav-items {
    display: flex;
  }

  .nav-menu-btn {
    display: none;
  }

  .testimonial {
    grid-template-columns: 0.75fr 1.25fr;
  }
}

@media screen and (max-width: 640px) {
  .nav--expanded {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    flex-direction: column;
    background-color: var(--color-primary-dark);
    width: 100%;
    padding: 0;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-primary-light);
  }
}
