/* Custom styles for Universe Kitchen Repair */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom selection color */
::selection {
    background-color: #fbbf24;
    color: #581c87;
}

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

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

/* Header scroll state */
#main-header.scrolled {
    background: rgba(250, 245, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(126, 34, 206, 0.08);
}

/* Scroll-triggered animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* Back to top button */
#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* Service card hover glow */
.group:hover .rounded-2xl {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #faf5ff inset !important;
    -webkit-text-fill-color: #581c87 !important;
}

/* Subtle pattern for hero */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(147, 51, 234, 0.04) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Remove from main sections that have their own bg */
section.bg-white::before,
section.bg-plum-50::before,
section.bg-gradient-to-br::before {
    display: none;
}
