/* Custom styles for Hugon Construction */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2D2D2D;
}
::-webkit-scrollbar-thumb {
    background: #FF6B4A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E85A3A;
}

/* Selection color */
::selection {
    background: #FF6B4A;
    color: #ffffff;
}

/* Header scroll effect */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero image parallax-like subtle effect */
#hero {
    background-attachment: fixed;
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Project card overlay transition */
.group .absolute {
    transition: opacity 0.3s ease;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    transition: max-height 0.3s ease;
}
#mobileMenu.open {
    max-height: 500px;
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in for service cards */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for CTA */
@keyframes pulse-coral {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 107, 74, 0); }
}
.cta-pulse:hover {
    animation: pulse-coral 1.5s infinite;
}

/* Project grid hover */
.project-card {
    overflow: hidden;
    position: relative;
}
.project-card img {
    transition: transform 0.6s ease;
}
.project-card:hover img {
    transform: scale(1.05);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Input focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #FF6B4A !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.1);
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
    
    .font-heading {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Print styles */
@media print {
    header, #contact, .cta-pulse {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
