/* Custom styles for Backman Business Solutions */

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

/* Custom 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;
}

/* Scroll-triggered animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Hover effects for cards */
.group:hover .group-hover\:rotate-1 {
    transform: rotate(1deg);
}

/* Custom selection color */
::selection {
    background-color: #d14525;
    color: white;
}

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

/* Image hover zoom effect */
img {
    transition: transform 0.3s ease;
}

/* Newsletter/CTA hover effects */
a:hover {
    transition: all 0.3s ease;
}

/* Remove default button styles */
button {
    cursor: pointer;
}

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

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

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

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

/* Mobile menu animation */
#mobileMenu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobileMenu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Print styles */
@media print {
    nav, #contactForm, .group {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

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