@import 'https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap';

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-image: url('/assets/images/background.png');
  background-repeat: repeat;
  background-size: auto;
  background-position: 0 0;

  opacity: 1;
  transition: opacity 0.8s ease-in;

  animation: scrollDiagonal 30s linear infinite;
}

@keyframes scrollDiagonal {
  from { background-position: 0 0; }
  to   { background-position: 1000px 1000px; }
}

/* HEADER */
header {
    width: 100%;
    padding: 0 2em;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    height: 60px;
    font-family: 'Poppins', sans-serif;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2em;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.nav-logo img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.nav-logo:hover {
    transform: scale(1.1);
}

.nav-logo[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #C084FC;
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    pointer-events: none;
}

nav {
    display: flex;
    gap: 1.5em;
    align-items: center;
    flex-grow: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    background: transparent;
    border: 1px solid #C084FC;
    text-decoration: none;
    padding: 0.5em 1em;
    display: flex;
    align-items: center;
    gap: 0.3em;
    border-radius: 2rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
    color: #fff;
      background: #C084FC22;
    transform: translateY(-5px);
    text-decoration: none;
}

.arrow {
    font-size: 0.75em;
    display: inline-block;
    transition: transform 0.35s;
}

.nav-item:hover > .nav-link .arrow {
    transform: rotate(180deg);
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    font-size: smaller;
    background: transparent;
    border-radius: 20px;
    flex-direction: column;
    padding: 0.3em 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 999;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown a {
    color: white;
    text-decoration: none;
    padding: 0.7em 1.2em;
    display: block;
    font-weight: 500;
    border-radius: 4px;
    position: relative;
    transition: background-color 0.3s ease;
}

.dropdown a::after {
    content: '';
    position: absolute;
    left: 10px;
    bottom: 8px;
    width: 0%;
    height: 2px;
    background: #C084FC;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.dropdown a:hover::after {
    width: calc(100% - 20px);
}

/* FOOTER */
footer {
    margin-top: 4em;
}

footer p {
    margin: 0.2em 0;
}