/* ProveAIble Standard Navigation - Fixed Version */

/* Navigation Base */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(7, 13, 90, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: center;
    height: 80px;
    gap: 40px;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-logo img {
    height: 40px;
    width: auto;
}

/* Center section */
.navbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Menu - Desktop */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-link {
    color: #070D5A;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    white-space: nowrap;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3543F0;
    transition: width 0.3s ease;
}

.navbar-link:hover,
.navbar-link.active {
    color: #3543F0;
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

/* Right Side - Buttons and Hamburger */
.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

/* Buttons - Always Visible */
.navbar-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-btn {
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-btn-ghost {
    color: #070D5A;
    background: transparent;
    border: 1.5px solid #070D5A;
}

.navbar-btn-ghost:hover {
    background: #070D5A;
    color: white;
    transform: translateY(-1px);
}

/* Join Button with Sparkle Effect */
.navbar-btn-primary {
    background: #BE123C;
    color: white;
    border: 1.5px solid #BE123C;
    position: relative;
    overflow: hidden;
}

.navbar-btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    animation: sparkle 3s infinite;
}

@keyframes sparkle {
    0% { transform: rotate(45deg) translateX(-200%); }
    100% { transform: rotate(45deg) translateX(200%); }
}

.navbar-btn-primary:hover {
    background: #9F1239;
    border-color: #9F1239;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.2);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: #070D5A;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Mobile Styles */
@media (max-width: 900px) {
    .navbar-container {
        padding: 0 20px;
        grid-template-columns: auto 1fr auto;
        gap: 20px;
    }
    
    /* Hide desktop menu by default */
    .navbar-menu {
        display: none !important;
    }
    
    /* Show menu when active */
    .navbar-menu.active {
        display: flex !important;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 250, 0.98);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            transform: translateY(-10px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    /* Mobile menu links */
    .navbar-link {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    
    .navbar-link:hover {
        background: rgba(53, 67, 240, 0.05);
    }
    
    .navbar-link::after {
        display: none;
    }
    
    /* Show hamburger */
    .navbar-toggle {
        display: flex !important;
    }
    
    /* Center the hamburger on mobile */
    .navbar-center {
        position: relative;
        flex: 1;
    }
    
    /* Keep buttons visible but smaller on very small screens */
    .navbar-buttons {
        gap: 8px;
    }
    
    .navbar-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0 16px;
    }
    
    .navbar-logo img {
        height: 36px;
    }
    
    .navbar-right {
        gap: 12px;
    }
    
    .navbar-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}