/* Button hover effects */
.btn-hover-shine {
    position: relative;
    overflow: hidden;
}

.btn-hover-shine:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    opacity: 0;
    transform: rotate(30deg);
    background: rgba(255, 255, 255, 0.13);
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0.13) 0%,
        rgba(255, 255, 255, 0.13) 77%,
        rgba(255, 255, 255, 0.5) 92%,
        rgba(255, 255, 255, 0.0) 100%
    );
}

.btn-hover-shine:hover:after {
    opacity: 1;
    left: 130%;
    transition: all 0.7s ease;
}

.btn-hover-shine:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-hover-primary:hover {
    background-color: #1967d2 !important;
    color: white !important;
}

.btn-hover-danger:hover {
    background-color: #dc3545 !important;
    color: white !important;
}

/* Logo Animation */
.logo-animation {
    display: inline-block;
    transition: transform 0.5s ease;
}

.logo-animation:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo-animation img {
    transition: transform 0.4s ease-in-out;
}

.logo-animation:hover img {
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

/* Active Navigation Item */
.header-style-light .nav-item-active .nav-link-animation,
.header-style-light .nav-link-animation.active {
    font-weight: 600;
}

.header-style-light .nav-item-active .nav-link-animation::after,
.header-style-light .nav-link-animation.active::after {
    width: 70%;
    opacity: 1;
    background-color: #1c8ffb; /* Blue underline */
    height: 3px;
    bottom: 3px; /* Closer to the text */
}

.header-style-light.sticky-header.is-fixed .nav-item-active .nav-link-animation::after,
.header-style-light.sticky-header.is-fixed .nav-link-animation.active::after {
    background-color: #1c8ffb; /* Keep the same blue underline when scrolled */
}

/* Navigation Link Animation */
.nav-link-animation {
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem !important;
}

.nav-link-animation::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 3px; /* Closer to the text */
    left: 50%;
    background-color: #1c8ffb;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.header-style-light .nav-link-animation:hover::after {
    background-color: #1c8ffb; /* Blue underline for hover */
    width: 70%;
    opacity: 1;
}

.header-style-light.sticky-header.is-fixed .nav-link-animation:hover::after {
    background-color: #1c8ffb; /* Keep the same blue underline when scrolled */
}

.nav-link-animation:active {
    transform: scale(0.97);
}

/* Additional hover effects for navigation items */
.navbar-nav li a {
    transition: all 0.3s ease;
}

.navbar-nav li:hover {
    background-color: rgba(69, 151, 203, 0.05);
}

/* Enhanced dropdown menu animation */
.sub-menu {
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.has-child:hover > .sub-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Header animation on scroll */
.sticky-header {
    transition: all 0.3s ease;
}

.sticky-header.is-fixed {
    animation: slideDown 0.5s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Compact header when scrolling */
.sticky-header.is-fixed .main-bar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.sticky-header.is-fixed .logo-header {
    height: 90px !important;
    transition: height 0.3s ease;
}

.sticky-header.is-fixed .logo-header img {
    /* max-height: 65px; */
    width: auto;
}

.sticky-header.is-fixed .logo-header-inner {
    display: flex;
    align-items: center;
    height: 100%;
}

.sticky-header.is-fixed .header-nav .nav > li > a {
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

.sticky-header.is-fixed .extra-nav {
    padding: 20px 0 !important;
}

.sticky-header.is-fixed .navbar-toggler {
    margin: 23px 0 !important;
}

/* Make sure both logo images are properly sized */
.logo-header img.default-scroll-show,
.logo-header img.on-scroll-show {
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

/* .sticky-header:not(.is-fixed) .logo-header img.default-scroll-show,
.sticky-header:not(.is-fixed) .logo-header img.on-scroll-show {
    max-height: 80px;
} */

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

/* Mobile menu toggle button animation */
#mobile-side-drawer {
    transition: all 0.3s ease;
}

#mobile-side-drawer:hover {
    transform: rotate(90deg);
}

#mobile-side-drawer .icon-bar {
    transition: all 0.3s ease;
}

#mobile-side-drawer:hover .icon-bar-first {
    transform: translateY(1px);
}

#mobile-side-drawer:hover .icon-bar-three {
    transform: translateY(-1px);
}

/* Make nav animations more responsive */
@media (max-width: 991px) {
    .nav-link-animation::after {
        left: 0;
        transform: none;
    }
    
    .nav-link-animation:hover::after {
        width: 40%;
    }
    
    .nav-item-active .nav-link-animation::after,
    .nav-link-animation.active::after {
        width: 40%;
    }
    
    .sticky-header.is-fixed .header-nav .nav > li > a {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    .sticky-header.is-fixed .logo-header {
        height: 70px !important;
    }
    
    .sticky-header.is-fixed .logo-header img {
        max-height: 55px;
    }
}
