/* Custom styles for Hardin Harness */

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

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

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

::-webkit-scrollbar-thumb {
    background: #d95a42;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #f7d0c7;
    color: #6c261c;
}

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

/* Navbar glass effect when scrolled */
nav.scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse animation for badge */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

#mobile-menu.open {
    max-height: 400px;
}

/* Card hover lift effect */
.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Button focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d95a42;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Ensure all images have proper aspect ratio handling */
img {
    max-width: 100%;
    height: auto;
}

/* Custom border radius utilities */
.rounded-\[2rem\] {
    border-radius: 2rem;
}

.rounded-\[3rem\] {
    border-radius: 3rem;
}

/* Print styles */
@media print {
    nav,
    #mobile-menu-btn,
    .group-hover\:-translate-y-1 {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
}
