/* Custom styles for Murray's Dive and Boat Services */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

/* Mobile menu animation */
.mobile-menu-open #line1 {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open #line2 {
    opacity: 0;
}

.mobile-menu-open #line3 {
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu-open #mobile-menu {
    opacity: 1;
    visibility: visible;
}

/* Selection color */
::selection {
    background: #c9a84c;
    color: #102a43;
}

/* Image hover zoom for gallery */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

/* Custom select styling */
select option {
    padding: 8px;
}

/* Button ripple effect */
button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

button:active::after {
    opacity: 1;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #102a43 0%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
