/* Custom styles for Ranch Hand Awards and Gifts */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-scrolled .nav-subtext {
    color: rgba(251, 191, 177, 0.9) !important;
}

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal="left"] {
    opacity: 0;
    transform: translateX(-30px);
}

.reveal[data-reveal="right"] {
    opacity: 0;
    transform: translateX(30px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal.visible {
        transform: none;
    }
    
    .group:hover {
        transform: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #781f36;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9a2544;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(120, 31, 54, 0.15);
}

/* Selection color */
::selection {
    background: #781f36;
    color: white;
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #781f36 0%, #b76e79 50%, #781f36 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(120, 31, 54, 0.15);
}
