/* Custom styles that complement Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #9d174d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #be185d;
}

/* Selection color */
::selection {
    background: rgba(157, 23, 77, 0.3);
    color: #0f172a;
}

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

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

/* Mobile menu transitions */
@media (max-width: 767px) {
    .mobile-menu {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Subtle pulse for CTA buttons */
@keyframes pulse-amber {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(245, 158, 11, 0.6);
    }
}

.cta-btn {
    animation: pulse-amber 3s ease-in-out infinite;
}

.cta-btn:hover {
    animation: none;
}

/* Grid pattern background */
.grid-pattern {
    background-color: #f8fafc;
    background-image: radial-gradient(circle, rgba(157, 23, 77, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Card hover effects */
.card-hover {
    will-change: transform;
}

/* Image card zoom */
.image-card img {
    will-change: transform;
}

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