/* Global Header Styles */
.header {
    position: fixed;
    top: 20px;
    left: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.hamburger-button {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 191, 255, 0.2);
    padding: 12px 14px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-button:hover {
    border-color: rgba(0, 191, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.2);
    transform: translateY(-2px);
}

.neon-text {
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00BFFF;
    text-shadow: 0 0 8px #00BFFF;
}

.hamburger {
    width: 28px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #00BFFF;
    box-shadow: 0 0 5px #00BFFF;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.menu {
    position: fixed;
    top: 80px;
    left: 25px;
    display: none;
    flex-direction: column;
    gap: 8px;
    width: auto;
    padding: 8px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(0, 191, 255, 0.1);
    border-radius: 16px;
    z-index: 999;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    animation: menu-appear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes menu-appear {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu.active {
    display: flex;
}

.menu-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.3), transparent);
    transition: left 0.5s;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, rgba(0, 191, 255, 0.1) 100%);
    border-color: rgba(0, 191, 255, 0.5);
    transform: translateX(5px);
    box-shadow: 
        0 5px 15px rgba(0, 191, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        top: 10px;
        left: 10px;
        gap: 10px;
    }
    
    .hamburger-button {
        padding: 8px 10px;
        border-radius: 25px;
    }
    
    .neon-text {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }
    
    .menu {
        top: 60px;
        left: 10px;
        right: 10px;
        max-height: calc(100vh - 80px);
    }
}

/* Medium screen adjustments (laptops with smaller windows) */
@media (min-width: 769px) and (max-width: 1200px) {
    .menu-item {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Touch device adjustments */
@media (hover: none) and (pointer: coarse) {
    .menu-item {
        padding: 12px 20px;
    }
}