/* Universal styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Figtree", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  padding-top: 5rem;
  background-color: #0A1628;
}

h1 {
  font-weight: 900;
}

h2 {
  font-weight: 700;
}

h3 {
  font-weight: 500;
}

p {
  font-weight: 300;
}

h1,
h2,
h3,
p {
  color: white;
}

/* Mobile styles */
.navbar {
  z-index: 999;
  position: fixed;
  top: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 5rem;
  background-color: #0A1628;
  box-sizing: border-box;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
  padding: 0 1em;
}

.navRight {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 2em;
  font-family: "Figtree", sans-serif;
  font-weight: 700;
}

.navLinks {
  position: absolute;
  flex-direction: column;
  list-style-type: none;
  top: 5rem;
  right: 0;
  width: 100%;
  gap: 1em;
  background-color: #0A1628;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);

  transition:
    max-height 0.5s ease,
    opacity 0.5s ease,
    transform 0.5s ease;
}

.navLinks a {
  display: block;
  padding: 1em 0;
  margin-right: 0;
  text-decoration: none;
  font-weight: bolder;
  font-size: large;
  color: white;
  cursor: pointer;
}

.navLinks a:hover,
.navLinks a:focus-visible {
  color: #fe7719;
}

.navLinks.active {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
}

.navLinks li {
  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  max-width: 6em;
  max-height: 4rem;
}

.hamburger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

section {
  padding: 2rem 1rem;
}

.heroSection {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 5rem;
  min-height: 20rem;
  background-color: #112240;
}

.heroSection h1 {
  font-size: 1.75rem;
  text-wrap: nowrap;
}

.heroCTAButton {
  margin-top: 1rem;
  padding: 1rem 1rem;
  background-color: #fe7719;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.sectionHeader {
  text-align: center;
  margin-bottom: 0.25rem;
}

.aboutSection {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: #0A1628;
}

.aboutSection h3 {
  font-weight: bold;
  margin-top: 2rem;
}

.productsSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #112240;
}

.productCard {
  max-width: 400px;
  background-color: #0A1628;
  border-radius: 10px;
  margin-top: 1rem;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.06);
}

.productsSection h3 {
  font-weight: bold;
}

.contactSection {
  background-color: #112240;
  text-align: center;
}

.contactSection a {
  color: #fe7719;
}

footer {
  padding: 1rem;
  background-color: #0A1628;
  text-align: center;
}

/* Tablet and up */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .navLinks {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 2em;
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
  }

  .navLinks a {
    height: 100%;
  }

  .heroSection h1 {
    font-size: 2.75rem;
  }

  .heroSection p,
  .aboutSection p,
  .productsSection p,
  .contactSection p {
    font-size: 1.5rem;
  }

  .heroCTAButton {
    font-size: 1.25rem;
  }

  .sectionHeader {
    font-size: 2rem;
    text-decoration: underline;
  }

  .aboutSection h3,
  .productsSection h3 {
    font-size: 1.75rem;
  }

}

/* Desktop and up */
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}