/* Custom styles for Cave Run Boat Storage */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0c;
}
::-webkit-scrollbar-thumb {
    background: #2a2a2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a3a3e;
}

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #f0d48a;
}

/* Service card hover glow effect */
.service-card {
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    box-shadow: 0 0 40px rgba(201, 162, 39, 0.08);
}

.service-card:hover::after {
    opacity: 1;
}

/* Feature row hover */
.feature-row {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-row:hover {
    transform: translateX(4px);
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Fade-in animation for below-fold content */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .service-card,
    .feature-row {
        transition: none;
    }
    .service-card:hover {
        transform: none;
    }
    .feature-row:hover {
        transform: none;
    }
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #121214 inset !important;
    -webkit-text-fill-color: #f3f4f6 !important;
    caret-color: #f3f4f6;
}

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

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}
