/* Custom styles supplementing Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #faf5f2;
}
::-webkit-scrollbar-thumb {
    background: #b33d21;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8f311d;
}

/* Selection color */
::selection {
    background: #b33d21;
    color: #faf5f2;
}

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

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Mobile menu animations */
@media (max-width: 767px) {
    .mobile-menu {
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-3deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* Print styles */
@media print {
    nav, .mobile-menu, #menu-btn, #close-menu, #menu-overlay {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
