/* Custom CSS for Suds & Bubbles Laundromat */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0ea5e9, #d946ef);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0284c7, #c026d3);
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

/* Bubble Animations */
.bubble {
    position: absolute;
    border-radius: 50%;
    animation: float-up 15s infinite ease-in;
}

.bubble-1 {
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.bubble-2 {
    left: 30%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.bubble-3 {
    left: 50%;
    animation-duration: 10s;
    animation-delay: 4s;
}

.bubble-4 {
    left: 70%;
    animation-duration: 18s;
    animation-delay: 1s;
}

.bubble-5 {
    left: 90%;
    animation-duration: 14s;
    animation-delay: 3s;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Hover Effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.2);
}

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

/* Button Shine Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-shine:hover::after {
    left: 100%;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pulse Animation for Live Status */
.pulse-live {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Order Status Timeline */
.timeline-line {
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-line-progress {
    position: absolute;
    left: 20px;
    top: 40px;
    width: 2px;
    background: linear-gradient(to bottom, #0ea5e9, #d946ef);
    transition: height 0.5s ease;
}

/* Price Tag */
.price-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0 4px 4px 0;
}

.price-tag::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 8px 14px 0;
    border-color: transparent #0ea5e9 transparent transparent;
}

/* Dark mode adjustments */
.dark .price-tag::before {
    border-color: transparent #0ea5e9 transparent transparent;
}

/* Service Category Icons */
.category-icon {
    transition: all 0.3s ease;
}

.service-item:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Form Focus States */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Map Container */
.map-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(217, 70, 239, 0.1) 100%);
    pointer-events: none;
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: #0ea5e9;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
}

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

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bubble {
        display: none;
    }
}