:root {
    --darkBlue: #004aad;
    --softCyan: #5de0e6;
}

#banner {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 40px 150px 0;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

#logo-container {
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#logo {
    height: clamp(50px, 10vw, 150px);
    width: auto;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.list-container {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 15px;
}

/* Scrolled States */
#banner.scrolled {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 150px;
    box-shadow: 3px 3px 5px rgb(221, 221, 221);
    max-height: 60px;
}

#banner.scrolled #logo {
    height: clamp(20px, 2vw, 80px);
}

#banner.scrolled #logo-container {
    text-align: left;
}

#banner.scrolled .list-container {
    margin-top: 0;
    margin-right: 100px;
}

footer {
    background-color: #f4f4f4;
    padding: 20px;
    text-align: center;
    font-family: 'IBM Plex Sans', sans-serif;
    color: #333;
    margin-top: 40px;
}

@media screen and (max-width: 1200px) {
  #navbar {
    position: sticky;
    top: 0;
    right: 0;
    height: auto;
    width: 100%;
    z-index: 10;
    background-color: #ffffff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  #navbar a {
    text-align: center;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    padding: 15px 20px;
    white-space: nowrap;
  }

  .list-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: transparent;
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }

  .horizontal-list {
    display: flex;
    flex-direction: row;
    gap: 25px;
    flex-wrap: nowrap;
  }

  #logo {
    height: 80px;
    max-height: 80px;
    transition: height 0.3s ease;
  }

  #logo-container {
    text-align: center;
  }

  #navbar a:hover::after {
    width: 100%;
  }
}

#navbar a {
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
  white-space: nowrap;
}