/* Navbar Styles */
.navbar {
    padding: 1.2rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        var(--accent-color), 
        var(--primary-color)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled::before {
    opacity: 1;
}

.navbar-brand {
    padding: 0;
    margin-right: 3rem;
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar.scrolled .navbar-brand img {
    height: 65px !important;
}

.navbar-nav {
    margin-left: auto;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color) !important;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem !important;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

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

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

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.social-icons::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

.social-icons a {
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-icons a:hover::before {
    transform: scale(1);
}

.social-icons a i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-icons a:hover i {
    color: var(--white);
    transform: scale(1.1);
}

.social-icons a:hover {
    text-decoration: none !important;
}

/* Botão do Menu Mobile */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    position: relative;
    background: transparent;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler .toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.navbar-toggler .toggler-icon:nth-child(1) {
    top: 30%;
}

.navbar-toggler .toggler-icon:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.navbar-toggler .toggler-icon:nth-child(3) {
    bottom: 30%;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* Menu Mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1.5rem;
        border-radius: 15px;
        border: 1px solid rgba(0, 102, 204, 0.1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        transform-origin: top;
        animation: slideIn 0.3s ease forwards;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-10px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .nav-item {
        opacity: 0;
        animation: fadeInUp 0.3s ease forwards;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .nav-item:nth-child(4) { animation-delay: 0.4s; }

    .social-icons {
        margin: 1.5rem 0 0 0;
        padding: 1.5rem 0 0 0;
        border-top: 1px solid rgba(0, 102, 204, 0.1);
        justify-content: center;
    }

    .social-icons::before {
        display: none;
    }
}

/* Efeito de destaque para itens importantes */
.nav-link.highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    border-radius: 50px;
    padding: 0.8rem 1.8rem !important;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link.highlight::before {
    display: none;
}

.nav-link.highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}
