/* Custom Styles for Johnnie's Upholstery */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #064e3b);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f3e5ab, #10b981);
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
}

/* Floating Animation for Cards */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

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

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

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

/* Mobile Menu Transitions */
.mobile-link {
    transition: all 0.3s ease;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Image Loading Placeholder */
img {
    background: linear-gradient(135deg, #111816, #0a0f0d);
}

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

/* Print Styles */
@media print {
    nav,
    #contact-form,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Tablet Styles */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .border-luxury-gold/10 {
        border-color: rgba(212, 175, 55, 0.5);
    }
    
    .text-luxury-cream/60 {
        color: rgba(253, 246, 227, 0.9);
    }
}
