@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display&display=swap");

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

img,
picture {
  max-width: 100%;
  display: block;
  line-height: 0;
}

:root {
  /* Primary Colors */
  --color-cyan: hsl(192, 90%, 77%);
  --color-dark-cyan: hsl(192, 37%, 48%);
  --color-purple: hsl(268, 100%, 86%);
  --color-dark-purple: hsl(268, 34%, 53%);
  --color-dark-blue: hsl(240, 21%, 20%);

  /* Neutral */
  --color-light-gray: hsl(240, 18%, 85%);
  --color-gray: hsl(240, 10%, 57%);
  --color-white: hsl(0, 0%, 98%);

  /* Font sizes */
  --fs-heading: 4rem;
  --fs-subheading: 2.5rem;
  --fs-body: 1.125rem;
  --fs-body-sm: 1rem;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 5rem;
  --spacing-xl: 10rem;
}

body {
  background-color: var(--color-white);
  display: grid;
  place-items: center;
  font-family: "Red Hat Display", sans-serif;
  font-size: var(--fs-body);
}

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-x: hidden;
  margin-top: var(--spacing-lg);
  max-width: 100vw;
}

.logo {
  flex: 1;
  align-self: center;
  max-height: 1.75rem;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-md) var(--spacing-xl);
  gap: 2rem;
}

.hero-content h1 {
  font-size: var(--fs-heading);
  line-height: 110%;
  letter-spacing: 0px;
  padding: 0 0.5rem;
}

.hero-content p {
  color: var(--color-gray);
  list-style: 150px;
  font-size: var(--fs-body);
}

.button-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.hero-download-button {
  flex: 1;
  background: var(--color-dark-cyan);
  padding: 1rem 2.5rem;
  border-radius: 1.875rem;
  height: 56px;
  align-items: center;
  text-align: center;
  justify-content: center;
  transition: background-color 0.4s ease;
}

.hero-download-button p {
  font-style: var(--fs-body-sm);
  color: var(--color-white);
  line-height: 150%;
  font-weight: bold;
}

.hero-download-button p span {
  color: var(--color-cyan);
  line-height: 150%;
  font-weight: bold;
}

.hero-download-button:hover {
  background-color: hsl(191, 56%, 69%);
}

.hero-what-button p {
  flex: 1;
  color: var(--color-white);
}

.hero-what-button {
  background: var(--color-dark-purple);
  padding: 1rem 2.5rem;
  border-radius: 1.875rem;
  height: 56px;
  transition: background-color 0.4s ease;
}

.hero-what-button:hover {
  background-color: hsl(268, 100%, 79%);

}

.image-hero-left {
  margin-left: -1rem;
}

.image-hero-right {
  margin-right: -1rem;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  padding: 0 auto;
  margin-bottom: var(--spacing-lg);
}

.checkpoint {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.line {
  height: 80px;
  width: 1px;
  border-width: 1px;
  border-color: var(--color-light-gray);
  border-style: solid;
}

.circle {
  height: 56px;
  width: 56px;
  border-radius: 30px;
  border-width: 1px;
  border-color: var(--color-light-gray);
  border-style: solid;
  background-color: var(--color-white);
}

.circle p {
  padding: 1rem 1rem;
}

.photo-gallery-wrapper {
  display: flex;
  justify-content: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.875rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.gallery-grid,
footer {
  max-width: 69.375rem;
  margin: 0 auto;
}

.gallery-container {
  overflow: hidden;
  border-radius: 0.5rem;
}

.gallery-grid img {
  overflow: hidden;
  border-radius: 0.5rem;
  transition: ease-out 0.5s;
}

.gallery-grid {
  transition: linear 0.5s;
}

.text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  max-width: 544px;
}

.text-content h2 {
  flex: 1;
  font-size: var(--fs-body-sm);
  color: var(--color-dark-cyan);
  margin-bottom: 1rem;
  letter-spacing: 4px;
}

.text-content h1 {
  flex: 1;
  font-size: var(--fs-subheading);
  font-weight: bolder;
  max-width: 445px;
  margin-bottom: 2rem;
}

.text-content p {
  flex: 1;
  color: var(--color-gray);
}

.footer {
  position: relative;
  max-height: 312px;
}

.footer .checkpoint {
  position: relative;
  z-index: 2;
}

.footer .circle {
  position: absolute;
  z-index: 2;
  bottom: -28px;
}

.footer-content {
  position: absolute;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--spacing-lg) + 2rem) var(--spacing-xl);
  background-image: url('assets/desktop/image-footer.jpg');
  background-size: cover;
  background-position: center;
  height: 312px;
  width: 100%;
  z-index: 1;
}

.footer-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-cyan);
  opacity: 50%;
  z-index: 0;
}

.footer-content h1 {
  font-size: var(--fs-subheading);
  color: var(--color-white);
  max-width: 22rem;

  line-height: 110%;
  font-weight: 600;
  z-index: 1
}

.footer-content p {
  z-index: 2;
  color: var(--color-white);
  max-width: 22rem;
}

.footer-content .hero-download-button {
  max-width: 13rem;
  background-color: var(--color-dark-purple);
  z-index: 2;
}

.footer-content .hero-download-button span {
  color: black;
  color: hsl(268, 100%, 79%);
}

.footer-content .hero-download-button:hover {
  background-color: hsl(268, 100%, 79%);
}

.footer-content .hero-download-button:hover span {
  color: var(--color-dark-purple);
}