/* Custom Styles for Dishwasher Repair & Service */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #fbbf24, #db3b6a);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #fcd34d, #ec6c91);
}

/* Navbar Styles */
.navbar-scrolled {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Gold Text Gradient */
.text-gold-gradient {
    background: linear-gradient(135deg, #fcd34d, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Button Glow Effects */
.btn-glow-amber {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.btn-glow-amber:hover {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.5);
}

.btn-glow-plum {
    box-shadow: 0 0 20px rgba(219, 59, 106, 0.3);
    transition: all 0.3s ease;
}

.btn-glow-plum:hover {
    box-shadow: 0 0 40px rgba(219, 59, 106, 0.5);
}

/* Animated Background Pattern */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Animation for Badge */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
}

.pulse-badge {
    animation: pulse-glow 2s infinite;
}

/* Input Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

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

@media (min-width: 641px) and (max-width: 1024px) {
    .font-serif {
        font-size: 4rem;
    }
}

@media (min-width: 1025px) {
    .font-serif {
        font-size: 5rem;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(10, 10, 15, 0.3);
    border-top-color: #0a0a0f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Print Styles */
@media print {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    nav, footer {
        display: none;
    }
}
