/* Custom styles for Tilo's Concrete Pumping */

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

/* Navbar scroll state */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(159, 24, 24, 0.15);
}

/* Project card */
.project-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Testimonial card */
.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Decorative serif drop-cap style */
.font-serif {
    text-rendering: optimizeLegibility;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(185, 28, 28, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Custom selection color */
::selection {
    background: rgba(185, 28, 24, 0.15);
    color: #731212;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fefcfb inset !important;
    -webkit-text-fill-color: #1c1917 !important;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #b91c1c;
    outline-offset: 2px;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #e7e5e4 0%, #d6d3d1 100%);
}

/* Loading state for buttons */
button:active {
    transform: scale(0.98);
}

/* Mobile menu transition */
#mobileMenu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Decorative line */
.divider-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #b91c1c, #f9d0d0);
}

/* Subtle hover underline for links */
a:not([class]) {
    position: relative;
}

a:not([class]):after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: #b91c1c;
    transition: width 0.3s ease;
}

a:not([class]):hover:after {
    width: 100%;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}
