/* ============================================
   Sunbelt Signs — Custom Styles
   ============================================ */

/* Base & Scroll */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(196, 149, 47, 0.3);
    color: #faf8f4;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040804;
}
::-webkit-scrollbar-thumb {
    background: #283b28;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d5c3b;
}

/* Animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation-name: fade-up;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: both;
}

@keyframes scroll-line {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, rgba(8, 15, 8, 0.6) 0%, rgba(4, 8, 4, 0.8) 100%);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    border-color: rgba(212, 168, 67, 0.2) !important;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5), 0 0 40px -10px rgba(196, 149, 47, 0.08);
}

/* Navbar */
#navbar.scrolled {
    background: rgba(4, 8, 4, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(250, 248, 244, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a843;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Gallery hover overlay */
.group .absolute.inset-0 {
    transition: opacity 0.5s ease;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid rgba(212, 168, 67, 0.6);
    outline-offset: 2px;
}

/* Select dropdown styling */
select option {
    background: #080f08;
    color: #faf8f4;
}

/* Smooth image loading */
img {
    loading: lazy;
}

/* Print styles */
@media print {
    #navbar, .animate-scroll-line {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
