:root {
  --primary-text: #000;
  --body-bg: #f5f5f5;
  --monofonts: monospace;
  --muted-text: #7e7c7c;
  --active-link-text: #8d8de7;
  --dev-border: 1px #3333 solid;
  --dev-color: #3333;
  --dev-box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.1);
  --coda-gray: #f5f5f5;
  --button-bg: #0071e3;
  --pure-white: #ffff;
  --border-muted-color: #c0c0c0;
  --coda-glass: saturate(180%) blur(10px);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  font-family: var(--monofonts);
  /* font-family: "Inter", sans-serif; */
}

p,
a {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 10vw;
  backdrop-filter: var(--coda-glass);
  position: fixed;
  background: rgba(255, 255, 255, 0.8);
  z-index: 999;
  ul li {
    position: relative;
  }
}

.navbar ul li.hideonss::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.navbar ul li.hideonss:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.sidebar {
  position: fixed;
  top: 60px;
  right: 0;
  width: 100%;
  height: auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--coda-glass);
  padding: 20px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 999999;
  ul {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    li {
      margin: 0 0 22px 0;
    }
  }
  a {
    text-decoration: none;
    color: var(--primary-text);
    padding: 12px 20px;
    color: var(--button-bg);
    border: 1px solid transparent;
  }
  .side-links a:hover {
    border: 1px solid var(--active-link-text);
    color: var(--active-link-text);
  }
}

.sidebar.active {
  display: flex;
  animation: appear 0.5s;
}

@keyframes appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.hideonbs {
  display: none;
}

.navbar .logo {
  margin: 0 auto 0 0;
  a {
    text-decoration: none;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.1rem;
  }
}

.navbar ul {
  display: flex;
  min-width: 400px;
  align-items: center;
  justify-content: space-between;
  li a {
    text-decoration: none;
    color: var(--muted-text);
    border: 1px solid transparent;
    padding: 2px;
    transition: all 0.2s ease-in-out;
  }
  li a:hover {
    color: var(--active-link-text);
    border: 1px solid var(--active-link-text);
  }
}

main {
  height: auto;
  width: 100%;
}

#hero {
  height: auto;
}

.wrapper {
  height: 90vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  h1 {
    font-size: 3rem;
    max-width: 600px;
    text-align: center;
    span {
      color: rgb(194, 166, 146);
    }
  }
  p {
    max-width: 800px;
    text-align: center;
    padding: 12px 0;
    font-size: 18px;
  }
}

.hello-button {
  height: auto;
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0;
  a {
    padding: 5px 12px;
    border-radius: 30px;
    border: var(--dev-border);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    color: var(--muted-text);
  }
  a:hover {
    box-shadow: var(--dev-box-shadow);
    transform: translateX(3px);
    color: var(--active-link-text);
  }
}

.quick-hello-button {
  height: auto;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  a {
    color: var(--muted-text);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  a i {
    transition: all 0.3s ease;
  }
  a i:hover {
    scale: 1.2;
    color: #000;
  }
  .fa-youtube:hover {
    color: #ff0000;
  }

  .fa-instagram:hover {
    color: #ff4500;
  }
  .fa-envelope:hover {
    color: #0071e3;
  }
}

/* products section */
#products {
  height: auto;
}

#products .item {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  margin: 15px 0;
  background: var(--coda-gray);
  h2 {
    font-size: 3rem;
    text-align: center;
  }
  p {
    max-width: 600px;
    font-size: 18px;
    text-align: center;
    margin: 20px 0 20px 0;
    padding: 0 20px;
  }
}

.cta-buttons {
  height: auto;
  width: 340px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  a {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 30px;
    border: var(--dev-border);
    font-size: 17px;
    border: 1px solid var(--button-bg);
    color: var(--button-bg);
    transition: all 0.3s ease;
  }
  a:first-child {
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
    background: var(--button-bg);
  }
  a:first-child:hover {
    background: none;
    color: var(--button-bg);
  }

  a:last-child:hover {
    background: var(--button-bg);
    color: var(--pure-white);
  }
}

#abstract {
  padding: 5rem 10vw 0 10vw;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;

  span {
    font-size: 20px;
    padding: 10px 0 12px 0;
    cursor: pointer;
  }

  div {
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 2rem;
  }

  h3 {
    font-size: 24px;
    color: var(--primary-text);
    margin: 0 0 10px 0;
    span {
      color: var(--button-bg);
      position: relative;
      padding: 0;
    }
    span:after {
      content: "";
      position: absolute;
      bottom: -2px;
      left: 0;
      height: 2px;
      background: var(--button-bg);
      width: 30%;
      transition: all 0.3s ease;
    }
    span:hover:after {
      width: 100%;
    }
  }

  p {
    font-size: 17px;
    padding: 0 0 10px 10px;
    border-left: var(--dev-border);
  }

  .title {
    text-transform: uppercase;
    color: var(--button-bg);
    margin: 0 0 1rem 0;
    border-bottom: 1px var(--muted-text) solid;
    padding: 0 0 20px 0;
    width: 100%;
    h1 {
      font-size: 2rem;
    }
    span {
      font-size: 1.5rem;
    }
  }

  .segment {
    padding: 20px 0 0 0;
    ul {
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      flex-direction: column;
      padding: 0 0 10px 30px;
      margin: 0 0 30px 0;
      border-left: var(--dev-border);
      line-height: 1.3;
      li {
        font-size: 17px;
        list-style: circle;
        a {
          color: var(--button-bg);
          text-decoration: none;
          transition: all 0.3s ease;
        }
        a:hover {
          text-decoration: underline;
        }
      }
    }
  }
}

footer {
  height: auto;
  padding: 0 20px 20px 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  p {
    font-size: 14px;
    padding: 8px 0 0 0;
    a {
      text-decoration: none;
      color: var(--primary-text);
      font-size: inherit;
      transition: all 0.3s ease-in-out;
    }
    a:hover {
      text-decoration: underline;
    }
  }

  .lower-footer,
  .mid-footer,
  .top-footer {
    width: 80vw;
  }

  .mid-footer {
    border-top: 1px solid var(--border-muted-color);
    margin: 20px 0 0 0;
    padding: 12px 0 0 0;
  }
  .lower-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 0 0;
  }
}

/* responsiveness */
@media (max-width: 768px) {
  .navbar ul {
    min-width: 260px;
  }
}

@media (max-width: 835px) {
  .wrapper {
    h1 {
      font-size: 2rem;
      max-width: 400px;
    }
    p {
      font-size: 16px;
    }
  }

  .navbar {
    padding: 12px 20px 12px 10vw;
  }

  .navbar ul {
    min-width: auto;
  }

  .hideonbs {
    display: flex;
  }

  .hideonss {
    display: none;
  }
  #products .item {
    height:48vh;
    h2 {
      font-size: 2.4rem;
    }
    p {
      font-size: 17px;
    }
  }
}

@media (max-width: 850px) {
  footer {
    .lower-footer,
    .mid-footer,
    .top-footer {
      width: 90%;
    }
    .lower-footer {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}
