/* Estilos adicionais para o menu de navegação fixo */
#fixedNavbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark #fixedNavbar {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#fixedNavbar.show {
    transform: translateY(0);
}

#fixedNavbar.hide {
    transform: translateY(-100%);
}

/* Active navigation link styles */
.nav-link.active,
.mobile-nav-link.active {
    color: #1c7ed6 !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after,
.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1c7ed6;
    border-radius: 1px;
}

/* Enhanced mobile menu styles */
#mobileMenu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark #mobileMenu {
    background: rgba(17, 24, 39, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth transitions for all navigation elements */
.nav-link,
.mobile-nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before,
.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(28, 126, 214, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before,
.mobile-nav-link:hover::before {
    left: 100%;
}

/* Enhanced logo styles */
.navbar-logo {
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Scroll to Top Button Styles */
#scrollToTop {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #0b132b 0%, #1c7ed6 100%);
    box-shadow: 0 4px 20px rgba(11, 19, 43, 0.3);
}

#scrollToTop:hover {
    background: linear-gradient(135deg, #1c7ed6 0%, #0b132b 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(11, 19, 43, 0.4);
}

#scrollToTop:active {
    transform: translateY(-1px) scale(1.05);
}

#scrollToTop i {
    transition: all 0.3s ease;
}

#scrollToTop:hover i {
    transform: translateY(-2px);
}

/* Scroll indicator for active section */
.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #1c7ed6;
    transition: width 0.3s ease;
}

.nav-link:hover .scroll-indicator,
.mobile-nav-link:hover .scroll-indicator {
    width: 100%;
}

/* Enhanced button styles in navbar */
.navbar-cta {
    background: linear-gradient(135deg, #1c7ed6 0%, #0b132b 100%);
    box-shadow: 0 4px 15px rgba(28, 126, 214, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 126, 214, 0.4);
}

/* Improved scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced navbar animations */
#fixedNavbar {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    #fixedNavbar {
        padding: 0 1rem;
    }

    .navbar-logo span {
        font-size: 1rem;
    }

    #mobileMenu {
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }

    .mobile-nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        margin: 0.25rem 0;
    }

    /* Scroll to top button mobile */
    #scrollToTop {
        width: 3.5rem;
        height: 3.5rem;
        bottom: 1.25rem;
        left: 1rem;
    }
}

@media (max-width: 640px) {
    #fixedNavbar {
        padding: 0 0.75rem;
    }

    .navbar-logo span {
        display: none;
    }

    .navbar-logo .w-8.h-8 {
        width: 2rem;
        height: 2rem;
    }

    /* Scroll to top button small mobile */
    #scrollToTop {
        width: 3rem;
        height: 3rem;
        bottom: 1rem;
        left: 0.75rem;
    }

    #scrollToTop i {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Enhanced focus states for accessibility */
.nav-link:focus,
.mobile-nav-link:focus,
#scrollToTop:focus {
    outline: 2px solid #1c7ed6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading state for scroll to top */
#scrollToTop.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: scale(0.95);
}

#scrollToTop.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
