/* Enhanced Navigation Hover Effect - Replace the existing nav hover styles */

/* Enhance existing navigation */
.nav-links a {
    position: relative;
    transition: all 0.3s ease;
    /* Add some padding to create space for the lines */
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

header.scrolled .nav-links a {
    padding: 22px 20px !important;
}

/* Remove the old ::after rule and replace with these new ones */

/* Top line */
.nav-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    top: 8px; /* Distance from top */
    left: 0;
    background-color: var(--primary-color);
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

/* Bottom line */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: 8px; /* Distance from bottom */
    left: 0;
    background-color: var(--primary-color);
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

/* Hover state - animate both lines */
.nav-links a:hover::before,
.nav-links a:hover::after,
.nav-links a.active::before,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Optional: Different animation directions for more dynamic effect */
.nav-links a::before {
    transform-origin: left;
}

.nav-links a::after {
    transform-origin: right;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleX(1);
    transform-origin: right;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Alternative version: Both lines animate from center (uncomment if you prefer this) */
/*
.nav-links a::before,
.nav-links a::after {
    transform-origin: center;
}

.nav-links a:hover::before,
.nav-links a:hover::after,
.nav-links a.active::before,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: center;
}
*/

/* Active state styling */
.nav-links a.active {
    color: var(--primary-light);
    font-weight: 600;
}

/* Mobile specific overrides */
@media (max-width: 992px) {
    /* Hide the decorative lines on mobile since we have different styling */
    .nav-links.mobile-active a::before,
    .nav-links.mobile-active a::after {
        display: none;
    }
    
    .nav-links.mobile-active a {
        padding: 15px 25px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links.mobile-active a:hover,
    .nav-links.mobile-active a.active {
        background-color: rgba(255, 255, 255, 0.05);
        padding-left: 30px !important;
    }
}

/* Scrolled state adjustments */
header.scrolled .nav-links a::before {
    top: 6px;
}

header.scrolled .nav-links a::after {
    bottom: 6px;
}