/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #b91c1c; /* Brand Red */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B0000; /* Darker Red */
}

/* Selection Color */
::selection {
    background-color: #fbbf24; /* Brand Gold */
    color: #051024; /* Brand Navy */
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Premium Hover Effects */
.hover-underline-animation {
    display: inline-block;
    position: relative;
    color: #0087ca;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fbbf24;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Custom Utilities that Tailwind might miss or for specific overrides */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.text-shadow-md {
    text-shadow: 0 4px 8px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
}

.bg-brand-gradient {
    background: linear-gradient(135deg, #051024 0%, #0a1f44 100%);
}

/* Fix for mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Dropdown Animation */
.group:hover .group-hover\:visible {
    visibility: visible;
    opacity: 1;
    transform: scale(100%);
}
