/* Custom styles for Jag Motorsport */

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

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

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

::-webkit-scrollbar-thumb {
    background: #0f2038;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #163050;
}

/* Selection color */
::selection {
    background: #22c55e;
    color: #0a1525;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 248, 240, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 0 rgba(15, 32, 56, 0.08) !important;
}

/* Mobile menu transitions */
.mobile-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(15, 32, 56, 0.06);
}

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

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #22c55e 0%, #86efac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse ring animation */
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(253, 248, 240, 1) inset !important;
    -webkit-text-fill-color: #0f2038 !important;
}

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

/* Card hover glow effect */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Subtle pattern overlay for hero */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 32, 56, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}
