/* Custom styles for Coast 2 Coast Custom Painting */

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

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

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

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

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

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays */
.reveal[data-delay="100"] {
    transition-delay: 100ms;
}

.reveal[data-delay="200"] {
    transition-delay: 200ms;
}

.reveal[data-delay="300"] {
    transition-delay: 300ms;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Navbar scroll effect */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #ff7066, #ff5a44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 112, 102, 0.15);
}

/* Button focus states */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: none;
}

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

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

/* Form focus ring animation */
input:focus, select:focus, textarea:focus {
    animation: focusRing 2s ease-in-out infinite;
}

@keyframes focusRing {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(255, 112, 102, 0.2);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 112, 102, 0.1);
    }
}

/* Pulse animation for CTA */
@keyframes pulse-subtle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.pulse-hover:hover {
    animation: pulse-subtle 1s ease-in-out infinite;
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(90deg, #f6f6f7 25%, #e3e3e5 50%, #f6f6f7 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Custom selection color */
::selection {
    background: #ff7066;
    color: white;
}
