/* Custom styles for Madfos Metals */

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

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Stagger children */
.reveal-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(120, 31, 42, 0.08);
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f7;
}
::-webkit-scrollbar-thumb {
    background: #d4ccc0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b5aa98;
}

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

.service-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card hover */
.rounded-3xl.bg-warm-50:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Product card image */
.aspect-square img {
    transition: transform 0.5s ease;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -8px); }
}

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}
