/* ============================================
   Neuhart Cards & Sports Collectibles
   Custom Styles
   ============================================ */

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

::selection {
    background-color: rgba(45, 138, 87, 0.2);
    color: #0B2B18;
}

/* --- Blob Animations --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blob-float 20s ease-in-out infinite;
}

.blob--green {
    background-color: #2D8A57;
}

.blob--gold {
    background-color: #D4A843;
}

.blob--coral {
    background-color: #E07A5F;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

/* --- Floating Cards Animation --- */
@keyframes float {
    0%, 100% { transform: rotate(12deg) translateY(0px); }
    50% { transform: rotate(12deg) translateY(-15px); }
}

@keyframes float-delayed {
    0%, 100% { transform: rotate(-6deg) translateY(0px); }
    50% { transform: rotate(-6deg) translateY(-12px); }
}

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

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

/* --- Marquee --- */
.marquee-track {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 8px;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-content:nth-child(2) {
    animation-delay: -15s;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header Scroll State --- */
#site-header.scrolled {
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(11, 43, 24, 0.08), 0 4px 20px rgba(11, 43, 24, 0.06);
}

#site-header.scrolled .nav-link {
    color: #1F5C3B;
}

#site-header.scrolled .nav-link:hover {
    background-color: rgba(45, 138, 87, 0.08);
    color: #0B2B18;
}

/* --- Nav Link Hover --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #D4A843;
    border-radius: 1px;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* --- Mobile Menu --- */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-link {
    display: block;
}

/* --- Back to Top --- */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 138, 87, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: #94A3B8;
}

/* --- Smooth Image Loading --- */
img {
    display: block;
    max-width: 100%;
}

/* --- Focus Visible --- */
*:focus-visible {
    outline: 2px solid #2D8A57;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Responsive Tweaks --- */
@media (max-width: 640px) {
    .font-display {
        word-break: break-word;
    }
}

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