:root {
  --main-color: #141a24;
  --secondary-color: #16cdad;
  --tertiary-color: #0d6d5c;
  --text-color: #fff;
}

/* GLOBAL */

html {
  scroll-behavior: smooth;
  background-color: var(--main-color);
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-color);
  font-family: "Roboto", sans-serif;
  margin: 0;
  overflow-x: hidden;
}

p,
a,
li {
  font-size: 0.9rem;
  font-weight: 300;
}

h1 {
  font-weight: 700;
  font-size: 2rem;
}

h2 {
  font-weight: 600;
  font-size: 1.6rem;
}

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

@media (min-width: 768px) {
  p,
  a,
  li {
    font-size: 1rem;
  }
}

.text-white {
  color: var(--text-color);
}

.text-dark {
  color: var(--main-color);
}

/* HEADER */

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  justify-content: space-between;
}

.header-container nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2em;
  padding: 0;
}

.header-container nav ul li a {
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-color);
  display: inline-block;
  transition: transform 0.3s ease, font-weight 0.3s ease;
}

.header-container nav ul li a:active {
  font-weight: 700;
  transform: scale(1.2);
}

@media (min-width: 768px) {
  .header-container {
    flex-direction: row;
    gap: 3rem;
  }

  .header-container nav {
    padding-top: 2em;
  }

  .header-container nav ul {
    gap: 5rem;
  }

  .header-container nav ul li a:hover {
    font-weight: 700;
    transform: scale(1.2);
  }
}

/* WELCOME SECTION */

.welcome-section-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
  z-index: 0;
  gap: 1.5rem;
}

.background-vector {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
}

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

@media (min-width: 768px) {
  .welcome-section-container {
    padding: 8rem 2rem;
  }

  .buttons-container {
    flex-direction: row;
  }
}

/* BLOG SECTION */

.blog-section-container {
  background-color: var(--secondary-color);
  padding: 1rem;
}

.blog-box {
  border: var(--text-color) solid 1px;
  background-color: var(--tertiary-color);
  padding: 2rem 3rem;
}

@media (min-width: 768px) {
  .blog-section-container {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
  }
}

/* WHAT WE DO SECTION */

.wedo-section-container {
  padding: 1rem;
  text-align: justify;
  margin: 0 1rem;
  line-height: 1.5rem;
}

.services-container h2 {
  padding: 2rem 0;
}

.services-list {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  font-size: 0.8rem;
  justify-items: center;
}

.services-list img {
  width: 50%;
}

.services-list p {
  margin-right: 1em;
}

@media (min-width: 768px) {
  .wedo-section-container {
    margin: 0 5rem;
    line-height: 2rem;
  }

  .services-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-list img {
    width: 60%;
  }
}

/* CONTACT SECTION */

.contact-section {
  background-color: var(--secondary-color);
  padding: 2rem;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.contact-box {
  border: var(--text-color) solid 1px;
  background-color: var(--tertiary-color);
  padding: 2rem 3rem;
}

.contact-item {
  display: flex;
}

.contact-item img {
  margin: 0 20px 0 0;
}

.donate-box {
  border: var(--text-color) solid 1px;
  background-color: var(--tertiary-color);
  color: var(--text-color);
  padding: 2rem 3rem;
}

@media (min-width: 768px) {
  .contact-section {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
  }

  .contact-container {
    display: flex;
    flex-direction: row;
    gap: 8rem;
  }

  .contact-box,
  .donate-box {
    width: 20rem;
  }

  .donate-box button {
    margin-top: 2.8rem;
  }
}

/* TEAM */

.team-section-container {
  padding: 1rem;
  text-align: justify;
  margin: 0 1rem;
  line-height: 1.2rem;
}

@media (min-width: 768px) {
  .team-section-container {
    line-height: 2rem;
    margin: 0 5rem;
  }
}

/* FOOTER */

.footer {
  padding: 1rem;
  text-align: center;
}

.footer img {
  width: 30%;
  display: block;
  margin: 0 auto 1rem;
}

.footer p {
  margin: 0.5rem 0;
}

@media (min-width: 768px) {
  .footer img {
    width: 10%;
  }
}

/* BUTTONS */

.button {
  background-color: transparent;
  border: solid var(--text-color) 1px;
  padding: 0.6rem 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.05s ease;
}

@media (min-width: 768px) {
  .button:hover {
    color: var(--main-color);
    background-color: var(--text-color);
    transition-duration: 0.4s;
  }

  .button:focus {
    outline: solid var(--text-color) 2px;
  }

  .button:active {
    background-color: inherit;
    color: inherit;
    transform: inherit;
  }
}

.button:active {
  transform: scale(0.9);
  background-color: var(--text-color);
  color: var(--main-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Customers */

.customer-section-container {
  margin: 0 1rem;
  padding: 1rem;
  text-align: justify;
}

@media (min-width: 768px) {
  .customer-section-container {
    margin: 0 5rem;
  }
}

.customer-section-container h1 {
  font-size: 1.1rem;
}

.customer-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
    justify-items: center;
}

.customer-logos img {
    display: block;
    max-width: 200px;
    width: 100%;
    height: 80px;
    object-fit: contain;
    border: var(--text-color) solid 1px;
    padding: 1rem;
    border-radius: 20px;
    background-color: var(--text-color);
}

/* PROJECTS */
.projects-section-container {
    padding: 1rem;
    margin: 0 1rem;
    line-height: 1.6;
}

.projects-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.projects-list li {
    margin-bottom: 2rem;
}

.projects-list a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
}

.projects-list a:hover {
    text-decoration: underline;
}

.service-card {
  border: var(--text-color) solid 1px;
  padding: 1rem;
  border-radius: 20px;
}

.service-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.service-card-header {
  display: flex;
  flex-direction: row;
  align-items: between;
  gap: 1rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
    .projects-section-container {
        margin: 0 5rem;
    }
}
