/* === Custom Styles for Bob's Car Color Inc. === */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #C9A84C, #9A7A30);
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #F9ECB6;
}

/* === Reveal Animations (progressive enhancement) === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Default state: visible for no-JS fallback */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

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

/* === Navbar scroll state === */
.navbar-scrolled {
    background: rgba(5, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Gold shimmer animation for hero badge === */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* === Pulse animation for status dot === */
@keyframes pulse-gold {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* === Floating animation for decorative elements === */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* === Button focus styles === */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* === Mobile menu transitions === */
#mobileMenu.menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* === Hero parallax-like subtle effect === */
#hero {
    will-change: transform;
}

/* === Gold gradient text utility === */
.text-gold-gradient {
    background: linear-gradient(135deg, #F9ECB6, #C9A84C, #B8943F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Card hover glow effect === */
.service-card-hover:hover {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.1);
}

/* === Input autofill styling for dark theme === */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0A1628 inset !important;
    -webkit-text-fill-color: #F9ECB6 !important;
    caret-color: #F9ECB6;
}

/* === Loading state for buttons === */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* === Utility: max-width constraints === */
.prose-text {
    max-width: 65ch;
}

/* === Print styles === */
@media print {
    nav, #contactForm, #successMessage, .reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .bg-navy-950, .bg-navy-900 {
        background: white !important;
    }
    .text-white, .text-gray-300, .text-gray-400 {
        color: black !important;
    }
}
