/* Custom Styles & Utilities */

:root {
    --primary: #1e5128;
    --secondary: #4e9f3d;
    --accent: #d8e9a8;
    --nature: #191a19;
}

html {
    scroll-behavior: smooth;
}

body {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    font-family: 'Outfit', sans-serif;
}

body.loaded {
    opacity: 1;
}

@keyframes bounce-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce-subtle {
    animation: bounce-subtle 3s infinite ease-in-out;
}

/* Navigation Link Active State logic will be handled by JS, using this class */
.nav-link {
    position: relative;
    transition: all 0.3s;
}

.nav-link.active {
    color: #1e5128;
    /* primary */
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e5128;
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Section Transitions */
section {
    opacity: 1;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Card Hover Effects */
.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* WhatsApp Widget Animations */
#wa-chat-panel.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    max-height: 600px;
    pointer-events: auto;
}

#wa-chat-panel {
    transform-origin: bottom right;
}

/* Responsive Overrides */
@media (max-width: 640px) {
    h1 {
        font-size: 3rem !important;
    }
}