/* Custom styles for Frog Level Used Auto Parts */

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

/* Base styles */
body {
    background-color: #0a1a2b;
    color: #f4fbf8;
}

/* Selection color */
::selection {
    background-color: rgba(74, 158, 140, 0.3);
    color: #f4fbf8;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1e4e45;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #327d6e;
}

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(10, 26, 43, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 158, 140, 0.1);
}

/* Hero section animations - only below the fold content */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll reveal - progressive enhancement with JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    img, .group-hover\:hover\:scale-105 {
        transition: none;
    }
    
    a:hover {
        transform: none;
    }
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Card hover effects */
.group:hover .group-hover\:bg-mint-500\/15 {
    background-color: rgba(74, 158, 140, 0.15);
}

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle glow effects */
.shadow-mint-500\/25 {
    box-shadow: 0 20px 40px -10px rgba(74, 158, 140, 0.25);
}

/* Loading state for images */
img {
    background: linear-gradient(135deg, #102a43 0%, #0a1a2b 100%);
}

/* Prevent layout shift */
img {
    content-visibility: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu, .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-midnight-950, .bg-midnight-900 {
        background: white !important;
    }
    
    .text-mint-50, .text-mint-100, .text-mint-200 {
        color: #1a1a1a !important;
    }
    
    .text-mint-400 {
        color: #333 !important;
    }
    
    .text-mint-500 {
        color: #666 !important;
    }
}
