/* Custom Styles for Casa Agua Group S.A.S. */

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Parallax effect enhancement */
@media (min-width: 768px) {
    .parallax-bg {
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

/* Custom gradient backgrounds */
.gradient-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #B38B2D 100%);
}

.gradient-emerald {
    background: linear-gradient(135deg, #046307 0%, #034B05 100%);
}

/* Image hover effects */
.image-zoom-hover {
    overflow: hidden;
}

.image-zoom-hover img {
    transition: transform 0.5s ease;
}

.image-zoom-hover:hover img {
    transform: scale(1.1);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Custom button styles */
.btn-primary {
    background-color: #D4AF37;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #046307;
    transform: scale(1.05);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top: 3px solid #D4AF37;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* WhatsApp button pulse animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Form input focus effects */
input:focus, textarea:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

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

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

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

/* Timeline styles */
.timeline-dot {
    position: relative;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #D4AF37;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 1.75rem;
        line-height: 2rem;
    }
    h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    h3 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Accessibility improvements */
.focus-visible:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Success/Error messages animation */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message-alert {
    animation: slideInDown 0.3s ease-out;
}

/* Star rating styles */
.star-rating {
    color: #D4AF37;
}

/* Project grid hover effect */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Testimonial card styles */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Stats counter styles */
.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #D4AF37;
}

/* Hero section text shadow */
.hero-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
