/* Custom styles to complement Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6ea;
}
::-webkit-scrollbar-thumb {
    background: #e85521;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d94016;
}

/* Service card stagger animation */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Testimonial card animation */
.testimonial-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

/* Area card animation */
.area-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .testimonial-card,
    .area-card {
        transition: none;
    }
    .animate-bounce {
        animation: none;
    }
    .animate-pulse {
        animation: none;
    }
}

/* Mobile menu open state */
.mobile-menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 6px;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hero image float animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Geometric decoration rotations */
@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.slow-rotate {
    animation: slow-rotate 30s linear infinite;
}

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

/* Selection color */
::selection {
    background: #fce4d9;
    color: #731c0b;
}
