/* Custom CSS for Gerald Farr General Contractor */

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

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

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

::-webkit-scrollbar-thumb {
    background: #0a1628;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4a017;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Utility classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Geometric shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Hero overlay gradient */
.hero-overlay {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(15, 33, 64, 0.85) 50%, rgba(20, 45, 88, 0.78) 100%);
}

/* Gold accent bar */
.gold-accent-bar {
    background: linear-gradient(90deg, #d4a017, #e8b82a, #d4a017);
    height: 4px;
    width: 80px;
    border-radius: 2px;
}

/* Service card hover effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.15);
}

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

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.4);
}

/* Navigation link underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #d4a017, #e8b82a);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Geometric pattern background */
.geometric-pattern {
    background-image: 
        linear-gradient(45deg, rgba(212, 160, 23, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(212, 160, 23, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(212, 160, 23, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(212, 160, 23, 0.05) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card,
    .cta-button {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .gold-accent-bar {
        width: 60px;
    }
}
