/* Custom styles for Hometown Contracting & Renovations */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040a18;
}
::-webkit-scrollbar-thumb {
    background: #1c3d63;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4922e;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #f2d99a 0%, #d4922e 50%, #c2771f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service card shimmer effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 146, 46, 0.03), transparent);
    transition: left 0.6s ease;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card:hover::before {
    left: 100%;
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(4, 10, 24, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 146, 46, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gallery item hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 146, 46, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.75rem;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial card hover */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: rgba(212, 146, 46, 0.05);
    line-height: 1;
    pointer-events: none;
}

/* Pulse animation for CTA */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 146, 46, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 146, 46, 0);
    }
}

/* Fade in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection color */
::selection {
    background: rgba(212, 146, 46, 0.3);
    color: #f9edcc;
}

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

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .gallery-item,
    .testimonial-card,
    a,
    button {
        transition: none;
    }
    .gallery-item img {
        transition: none;
    }
    .gallery-item:hover img {
        transform: none;
    }
}
