/* County Line Bar — Custom Styles */

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

/* Selection Color */
::selection {
    background-color: rgba(240, 90, 32, 0.3);
    color: #fff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #f05a20;
}

/* Reveal Animations — Progressive Enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar Transition */
#navbar.scrolled {
    background-color: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(240, 90, 32, 0.1);
}

#navbar.scrolled .nav-link {
    color: #e2e2e2;
}

/* Mobile Menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Image Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #f05a20;
    outline-offset: 2px;
}

/* Button Ripple Effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Subtle Glow on Coral Elements */
.bg-coral-500 {
    box-shadow: 0 0 30px rgba(240, 90, 32, 0.15);
}

/* Card Hover Lift */
.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gradient Text Utility */
.text-gradient-coral {
    background: linear-gradient(135deg, #ff7a40, #f05a20);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Parallax-like Effect */
#hero {
    perspective: 1px;
}

/* Input Autofill Styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: #ffffff !important;
}
