/* define the color palette */
:root {
  --offwhite: #f8f8f8;
  --offblack: #353535;
  --shadow: #242424;
  --green: #5cb88d;
  font-size: 10px;
}

html {
  scroll-behavior: smooth;
}

/* reset default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
  font-weight: inherit;
}

/* set a default font */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--offwhite);
  font-weight: 400;
}

/* style the header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--offblack);
  padding: 2rem 4rem;
  z-index: 1;
  box-shadow: 0px 0px 4rem var(--shadow);
}

section {
  position: relative;
}

.anchor {
  position: absolute;
  bottom: 9rem;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo svg {
  margin-right: 1rem;
  height: 5rem;
}

.logo h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--offwhite);
  margin: 0;
}

.logo h1 span {
  color: var(--green);
}

.links a {
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--offwhite);
  padding: 0 1rem;
  cursor: pointer;
  transition: color 250ms;
}

.links a:hover {
  color: var(--green);
}

@media (max-width: 670px) {
  :root {
    font-size: 8px;
  }

  header {
    justify-content: center;
  }

  .links {
    display: none;
  }
}

/* style the hero section */
html,
body {
  height: 100%;
  min-height: 100%;
}

.hero {
  height: 100vh;
  background-color: var(--offblack);
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--offwhite);
  background: linear-gradient(to right,
      #353535,
      #333333 50%,
      #353535 50%,
      #343434 100%);
}

.hero h1 {
  font-size: 4.8rem;
  font-weight: bold;
  margin-bottom: 3.2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .6rem;
}

.hero h1 span {
  color: var(--green);
  letter-spacing: normal;
}

.hero h3 {
  font-size: 1.8rem;
  text-align: center;
  line-height: 1.5;
  margin: 0 auto;
  margin-bottom: 1.6rem;
  max-width: 60rem;
}

/* add accent color */
.hero h1 span {
  color: var(--green);
}

/* style the about section */
.about {
  background-color: var(--offwhite);
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--offblack);
  background: linear-gradient(to right, #f8f8f8, #f2f2f2 50%, hsl(0deg 0% 94%) 50%, #f8f8f8 100%);
}

.about h2 {
  font-size: 3.6rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
}

.about h3 {
  font-size: 2.4rem;
  font-weight: bold;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.about p {
  font-size: 1.8rem;
  line-height: 1.5;
  margin: 0 auto 5rem;
  text-align: left;
}

.about ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 5rem;
}

.about li {
  font-size: 1.8rem;
  line-height: 1.5;
  font-size: 1.8rem;
  text-align: left;
  margin: 1rem;
}

.about li:before {
  content: "\2022";
  color: var(--green);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.about article {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  max-width: 80rem;
}

/* style the services section */
.services {
  background-color: var(--green);
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--offwhite);
  background: linear-gradient(to right, #5cb88d, hsl(152deg 39% 51%) 50%, hsl(152deg 39% 52%) 50%, #5cb88d 100%);
}

.services h2 {
  font-size: 3.6rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
}

.services article {
  margin-bottom: 5rem;
  max-width: 80rem;
}

.services h3 {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.services p {
  font-size: 1.8rem;
  text-align: left;
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 80rem;
}

.services > p {
  margin-bottom: 5rem;
}

/* style the work section */
.work {
  background-color: var(--offwhite);
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--offblack);
}

.work h2 {
  font-size: 3.6rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
}

.work p {
  font-size: 1.8rem;
  text-align: center;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 80rem;
}

/* style the contact section */
.contact {
  background-color: var(--offblack);
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--offwhite);
}

.contact h2 {
  font-size: 3.6rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
}

.contact p {
  font-size: 1.8rem;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 80rem;
}

.contact a {
  background-color: var(--green);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  font-weight: bold;
  padding: 2rem 5rem;
  margin-top: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact a:hover {
  background-color: #64c497;
}

.contact .copyright {
  margin-top: 5rem;
  font-size: 1.4rem;
  color: rgb(109, 109, 109);
}

/* style the footer */
footer {
  background-color: var(--offblack);
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--offwhite);
}

footer p {
  font-size: 1.8rem;
  text-align: center;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 80rem;
}