/* Custom Styles for Eli's Clean Homes */

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

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C5A028;
}

/* Gold Text Shadow */
.text-glow {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Sparkle Animation */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

.sparkle {
    position: absolute;
    color: #D4AF37;
    animation: sparkle 3s ease-in-out infinite;
    pointer-events: none;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #D4AF37 0%, #F5E6A0 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Glow Effect */
.hover-glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* Input Autofill Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Selection Color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: white;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Mobile Menu Animation */
.mobile-menu-enter {
    transform: translateX(100%);
}

.mobile-menu-enter-active {
    transform: translateX(0);
    transition: transform 0.3s ease-out;
}

.mobile-menu-exit {
    transform: translateX(0);
}

.mobile-menu-exit-active {
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
}

/* Image Hover Zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Button Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 200%;
    height: 200%;
}

/* Navbar Glass Effect */
.glass-nav {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Card Hover Lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

/* Pulse Animation for CTA */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
}

.pulse-gold {
    animation: pulse-gold 2s infinite;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-serif {
        letter-spacing: 0.02em;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Date Input Customization */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-inner-spin-button {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Number Input Customization */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    filter: invert(1);
}

/* Checkbox Customization */
input[type="checkbox"]:checked {
    background-color: #D4AF37;
    border-color: #D4AF37;
}

/* Calendar Day Styles */
.calendar-day {
    transition: all 0.2s ease;
}

.calendar-day:hover:not(.disabled) {
    background-color: rgba(212, 175, 55, 0.2);
}

.calendar-day.selected {
    background-color: #D4AF37;
    color: #0a0a0a;
    font-weight: bold;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Form Success Animation */
@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.checkmark-animation {
    animation: checkmark 0.5s ease-out forwards;
}

/* Price Highlight */
#price-estimate {
    transition: all 0.3s ease;
}

#price-estimate.updated {
    transform: scale(1.05);
    color: #F5E6A0;
}

/* Service Package Highlight */
.service-package-card {
    transition: all 0.3s ease;
}

.service-package-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}