/* Custom Styles for Melvins Cabinet Installations */

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

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

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

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

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

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Lato:wght@300;400;700&display=swap');

/* Custom Font Families */
.font-cinzel {
    font-family: 'Cinzel', serif;
}

.font-lato {
    font-family: 'Lato', sans-serif;
}

/* Gradient Text Utility */
.text-transparent {
    -webkit-background-clip: text;
    background-clip: text;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Delay Classes */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .bg-slate-900 {
        background-color: Canvas;
    }
    
    .text-slate-200 {
        color: CanvasText;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .group:hover .group-hover\\:scale-110 {
        transform: scale(1);
    }
    
    .group:hover .group-hover\\:opacity-100 {
        opacity: 0.7;
    }
}

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

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

/* Navbar Scroll Effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Service Card Hover Effect */
.group:hover {
    transform: translateY(-8px);
}

/* Image Loading Placeholder */
img {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

img.loaded {
    animation: none;
    background: none;
}

/* Gold Accent Animations */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(217, 119, 6, 0.6);
    }
}

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