/* Custom styles for Kevin's Koncrete */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f5ee;
}
::-webkit-scrollbar-thumb {
    background: #8fba76;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a7d32;
}

/* Selection color */
::selection {
    background: #4a7d32;
    color: #faf9f5;
}

/* Service card stagger animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }
    
    .service-card:hover {
        transform: translateY(-4px);
    }
    
    .gallery-item {
        opacity: 1;
    }
    
    .testimonial-card {
        opacity: 1;
    }
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle, rgba(74, 125, 50, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #4a7d32, #8fba76);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(30, 51, 20, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

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

/* Pulse animation for hero badge */
@keyframes subtle-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(-12px) rotate(45deg);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) rotate(12deg);
    }
    50% {
        transform: translateY(-8px) rotate(12deg);
    }
}

/* Apply floating to geometric shapes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-weight: 600;
    }
}
