@font-face {
  font-family: "Poppins";
  src: url("./poppins-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Poppins";
  src: url("./poppins-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

* {
  margin: 0;
  padding: 0;
  transition: all 0.6s ease;
  font-weight: 500;
  font-family: Poppins, sans-serif;
}

*:focus {
  outline: none;
}

ul {
  list-style: none;
}

:root {
  --blue: #2d368f;
  --brown: #352000;
  --orange: #f15a2c;
  --gray: #ddd;

  --blur: 0rem;
}

body {
  height: 100dvh;
  background-color: black;
  place-items: center;
  background-size: cover;
}

.bg-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;

  video,
  img {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: 0;
    filter: blur(var(--blur));
    height: 100%;
    width: 100%;
    object-fit: cover;
    scale: 1;
    transform-origin: center 0%;
  }

  &::after {
    position: absolute;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 0) 30%);
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
  }
}

button {
  height: 2.5rem;
  padding: 0.5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.council {
  z-index: 99;
  position: absolute;
  justify-content: start;
  display: flex;
  margin: clamp(1rem, 7vw, 3rem) clamp(1rem, 7vw, 2rem);
  left: 0;
  top: 0;
  scale: 2;
  transform-origin: top left;
  filter: drop-shadow(0px 1px 0px rgba(0, 0, 0, 0.4));
}

.container {
  position: absolute;
  overflow: hidden;
  inset: 0;

  .content {
    color: var(--blue);
    /* text-shadow: 1px 1px 1rem white; */

    position: absolute;
    z-index: 11;
    background: rgba(255, 255, 255, 0.7);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 7rem 1.25rem 2rem;
    backdrop-filter: blur(0.5rem);

    &.active {
      opacity: 1;
      translate: none;
    }
  }

  .language-selector {
    position: absolute;
    top: 0rem;
    right: 0rem;
    margin: 1.25rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    color: white;
    opacity: 0;
    background-color: var(--blue);
    z-index: 99;

    svg {
      width: 1rem;
    }
    &.active {
      opacity: 1;
    }
    &:hover {
      background-color: #000;
    }
  }

  .title {
    display: flex;
    flex-direction: column;
    gap: 0rem;
  }

  h1 {
    font-size: clamp(1.5rem, 10vw, 2rem);
    word-break: break-word;
    font-weight: 600;
    hyphens: auto;
  }

  h2 {
    font-size: clamp(1rem, 8vw, 1.5rem);
    font-weight: 600;
  }

  h3 {
    font-size: clamp(0.75rem, 6vw, 1.5rem);
  }

  .socials {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 1rem;
    gap: 1rem;

    h4 {
      font-size: 1.5rem;
      margin: 0;
    }
    h3 {
      font-size: 26px;
    }
    .icons {
      display: flex;
      gap: 1rem;
      .bi {
        height: 1.5rem;
        width: 1.5rem;
        color: var(--blue);
        &:hover {
          color: #000;
        }
      }
    }
  }
}

.modal {
  width: 100%;
  height: 100%;
  backdrop-filter: blur(1rem);
  border: none;
  z-index: 999;
  inset: 0;
  margin: auto;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;

  .modal-container {
    padding: 3rem;
    position: relative;
    .title {
      display: flex;
      gap: 1rem;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      button {
        position: absolute;
        right: 3rem;
        width: 1rem;
        height: 1rem;
        background: transparent;
        border-radius: 50%;
        color: white;
        line-height: 2;
        scale: 3;
        &:hover {
          background: rgba(255, 255, 255, 0.1);
        }
      }
    }
  }
  ul {
    list-style: none;
    align-items: center;
    scale: 1.2;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    translate: 0 50%;

    button {
      background: white;
      color: #000;
      width: min(60vw, 16rem);
      text-align: center;
      justify-content: center;
      border-radius: 0.25rem;

      &.active {
        pointer-events: none;
        user-select: none;
        position: relative;
        &::before {
          position: absolute;
          content: "";
          width: 0.3rem;
          height: 60%;
          left: 0.33rem;
          background-color: var(--blue);
          border-radius: 0.2rem;
          padding: 0.2rem 0;
        }
      }
      &:hover {
        background: var(--gray);
      }
    }
  }
}
