* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #f6f0eb;
  font-family: "Poppins", sans-serif;
  /* overflow-x: hidden; */
}
.main-content {
  overflow-x: hidden;
  height: 100vh;
  scroll-behavior: smooth;
}
a {
  text-decoration-line: none;
  color: inherit;
}

header {
  background-color: #fff;
  padding: 24px 24px;
}

nav {
  display: flex;
  /* gap: 60px; */
}

.header-content {
  max-width: 1290px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

nav a {
  font-weight: 700;
  font-size: 20px;
  color: #492118;
}

/* means don't give 60px to 1st one */
nav a + a {
  margin-left: 60px;
}

logo {
  width: 40px;
}

img {
  width: 100%;
}

.img-container {
  max-width: 1290px;
  margin: 0 auto;
}

.hero-section {
  margin-top: 100px;
}

main {
  padding: 0 24px;
}

.hero-section p {
  color: #492118;
  text-align: center;
  font-size: 24px;
}

.section {
  margin-top: 120px;
}

.section .img-container {
  max-width: 960px;
}

.section p {
  font-size: 48px;
  font-weight: 700;
  color: #492118;
  text-align: center;
}

.go-to-top {
  text-align: right;
  max-width: 960px;
  margin: 0 auto;
  font-size: 32px;
  margin-top: 80px;
}

.go-to-top a {
  text-decoration-line: underline;
}

.footer-text {
  text-align: center;
  color: #858585;
  font-size: 24px;
  margin-top: 64px;
}

.close-icon {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  display: none;
}

.hamburger-menu-container {
  overflow: hidden;
  position: relative;
  width: 40px;
  height: 40px;
  display: none;
}

.hamburger-menu {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  top: -64px;
  right: -58px;
  background-color: #fff;
  cursor: pointer;
  position: absolute;
}

.hamburger-icon {
  font-size: 16px;
  position: absolute;
  left: 20px;
  bottom: 10px;
}

/* at max  of 1200px */
@media (max-width: 1200px) {
  nav a {
    font-size: 16px;
  }

  nav a + a {
    margin-left: 48px;
  }

  header {
    padding: 16px 24px;
  }
}

/* at max of 960px  */
@media (max-width: 960px) {
  nav a {
    font-size: 12px;
  }

  nav a + a {
    margin-left: 32px;
  }

  .hero-section {
    margin-top: 32px;
  }

  .section {
    margin-top: 42px;
  }

  .hero-section p {
    font-size: 10px;
  }

  .section p {
    font-size: 14px;
  }
}

/* for mobile devices at the max of 768px */
@media (max-width: 768px) {
  header {
    background-color: #f6f0ebb7;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    padding: 8px;
  }

  nav {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    flex-direction: column;
    right: -200px;
    top: 16px;
    transition: right 0.25s ease-in-out;
    padding: 24px;
    /* display: none; */
  }

  nav a + a {
    margin: 0 0;
    margin-top: 16px;
  }

  .close-icon,
  .hamburger-menu-container {
    display: block;
  }
  .menu-open nav {
    /* display: flex; */
    right: 24px;
  }
  .menu-open .hamburger-menu-container {
    display: none;
  }
  .header-content {
    min-height: 40px;
  }
  .go-to-top {
    font-size: 10px;
    margin-top: 40px;
  }
  .footer-text {
    font-size: 10px;
    margin-top: 32px;
  }
}
