/* Custom styles for Vida Verde */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric decorative elements */
.geometric-shape {
    position: absolute;
    pointer-events: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #266d42;
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: translateY(-10px) rotate(var(--rotation, 0deg));
    }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-card:nth-child(3) {
    animation-delay: 1s;
}

/* Pulse animation for badge */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(61, 138, 90, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(61, 138, 90, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(61, 138, 90, 0);
    }
}

.pulse-dot {
    animation: pulse-ring 2s infinite;
}

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

/* Navbar scroll effect */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #3d8a5a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    nav,
    .animate-bounce,
    .floating-card {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
