/* ===== Custom Styles for Queen Of Clean ===== */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7c9bc0;
}

/* Selection color */
::selection {
    background: #f4c03d;
    color: #0f2138;
}

/* ===== Navbar Scroll Effect ===== */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(15, 33, 56, 0.08);
}

#navbar.scrolled .font-display {
    color: #0f2138 !important;
}

#navbar.scrolled .text-navy-700 {
    color: #0f2138 !important;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f4c03d, #e8a820);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(15, 33, 56, 0.1);
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

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

.floating-card {
    animation: float 3s ease-in-out infinite;
}

/* ===== Gold shimmer on hover ===== */
.shimmer-hover:hover {
    background: linear-gradient(135deg, #f4c03d 0%, #e8a820 50%, #f4c03d 100%) !important;
    background-size: 200% 200% !important;
    animation: shimmer 2s ease infinite !important;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== 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;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* ===== Mobile responsive adjustments ===== */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem !important;
    }
    
    .testimonial-card {
        padding: 1.5rem !important;
    }
    
    /* Ensure touch targets are large enough */
    button, a {
        min-height: 44px;
    }
}

/* ===== Loading state for form ===== */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== Form input focus styles ===== */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(244, 192, 61, 0.2);
}
