/* Custom styles for Shoot the Bull */

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

/* Prevent content flash on load */
body {
    opacity: 1;
}

/* Navbar transition */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(48, 79, 35, 0.08);
}

/* Hero stat card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Staggered float for each card */
.absolute.right-0 > div:nth-child(1) {
    animation: float 4s ease-in-out infinite;
}
.absolute.right-0 > div:nth-child(2) {
    animation: float 4s ease-in-out infinite 0.5s;
}
.absolute.right-0 > div:nth-child(3) {
    animation: float 4s ease-in-out infinite 1s;
}

/* Scroll reveal base state (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
    background: #c7d9b4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9fbd82;
}

/* Selection color */
::selection {
    background: #c7d9b4;
    color: #1f3418;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #52803a;
    outline-offset: 2px;
    border-radius: 4px;
}
