:root {
  /* Primary Colors */
  --green: hsl(133, 85%, 50%);
  --cream: hsl(30, 38%, 92%);

  /* Neutral Colors */
  --very-dark: hsl(240, 7%, 3%);
  --very-dark-gray: hsl(240, 2%, 7%);
  --very-dark-gray-transparent: hsla(240, 2%, 18%, 50%);
  --dark-grayish-blue: hsl(227, 6%, 30%);
  --white: hsl(0, 0%, 100%);
  --almost-white: hsl(0, 0%, 75%);
}

@font-face {
  font-family: "Neue Konstant Grotesk";
  src: url("./assets/fonts/NeueKonstantGrotesk-Book.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

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

main {
  width: 100%;
}

body {
  min-height: 100dvh;
  width: 100%;
  color: var(--almost-white);
  font-family: "Neue Konstant Grotesk", sans-serif;
  font-weight: normal;
  font-size: 1rem;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background-color: var(--very-dark);
  background: radial-gradient(ellipse at bottom, var(--white), hsla(125, 86%, 70%, 0.82), var(--very-dark) 35%);
  background-size: 600% 190%;
  animation: pulse-gradient 16s ease-in-out infinite;
}

#overlay {
  height: 100vh;
  width: 100vw;
  background-color: var(--very-dark);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: block;
}

h1 {
  font-size: 1.6rem;
  letter-spacing: 0.04rem;
  line-height: 1.5;
  margin-bottom: 10px;
  margin-top: 40px;
}

h1::before {
  content: "";
  height: 10px;
  width: 10px;
  background-color: var(--green);
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
  box-shadow: 0 0 10px var(--green);
  animation: pulsing 4s ease infinite;
}

p {
  color: var(--dark-grayish-blue);
  line-height: 0.85;
}

nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
}

ul {
  list-style: none;
  padding: 0px 24px;
  margin-top: 52px;
}

li a {
  font-size: 2rem;
  color: var(--almost-white);
  letter-spacing: -0.01rem;
  line-height: 1.3;
  text-decoration: none;
  display: block;
  padding: 16px 0px 4px 0px;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
  animation: highlight-item 3s ease 1;
}



ul:hover li a {
  color: var(--dark-grayish-blue);
}

ul:hover li a:hover {
  color: var(--white);
  background-color: var(--very-dark-gray-transparent);
}

@keyframes pulsing {
  0%,
  50%,
  100% {
    box-shadow: 0 0 10px var(--green);
  }
  25%,
  75% {
    box-shadow: 0 0 15px var(--green), 0 0 10px -3px var(--white);
  }
}

@keyframes highlight-item {
  0%,
  10%,
  20%,
  100% {
    color: var(--almost-white);
    background-color: transparent;
  }
  13%,
  16% {
    color: var(--white);
    background-color: var(--very-dark-gray);
  }
}

@keyframes pulse-gradient {
  0% {
    background-position: 50% 3%;
  }
  50% {
    background-position: 50% 0%;
    background-size: 300% 173%;
  }
  100% {
    background-position: 50% 3%;
  }
}

/* Desktop Styles */
@media screen and (min-width: 800px) {
  h1 {
    font-size: 1.8rem;
  }

  h1::before {
    height: 12px;
    width: 12px;
    margin-right: 16px;
  }

  li a {
    font-size: 2.4rem;
    padding: 12px 64px 0px 64px;
    animation: none; /* Disable animation on desktop */
  }

  ul {
    margin-top: 52px;
    padding: 8px 24px;
  }
}
