/* Custom Styles for Surplus Industrial */

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

/* Base font settings */
body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Display font */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Stat card floating animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

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

.stat-card.card-1 { animation: float-1 4s ease-in-out infinite; }
.stat-card.card-2 { animation: float-2 4.5s ease-in-out infinite 0.5s; }
.stat-card.card-3 { animation: float-3 3.5s ease-in-out infinite 0.25s; }
.stat-card.card-4 { animation: float-4 5s ease-in-out infinite 0.75s; }

/* Product card hover effect */
.product-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s ease;
}

#mobileMenu.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenu.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobileMenu.active .menu-line:nth-child(3) {
    width: 6;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* For reduced motion preference, ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .stat-card {
        animation: none;
    }
}

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

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

/* Selection color */
::selection {
    background: #C45729;
    color: white;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #C45729;
    outline-offset: 2px;
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.active {
    max-height: 400px;
}

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