body {
    font-family: 'Outfit', sans-serif;
}

/* Topbar Styles */
.topbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.topbar.scrolled {
    box-shadow: var(--box-shadow);
    border-bottom-color: var(--border-color);
}

.topbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

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

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

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-color-medium);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    padding: 0.625rem 1.25rem;
    color: var(--text-color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.nav-link:hover::before {
    width: 70%;
}

.nav-link.active {
    color: var(--primary-color);
    background-color: var(--secondary-color-dark);
}

.nav-link.active::before {
    width: 70%;
}

/* CTA Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-color-dark);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: var(--text-color-light);
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-color-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* User Menu */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--background-color-light);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    background: var(--background-color-light);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: block;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.875rem 1.25rem;
    color: var(--text-color-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
    border-top: 1px solid var(--border-color);
}

.dropdown-item:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .topbar-container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--background-color-light);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .logo-subtitle {
        display: none;
    }
}

@media (max-width: 768px) {
    .topbar-container {
        height: 70px;
    }

    .nav-menu {
        top: 70px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .logo-title {
        font-size: 1.25rem;
    }

    .btn-outline {
        display: none;
    }
}

@media (max-width: 640px) {
    .topbar-container {
        padding: 0 1rem;
        height: 64px;
    }

    .nav-menu {
        top: 64px;
        padding: 1.5rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

    .logo-title {
        font-size: 1.125rem;
    }

    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .mobile-toggle {
        padding: 0.375rem;
    }

    .mobile-toggle span {
        width: 24px;
        height: 2.5px;
    }
}

@media (max-width: 480px) {
    .topbar-container {
        padding: 0 0.75rem;
        height: 60px;
    }

    .nav-menu {
        top: 60px;
        padding: 1.25rem;
    }

    .nav-link {
        padding: 0.875rem 1rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .logo-title {
        font-size: 1rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .btn i {
        margin-right: 0.25rem;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .dropdown-menu {
        min-width: 200px;
        right: -0.5rem;
    }
}

@media (max-width: 360px) {
    .topbar-container {
        padding: 0 0.5rem;
        height: 56px;
    }

    .nav-menu {
        top: 56px;
        padding: 1rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .logo-title {
        font-size: 0.9375rem;
    }

    .btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.6875rem;
        min-height: 44px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-toggle {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-toggle span {
        width: 22px;
    }
}
