/* Custom styles for Spectrum Auto Wiring and Sound */

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

/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 252, 243, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
}

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

/* Scroll animation base - always visible by default */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Scroll animation hidden state - only applied via JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-animate.reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Hero parallax-like subtle movement */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Custom selection color */
::selection {
    background: rgba(4, 120, 87, 0.2);
    color: #047857;
}

/* Image hover effects */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Thin decorative line animation */
@keyframes growLine {
    from { width: 0; }
    to { width: 48px; }
}

/* Subtle gradient animation for hero */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Print styles */
@media print {
    nav, #contact-form, iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
