/* Custom Styles for Cindy's Quilting & Designs */

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

body {
    background-color: #011c16;
    color: #fdfbf7;
}

/* Selection color */
::selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: #fdfbf7;
}

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

::-webkit-scrollbar-track {
    background: #011c16;
}

::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.5);
}

/* Reveal animations - progressive enhancement */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Navbar styles */
#navbar.scrolled {
    background-color: rgba(1, 28, 22, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions */
a, button {
    transition: all 0.3s ease;
}

/* Button hover lift effect */
button:hover,
a:hover {
    transform: translateY(-2px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* Gold accent line animation */
.w-24.h-px.bg-gold-400\/40 {
    transition: width 0.5s ease;
}

/* Gallery item hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Custom focus visible for accessibility */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #navbar,
    #mobileMenu,
    button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }
}
