/* Custom styles for J M Lannan Excavation website */

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

/* Navigation text color transitions */
.nav-text {
    transition: color 0.3s ease;
}

/* Ensure hero content is always visible */
.hero-overlay {
    background: linear-gradient(135deg, rgba(16, 30, 46, 0.85) 0%, rgba(36, 52, 72, 0.7) 50%, rgba(16, 30, 46, 0.8) 100%);
}

/* Gold gradient text effect */
.gold-gradient-text {
    background: linear-gradient(135deg, #f5b707 0%, #e0a800 50%, #c78800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(16, 30, 46, 0.15);
}

/* CTA button styling */
.cta-button {
    background: linear-gradient(135deg, #e0a800 0%, #f5b707 50%, #c78800 100%);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(224, 168, 0, 0.4);
}

/* Service icon styling */
.service-icon {
    background: linear-gradient(135deg, #fff3c4 0%, #ffe896 100%);
}

/* Float animation for scroll indicator */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e0a800, #c78800);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c78800, #a66800);
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #e0a800;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(180deg, rgba(16, 30, 46, 0.9) 0%, rgba(16, 30, 46, 0.7) 100%);
    }
}
