.right-sidebar::before {
    content: "";
    position: absolute;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.hamburger {
    position: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 200;
}

.hamburger.active {
    right: 30px;
}

.hamburger .close-ham {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.hamburger.active .close-ham {
    pointer-events: auto;
    background: rgba(255, 123, 0, 0.01);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

.hamburger .left-ham {
    top: 0;
    left: 0;
    width: 25%;
    height: 100vh;
}

.hamburger .right-ham {
    top: 0;
    right: 0;
    width: 25%;
    height: 100vh;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    margin: 10px 0;
    transition: 0.5s;
    border-radius: 3px;
    animation: margin-scale 0.3s infinite ease-in-out;
}

.hamburger:hover span{
    filter: drop-shadow(0 0 8px white);
}

.hamburger.active span:nth-child(1) {
  height: 2px;
  transform: rotate(45deg) translate(20px, 15px) scale(200%);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  height: 2px;
  transform: rotate(-45deg) translate(-10px, 10px) scale(200%);
}

@keyframes margin-scale {
    0% {
        margin: 10px 0;
        width: 100%;
    }
    25%{
        width: 90%;
    }
    60% {
        margin: 12px 0;
        width: 100%;
    }
    100% {
        margin: 10px 0;
    }
}

.social-links {
    border-radius: 5px;
    opacity: 50%;
    position: flex;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    animation: elongates 10s infinite;
}

.social-links:hover {
    transform: scale(1.1);
    opacity: 100%;
}

body.menu-open .social-links {
  display: none;
}

@keyframes elongates {
  0%, 100% {
      transform: translateY(0%);
    }
    50% {
      transform: translateY(300%);
  }
}

.header-scroll {
  opacity: 1;
  transition: opacity 0.3s;
}

.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 20px;
    z-index: 900;
    backdrop-filter: none;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    background-image: url("../img/cat.png"); 
}

.nav-menu.active {
    left: 0;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: backgroundHop 0.4s ease-in-out forwards;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav-menu.closing {
  animation: none !important;
  opacity: 0;
  transform: translateY(-10px);
  left: 0;
}

.nav-menu li {
    width: 50%;
    text-align: center;
    font-weight: 500;
    font-size: 24px;
    opacity: 0;
    transform: translateY(10px);
    z-index: 2000;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu li button {
    color: white;
    -webkit-text-stroke-width: 0.3px;
    -webkit-text-stroke-color: var(--stroke-color);
    font-size: x-large;
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 2000;
    pointer-events: auto;
    background: rgba(32, 32, 32, 0.5);
}

.nav-menu li button .sub-text {
    display: block;
    font-size: 0.5em;
    font-weight: 400;
    -webkit-text-stroke-width: 0.2px;
    -webkit-text-stroke-color: var(--stroke-color);
}

.nav-menu li button:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.nav-menu li h1{
    color: white;
    font-size: x-large;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(255, 94, 0, 0.203);
}

.nav-menu li h1 a{
    display: inline-block;
    padding: 0;
    background: rgba(255, 255, 255, 0)
}

.nav-menu li h1 a:hover{
    border-color: rgba(255, 255, 255, 0);
    background: rgba(255, 255, 255, 0);
    box-shadow: none;
    transform:  scale(1.1);
}

.nav-menu li h1 a img{
    display: block;
    position: center;
    width: 50px;
    border-radius: 50%;
}

@media (max-height: 700px) {
    .nav-menu {
        gap: 10px;
    }
    .nav-menu li a {
        padding: 6px 16px;
        font-size: 20px;
    }
    .nav-menu li button, .nav-menu li h1 {
        font-size: large;
    }
    .nav-menu li button .sub-text {
        font-size: 0.3em;
    }
}

@media (max-height: 500px) {
    .nav-menu {
        gap: 6px;
    }
    .nav-menu li a {
        padding: 4px 14px;
        font-size: 18px;
    }
    .nav-menu li button, .nav-menu li h1 {
        font-size: medium;
    }
    .nav-menu li button .sub-text {
        font-size: 0.2em;
    }
}

@keyframes backgroundHop {
    0% {
        background-size: 150%;
        transform: scale(1);
    }60% {
        background-size: 250%;
        transform: scale(1.05);
    }
    80% {
        background-size: 90%;
        transform: scale(0.98);
    }
    100% {
        background-size: cover;
        transform: scale(1);
        background: blur(90px);
    }
}

.nav-menu.active li:nth-child(1) { transition-delay: 0.4s; }
.nav-menu.active li:nth-child(2) { transition-delay: 0.5s; }
.nav-menu.active li:nth-child(3) { transition-delay: 0.6s; }
.nav-menu.active li:nth-child(4) { transition-delay: 0.7s; }
.nav-menu.active li:nth-child(5) { transition-delay: 0.8s; }