/* ========================================
   Rockstar Records Centralia — Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
    background: #C0603A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a84e2e;
}

/* ========================================
   Hero Floating Cards Animation
   ======================================== */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.card-top-right {
    animation-delay: 0s;
}

.card-bottom-left {
    animation-delay: 1.3s;
}

.card-mid-right {
    animation-delay: 2.6s;
}

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

/* ========================================
   Hero Background Shapes
   ======================================== */
.hero-shape {
    transition: transform 0.6s ease-out;
}

.shape-1 {
    animation: drift-slow 8s ease-in-out infinite;
}
.shape-2 {
    animation: drift-slow 10s ease-in-out infinite reverse;
}
.shape-3 {
    animation: drift-medium 6s ease-in-out infinite;
}
.shape-4 {
    animation: drift-slow 12s ease-in-out infinite;
}
.shape-5 {
    animation: drift-medium 7s ease-in-out infinite reverse;
}

@keyframes drift-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -10px) rotate(2deg); }
    66% { transform: translate(-10px, 15px) rotate(-1deg); }
}

@keyframes drift-medium {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -15px) rotate(5deg); }
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Navigation
   ======================================== */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(192, 96, 58, 0.1);
}

/* ========================================
   Mobile Menu
   ======================================== */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* ========================================
   Inventory Cards
   ======================================== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Button Hover Effects
   ======================================== */
a {
    text-decoration: none;
}

/* ========================================
   Image aspect ratios
   ======================================== */
img {
    max-width: 100%;
    height: auto;
}

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

/* ========================================
   Reduced motion
   ======================================== */
@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;
    }
}

/* ========================================
   Responsive adjustments
   ======================================== */
@media (max-width: 640px) {
    .floating-card {
        display: none;
    }
}

/* ========================================
   Selection color
   ======================================== */
::selection {
    background-color: #C0603A;
    color: white;
}
