/* Header Styles */
.ai-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ai-nav {
    width: 100%;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.scrolled .ai-nav {
    padding: 10px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.scrolled .logo-img {
    height: 35px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--wd-heading-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--wd-primary-color);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--wd-primary-color);
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    height: 100%;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-link {
    color: var(--wd-heading-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--wd-primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--wd-primary-color), var(--wd-primary-color-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-actions .btn {
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-actions .btn-primary {
    background: linear-gradient(90deg, var(--primary), #4ECDC4);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.nav-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--wd-primary-rgb), 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 81px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    .nav-links.active {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 0px 20px 20px 20px;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link {
        padding: 12px 0;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 1rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    /* Stagger animation for menu items */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }
}