html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #0b0b0b;
    color: #fff;
    text-shadow: 0 0 6px black;
}

p {
    font-family: "Fondamento", cursive;
    font-size: 2vh;
    margin-bottom: 3vh;
    text-decoration: none;
}

.topnav {

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 1000;

  background: transparent;
}

.topnav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;


  mask: linear-gradient(black, black, transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow: visible;


  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0% rgba(255, 255, 255, 0.2) 40%,
      rgba(255, 255, 255, 0.3) 100%,


    );

  pointer-events: none;
}

.symbol img {
  position: fixed;
  margin-top: -30px;
  margin-left: -10px;
  width: auto;
  height: 70px;
  filter: brightness(1) saturate(100%);
  transition: 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  margin-top: -20px;

}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.5rem;
  transition: color 0.3s;
    text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
}

.nav-links a:hover {
  color: #e4b84b;
}

.symbol a img:hover {
  filter: brightness(0.5) saturate(100%) sepia(1) hue-rotate(5deg) brightness(1.2) saturate(250%);
  transition: 0.3s ease;
}

.burger {
  display: none;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
      text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
}

.container {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 100vh;
    width: 100vw;
    padding: 6vh 3.5vw 0 3.5vw;
    box-sizing: border-box;
    background-image: url(media/paper3.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

.container::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("media/bg.webp") center/cover no-repeat;
    clip-path: polygon(50% 0, 100% 0, 100% 0, 50% 0);
    z-index: 0;
    animation: revealBackground 1.2s ease-in-out forwards;
}

@keyframes revealBackground {
    0% {
        clip-path: polygon(50% 0, 100% 0, 100% 0, 50% 0);
    }

    100% {
        clip-path: polygon(50% 0, 100% 0, 80% 100%, 25% 100%);
    }
}

.left {
    position: relative;
    z-index: 3;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.6vh;
    padding-left: 10vw;
    padding-top: 10vh;
    font-family: "Fondamento", cursive;
}

h1 {
    font-family: "Pirata One", cursive;
    font-size: 8vh;
    line-height: 1;
    margin: 0 0 0.5vh 0;
}

.description {
    font-size: 2.4vh;
    max-width: 46ch;
    margin: 0 0 3vh 0;
    color: white;
}

.left nav {
    display: flex;
    gap: 1.5vw;
}

.left nav a {
    flex: 1;
    display: inline-block;
    text-align: left;
    text-decoration: none;
    color: #e4b84b;
    font-size: 4vh;
    font-weight: bold;
    padding: 5%;
    margin-bottom: 4%;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(31, 31, 31, 0.95) 0%, rgba(2, 2, 2, 0) 80%);
    font-family: "Pirata One", cursive;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out, color 0.4s ease;
}

.left nav a:hover {
    color: white;
}

.right {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 2vw;
    box-sizing: border-box;
}

.image-wrap {
    width: 100%;
    height: auto;
}

.image-wrap img {
    max-width: 70%;
    max-height: 100%;
    margin: 0 auto;
    display: block;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(2px, -2px) rotate(-0.3deg);
    }

    50% {
        transform: translate(0, -4px) rotate(0.3deg);
    }

    75% {
        transform: translate(-2px, -2px) rotate(-0.2deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;

    background: transparent;
}

.topnav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;


    mask: linear-gradient(black, black, transparent);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow: visible;


    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0% rgba(255, 255, 255, 0.2) 40%,
            rgba(255, 255, 255, 0.3) 100%,


        );

    pointer-events: none;
}

.symbol img {
    position: fixed;
    margin-top: -30px;
    margin-left: -10px;
    width: auto;
    height: 70px;
    filter: brightness(1) saturate(100%);
    transition: 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin-top: -20px;

}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    transition: color 0.3s;
    text-shadow: 0px 0px 5px #000000;
    font-family: "Pirata One", cursive;
}

.nav-links a:hover {
    color: #e4b84b;
}

.symbol a img:hover {
    filter: brightness(0.5) saturate(100%) sepia(1) hue-rotate(5deg) brightness(1.2) saturate(250%);
    transition: 0.3s ease;
}

.fade-in {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 820px) {
    .container {
        flex-direction: column;
    }

    .right {
        order: -1;
        padding: 0;
    }

    .left {
        width: 100%;
        padding-left: 5vw;
        padding-top: 6vh;
    }

    .left nav {
        flex-direction: column;
        gap: 1vh;
    }

    .left nav a {
        flex: none;
        width: 100%;
        margin-bottom: 2vh;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        text-align: end;
        gap: 15px;
        position: absolute;
        top: 90px;
        right: 20px;

        padding: 10px 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.01s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.02s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.03s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.04s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .burger {
        display: block;
        position: relative;
        z-index: 2001;
    }
}