/* Custom styles for Needles & Pins Alterations */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #243B66;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C49A3E;
}

/* Selection color */
::selection {
    background: rgba(196, 154, 62, 0.3);
    color: #fff;
}

/* Scroll reveal base - progressive enhancement, hidden by default via JS */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Active nav link */
.nav-active {
    color: #D4A84B !important;
}

/* Form focus styles */
input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar solid background on scroll */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212, 168, 75, 0.1);
}

/* Button ripple effect */
button::after,
a::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

/* Subtle gold glow on hover for cards */
.group:hover svg {
    filter: drop-shadow(0 0 8px rgba(212, 168, 75, 0.4));
}
