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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Product card hover */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-8px);
}

/* Filter button transition */
.filter-btn {
    transition: all 0.2s ease;
}
.filter-btn.active {
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

/* Modal animation */
#modalContent {
    transition: all 0.3s ease-out;
}
#modalContent.active {
    transform: scale(1);
    opacity: 1;
}

/* Brand card hover */
.brand-card {
    transition: all 0.3s ease;
}
.brand-card:hover {
    transform: translateY(-4px);
}

/* PDF section code styling */
code {
    word-break: break-all;
}

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

/* Mobile menu animation */
#mobileMenu {
    transition: all 0.2s ease-in-out;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}