/* Custom styles for Mi Casa on Main */

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

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(52, 211, 153, 0.3); }
    50% { box-shadow: 0 0 40px rgba(52, 211, 153, 0.6); }
}

/* Apply animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #34d399;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

/* Image hover zoom effect */
img {
    transition: transform 0.3s ease;
}

/* Button ripple effect */
button,
a {
    transition: all 0.3s ease;
}

/* Section reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Geometric shape animations */
.geometric-shape {
    animation: float 8s ease-in-out infinite;
}

.geometric-shape:nth-child(2) {
    animation-delay: -2s;
}

.geometric-shape:nth-child(3) {
    animation-delay: -4s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .shadow-hard {
        box-shadow: 4px 4px 0px 0px rgba(20, 83, 45, 1);
    }
    
    .shadow-hard-hover {
        box-shadow: 6px 6px 0px 0px rgba(20, 83, 45, 1);
    }
}
