*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

:root {
  --color-bg-darkblue: #1A1A39;
  --color-bg-darkerblue: #141738;
  --color-bg-darkerblue-rgba: 20, 23, 56;
  --color-orange: #EB5D35;
  --bg-dark: #050505;
  --text-light: #e0e0e0;
  --accent: #ffffff;
}

body {
  background-color: var(--color-bg-darkblue);
  font-family: monospace, Courier;
}

.active-nav::after {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 100%;
    height: 2px;
    background: var(--color-orange);
    box-shadow: 
        0 0 10px var(--color-orange), 
        0 0 10px var(--color-orange);
}

/* MARK: hamburger menu */
.hamburger-btn {
    position: fixed;
    top: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-bg-darkerblue); 
    
    border: 2px solid rgba(235, 93, 53, 0.3);
    box-shadow: 0 0 15px rgba(235, 93, 53, 0.2); 
    
    z-index: 1000; 
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px; 
    transition: all 0.4s ease;
}

.hamburger-btn span {
    width: 26px;
    height: 3px;
    background-color: rgba(235, 93, 53, 0.6); 
    border-radius: 2px;
    transition: all 1s ease;
}

.hamburger-btn:hover {
    border-color: var(--color-orange);
    box-shadow:
        inset 0 0 0 1.5px var(--color-orange),
        0 0 30px 10px rgba(235, 93, 53, 0.6); 
}

.hamburger-btn:hover span {
    background-color: var(--color-orange); 
    box-shadow: 0 0 5px var(--color-orange);
}

main {
    transition: filter 0.4s ease;
}

body:has(.hamburger-btn:hover) main {
    filter: blur(6px); 
    }

.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0; 
}
.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Fullscreen menu overlay */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: rgba(20, 23, 56, 0.95);
    backdrop-filter: blur(15px); 
    z-index: 999; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.fullscreen-menu:has(a:hover) {
    backdrop-filter: blur(15px);
    /* background: rgba(20, 23, 56, 0.9); */
    transition: backdrop-filter 0.3s ease, background 0.3s ease; 
}

.fullscreen-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.fullscreen-menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
    gap: 12px;
    display: flex;
    flex-direction: column;
}

.fullscreen-menu li {
    margin: 30px 0;
}

/* Mobile links */
.fullscreen-menu li {
    margin: 30px 0;
    transform: translateX(-150px) scale(0);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 2s ease;
}

.fullscreen-menu.is-open li {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.fullscreen-menu.is-open li:nth-child(1) { transition-delay: 0.05s; }
.fullscreen-menu.is-open li:nth-child(2) { transition-delay: 0.15s; }
.fullscreen-menu.is-open li:nth-child(3) { transition-delay: 0.25s; }
.fullscreen-menu.is-open li:nth-child(4) { transition-delay: 0.35s; }

.fullscreen-menu a {
    color: white;
    font-size: 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.fullscreen-menu a:hover {
    color: var(--color-orange);
    text-shadow: 0 0 15px var(--color-orange);
}

/* Fullscreen menu over - 768px */
@media (min-width: 768px) {
  .fullscreen-menu {
    background-color: transparent;
  }
  
  .fullscreen-menu ul {
        position: fixed;
        top: 1px; 
        left: 120px; 
        right: 40px; 
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .fullscreen-menu a {
        font-size: 1.2rem; 
        letter-spacing: 2px;
        padding: 1.5em;
    }

    .fullscreen-menu li {
        transform: translateX(-100px) scale(0); 
        opacity: 0;
        transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s ease;
    }

    .fullscreen-menu.is-open li {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    .fullscreen-menu.is-open a {
        display: inline-block;
        animation: floatLink 2.5s ease-in-out infinite alternate;
    }

    .fullscreen-menu.is-open li:nth-child(1) { transition-delay: 0.05s; }
    .fullscreen-menu.is-open li:nth-child(2) { transition-delay: 0.15s; }
    .fullscreen-menu.is-open li:nth-child(3) { transition-delay: 0.25s; }
    .fullscreen-menu.is-open li:nth-child(4) { transition-delay: 0.35s; }
    
    .fullscreen-menu.is-open li:nth-child(1) a { animation-delay: 0.0s; }
    .fullscreen-menu.is-open li:nth-child(2) a { animation-delay: 0.3s; }
    .fullscreen-menu.is-open li:nth-child(3) a { animation-delay: 0.6s; }
    .fullscreen-menu.is-open li:nth-child(4) a { animation-delay: 0.9s; }
}