/* Custom styles for Shine Time Home Services */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
    background: #6d28d9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Selection color */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: #f1f1f4;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-in-up:nth-child(2) { animation-delay: 0.2s; }
 animate-fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* Gold shimmer effect for accent elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Service card hover glow */
.group:hover .group-hover\:from-plum-600\/30 {
    box-shadow: 0 0 30px rgba(109, 40, 217, 0.15);
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobileMenu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Mobile link transitions */
.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    padding-left: 8px;
}

/* Input autofill override for dark theme */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a0a0f inset !important;
    -webkit-text-fill-color: #f1f1f4 !important;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

/* Subtle gradient border animation on CTA buttons */
@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.4); }
}

/* Print styles */
@media print {
    nav, #contact, footer { display: none; }
    body { background: white; color: black; }
    section { padding: 20px 0; }
}
