/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    transition: var(--transition);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    background: rgba(21, 21, 37, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.header-inner.scrolled {
    background: rgba(21, 21, 37, 0.92);
    box-shadow: var(--shadow-lg);
    padding: 10px 24px;
}

/* ========== LOGO ========== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 1001;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
    50% { box-shadow: 0 4px 35px rgba(255, 71, 87, 0.6); }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-text .accent {
    color: var(--accent);
}

/* ========== NAVIGATION ========== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    position: relative;
}

.nav-link i {
    font-size: 0.95rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.nav-link span {
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover i {
    opacity: 1;
    color: var(--accent);
}

.nav-link.active {
    color: #fff;
    background: var(--accent);
    font-weight: 600;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.nav-link.active i {
    opacity: 1;
}

/* ========== MOBILE MENU TOGGLE ========== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    flex-shrink: 0;
    position: relative;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}

.menu-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.menu-icon::before {
    content: '';
    top: -7px;
    left: 0;
}

.menu-icon::after {
    content: '';
    top: 7px;
    left: 0;
}

.menu-toggle.active .menu-icon {
    background: transparent;
}

.menu-toggle.active .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ========== FOOTER ========== */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 80px;
}

.footer-wave {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    width: 100%;
    height: 80px;
}

.footer-content {
    background: var(--bg-surface);
    padding: 80px 24px 40px;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo-text {
    display: block;
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 2.1;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 1px solid transparent;
}

.social-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--accent-glow);
    border-color: var(--accent-light);
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 6px;
}

.footer-links a:hover i {
    opacity: 1;
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .main-nav {
        position: relative;
        left: auto;
        transform: none;
        gap: 2px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.82rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        font-size: 1.2rem;
        opacity: 0.8;
    }
    
    .nav-link.active {
        padding: 8px 14px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 12px;
    }
    
    .header-inner {
        padding: 10px 16px;
        border-radius: var(--radius-lg);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 100px 30px 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        gap: 8px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .nav-link span {
        display: inline;
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-overlay {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 8px 14px;
        border-radius: var(--radius-md);
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}