/* Navbar Bootstrap */
.navbar {
    background-color: var(--color-primary) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700 !important;
    color: var(--color-background) !important; /* Almond Cream on Prussian Blue */
}

.navbar-nav .nav-link {
    color: rgba(234, 224, 213, 0.8) !important; /* Almond Cream with opacity */
    font-weight: 500;
    position: relative; /* Needed for the underline positioning */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-accent) !important; /* Light Caramel on hover */
}

/* Underline effect for active/hover state */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 6px; /* Positioned slightly above the bottom edge of the link container */
    left: 50%;
    background-color: var(--color-accent);
    transition: width 0.3s ease-in-out;
    transform: translateX(-50%);
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Optional: Also show on hover for better UX */
.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Toggler icon adjustment for dark background */
.navbar-toggler {
    border-color: rgba(234, 224, 213, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28234, 224, 213, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Centered Navigation Layout */
@media (min-width: 992px) {
    .navbar-nav.centered-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        justify-content: center;
    }
    
    /* Ensure container is relative for absolute positioning context */
    .navbar .container {
        position: relative;
    }
    
    /* Push button to the right explicitly */
    .navbar-collapse {
        justify-content: flex-end;
    }
}

/* Specific CTA Button in Navbar - Enhanced Design */
.navbar .btn-primary {
    background: linear-gradient(135deg, #FBB673 0%, #ffe0b5 100%) !important; /* Gold-ish gradient */
    color: #102542 !important; /* Prussian Blue text */
    box-shadow: 0 4px 15px rgba(251, 182, 115, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    padding: 0.4rem 1.2rem; /* Reduced dimensions */
    font-size: 0.9rem; /* Slightly smaller text */
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 12px !important;
}

/* Shine effect on hover */
.navbar .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(251, 182, 115, 0.6), 0 0 40px rgba(251, 182, 115, 0.3); /* Glowing effect */
    background: linear-gradient(135deg, #ffe0b5 0%, #FBB673 100%) !important; /* Reversed gradient on hover */
    color: #102542 !important;
    border-color: rgba(255, 255, 255, 0.5);
}

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