/* css/header.css */
/* Header Component Styles */

:root {
    --p: #00d4ff;
    --pd: #0099cc;
    --a: #ff0066;
    --d: #0a0a0a;
    --dc: #151515;
    --l: #fff;
    --g: #999;
    --gd: #666;
    --t: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Header */
.global-header {
    position: fixed;
    top: 0;
    left: 30px;
    right: 30px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,212,255,.15);
    z-index: 1000;
    padding: 20px 40px;
    transition: all 0.3s var(--t);
    box-shadow: 0 2px 20px rgba(0,0,0,.5);
    display: block;
}

.global-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--p), transparent);
    opacity: 0.5;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.2em;
    font-weight: 400;
    color: var(--p);
    letter-spacing: 3px;
    padding: 10px 20px;
    border: 2px solid var(--p);
    border-radius: 0;
    background: transparent;
    transition: all 0.3s var(--t);
    cursor: pointer;
    text-transform: uppercase;
}

.logo-text:hover {
    background: var(--p);
    color: var(--d);
    box-shadow: 0 0 20px rgba(0,212,255,.4);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s var(--t);
    position: relative;
    padding: 8px 12px;
    border: none;
    border-radius: 0;
    text-transform: none;
}

.nav-link:hover {
    color: var(--p);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--p);
    transition: all 0.3s var(--t);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--p);
    transition: all 0.3s var(--t);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0,212,255,.2);
    transition: right 0.3s var(--t);
    z-index: 999;
    padding: 80px 30px 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-link {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 1.2em;
    letter-spacing: 2px;
    transition: all 0.3s var(--t);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,212,255,.1);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--p);
    padding-left: 10px;
}

/* Scroll Effects */
.global-header.scrolled {
    padding: 15px 40px;
    background: rgba(10, 10, 10, 0.99);
    box-shadow: 0 4px 30px rgba(0,0,0,.7);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .global-header {
        padding: 15px 20px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .global-header.scrolled {
        padding: 12px 20px;
    }
    
    .logo-text {
        font-size: 1em;
        padding: 8px 15px;
        letter-spacing: 2px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 380px) {
    .global-header {
        padding: 12px 15px;
    }
    
    .logo-text {
        font-size: 0.9em;
        padding: 6px 12px;
        letter-spacing: 1.5px;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .logo-text,
    .nav-link {
        cursor: default;
        -webkit-tap-highlight-color: transparent;
    }
    
    .logo-text:hover {
        background: transparent;
        color: var(--p);
        box-shadow: none;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .mobile-menu {
        height: -webkit-fill-available;
    }
}