/* Header Styles - Universal for all pages */

/* Header Container */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(110, 231, 183, 0.1);
    transition: all 0.3s ease;
}

.header:hover {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(110, 231, 183, 0.2);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(110, 231, 183, 0.3));
}

.logo-link:hover .logo {
    animation: logoRotate 0.5s ease;
    filter: drop-shadow(0 0 12px rgba(110, 231, 183, 0.5));
}

@keyframes logoRotate {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.logo_name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #6ee7b7, #8b6bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    color: var(--color-text-primary, #F6F7FB);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav__link:hover {
    color: var(--color-accent-primary, #6ee7b7);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-primary, #6ee7b7);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.telegram {
    background: #0088cc;
}

.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    backdrop-filter: blur(20px);
    padding: 80px 20px 20px;
    transition: left 0.5s ease;
    z-index: 999;
    display: none;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav .nav__link {
    font-size: 1.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem 4%;
    }
    
    .nav,
    .social-icons {
        display: none !important;
    }
    
    .burger,
    .mobile-menu {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .logo {
        width: 36px;
        height: 36px;
    }
    
    .logo_name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 3%;
    }
    
    .logo_name {
        display: none;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav {
        gap: 1.5rem;
    }
    
    .nav__link {
        font-size: 0.95rem;
    }
}
