/* Navigation */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    transition: var(--transition-normal);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.08) 0%, 
        rgba(10, 10, 10, 0.95) 50%, 
        rgba(16, 185, 129, 0.08) 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.header:hover .header-background {
    opacity: 1;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header-inner {
    max-width: 140rem;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 70px;
}

/* Brand */
.header-brand {
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

.header-brand:hover {
    transform: translateY(-1px);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.brand-logo:hover {
    transform: translateY(-2px);
    background: rgba(16, 185, 129, 0.05);
}

.logo-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.logo-icon:hover::before {
    left: 100%;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-normal);
    background-clip: text;
}

.header-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
}

.header-nav-list {
    display: flex;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    opacity: 0;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.nav-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.6rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    opacity: 0;
    transition: var(--transition-fast);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.social-link i {
    position: relative;
    z-index: 1;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

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

.header-cta:hover::before {
    left: 100%;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.header-cta i {
    font-size: 1.2rem;
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
}

.mobile-menu-toggle span {
    width: 2rem;
    height: 2px;
    background: #e2e8f0;
    transition: var(--transition-normal);
    border-radius: var(--radius-xs);
}

.mobile-menu-toggle span:nth-child(1) {
    margin-bottom: 0.4rem;
}

.mobile-menu-toggle span:nth-child(3) {
    margin-top: 0.4rem;
}

.mobile-menu-toggle:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.mobile-menu-toggle:hover span {
    background: #10b981;
}

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

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

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

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 40rem;
    height: 100vh;
    background: rgba(16, 18, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(16, 185, 129, 0.2);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

.mobile-menu-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    margin-top: 8rem;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-logo-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.mobile-brand-text h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.mobile-brand-text p {
    color: #94a3b8;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.mobile-nav-list li {
    margin: 0;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-list a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    transform: translateX(1rem);
    border-color: rgba(16, 185, 129, 0.3);
}

.mobile-nav-list a i {
    font-size: 1.6rem;
    width: 2.5rem;
    text-align: center;
}

.mobile-social {
    padding: 2rem;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: var(--transition-normal);
    flex: 1;
    justify-content: center;
}

.mobile-social-link:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.mobile-social-link i {
    font-size: 1.6rem;
}

.mobile-cta {
    padding: 2rem;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.mobile-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 1.6rem;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.mobile-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.mobile-cta-button i {
    font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .header-inner {
        padding: 1rem 1.5rem;
    }
    
    .header-nav-list {
        gap: 0.4rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 1.3rem;
    }
    
    .header-cta {
        padding: 0.8rem 1.5rem;
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .header-nav,
    .header-actions .social-icons,
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.4rem;
    }
    
    .brand-logo {
        gap: 1rem;
    }
}

/* Animation for header elements */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header {
    animation: slideInDown 0.6s ease;
}

.header-brand,
.header-nav,
.header-actions {
    animation: slideInDown 0.6s ease;
}

.header-brand {
    animation-delay: 0.1s;
}

.header-nav {
    animation-delay: 0.2s;
}

.header-actions {
    animation-delay: 0.3s;
}
