/* ============================================
   MBD Outdoor Power Equipment — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Custom font weights via Tailwind utilities */
.font-heading { font-family: 'Nunito', sans-serif; }
.font-body { font-family: 'Quicksand', sans-serif; }

/* Navbar */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

/* Hero Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-float {
    animation: float 6s ease-in-out infinite;
}

.float-1 { --rotation: 12deg; animation-duration: 7s; animation-delay: 0s; }
.float-2 { --rotation: 0deg; animation-duration: 5s; animation-delay: 1s; }
.float-3 { --rotation: 45deg; animation-duration: 8s; animation-delay: 0.5s; }
.float-4 { --rotation: 0deg; animation-duration: 6s; animation-delay: 2s; }
.float-5 { --rotation: 30deg; animation-duration: 4s; animation-delay: 1.5s; }

.hero-blob {
    animation: floatSlow 10s ease-in-out infinite;
}

.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: 3s; }
.blob-3 { animation-delay: 5s; }

/* Hero animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Service cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}

/* Mobile menu */
#mobile-menu {
    animation: fadeIn 0.3s ease;
}

/* Contact form */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Selection color */
::selection {
    background-color: rgba(255, 107, 74, 0.2);
    color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #c4c4cc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9e9eab;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
}
