/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 4.5rem;

  /*========== Colors ==========*/
  /* Color mode HSL(hue, saturation, lightness) */
  --first-color: hsl(158, 100%, 34%); /* Stadium Green */
  --first-color-alt: hsl(158, 100%, 28%);
  --title-color: hsl(220, 48%, 8%);
  --text-color: hsl(220, 12%, 45%);
  --text-color-light: hsl(220, 8%, 65%);
  --body-color: hsl(220, 100%, 99%);
  --container-color: #fff;
  --bg-gradient: radial-gradient(circle at 20% 30%, hsl(158, 60%, 98%) 0%, hsl(220, 60%, 99%) 100%);

  /*========== Font and typography ==========*/
  --body-font: 'Inter', sans-serif;
  --title-font: 'Outfit', sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  overflow-x: hidden;
}

h1, h2, h3 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  text-align: center;
  margin-bottom: 2.5rem;
}

/*=============== BACKGROUND MESH ===============*/
.background-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  z-index: -1;
}

.background-mesh::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, hsla(158, 100%, 34%, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: background-color .4s, box-shadow .4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-family: var(--title-font);
  font-weight: var(--font-bold);
  color: var(--title-color);
  font-size: 1.25rem;
}

.logo__icon {
  width: 24px;
  height: 24px;
  background-color: var(--first-color);
  border-radius: 4px;
  position: relative;
}

.logo__icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #fff;
  border-radius: 2px;
  top: 6px;
  left: 6px;
}

.nav__list {
  display: flex;
  column-gap: 3rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: color .4s;
}

.nav__link:hover {
  color: var(--first-color);
}

/* Change background header */
.scroll-header {
  background-color: hsla(220, 100%, 99%, .8);
  backdrop-filter: blur(24px);
  box-shadow: 0 4px 24px hsla(220, 48%, 8%, .05);
}

/*=============== HOME ===============*/
.home__container {
  padding-block: 4rem 2rem;
  row-gap: 2.5rem;
}

.home__content {
  text-align: center;
}

.home__subtitle {
  display: block;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.home__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-extra-bold);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.home__description {
  margin-bottom: 2.5rem;
  padding-inline: 1.5rem;
  line-height: 1.8;
}

.button {
  display: inline-block;
  background-color: var(--title-color);
  color: #fff;
  padding: 1.25rem 2.5rem;
  border-radius: 4rem;
  font-weight: var(--font-semi-bold);
  transition: transform .4s, box-shadow .4s;
}

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 3.5rem;
}

.about__description {
  text-align: center;
  margin-bottom: 2rem;
}

.about__cards {
  grid-template-columns: 1fr;
  row-gap: 1.5rem;
}

.about__card {
  background-color: var(--container-color);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  text-align: center;
  transition: transform .4s, box-shadow .4s;
  border: 1px solid hsla(220, 12%, 45%, .05);
}

.about__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(220, 48%, 8%, .05);
}

.about__icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.about__card-title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

.about__card-description {
  font-size: var(--small-font-size);
  line-height: 1.6;
}

/*=============== FOOTER ===============*/
.footer {
  padding-block: 4rem 2rem;
  border-top: 1px solid hsla(220, 12%, 45%, .1);
}

.footer__content {
  text-align: center;
  row-gap: 1.5rem;
  display: flex;
  flex-direction: column;
}

.footer__copy {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.footer__icp a {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  transition: color .4s;
}

.footer__icp a:hover {
  color: var(--first-color);
}

/*=============== RESPONSIVE BREAKPOINTS ===============*/
@media screen and (min-width: 768px) {
  .about__cards {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}

@media screen and (min-width: 1024px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 8rem 2rem;
  }

  .home__container {
    padding-top: 5rem;
  }

  .home__content {
    max-width: 800px;
    margin: 0 auto;
  }

  .home__description {
    padding-inline: 10rem;
  }
}
