/* Custom styles for Fazzino's Pool Service and Repair */

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f1e;
}
::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b965;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #ffffff;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 15, 30, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Mobile menu button animation */
.menu-open .menu-line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .menu-line-2 {
    opacity: 0;
}
.menu-open .menu-line-3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #e0cc8a, #c9a84c, #e0cc8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.service-card:hover {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.1);
}

/* Image hover zoom */
.gallery-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-img:hover {
    transform: scale(1.05);
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Select dropdown styling */
select option {
    background: #0d1529;
    color: #ffffff;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}
