*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

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

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

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

/* Hero card float animation */
#hero .bg-white.rounded-xl {
    animation: floatCard 4s ease-in-out infinite;
}

#hero .bg-white.rounded-xl:nth-child(2) { animation-delay: 0.5s; }
#hero .bg-white.rounded-xl:nth-child(3) { animation-delay: 1s; }
#hero .bg-white.rounded-xl:nth-child(4) { animation-delay: 1.5s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Service card hover */
.group:hover .group-hover\:bg-forest-100 {
    transition: background-color 0.2s ease;
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Input focus ring */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* Selection color */
::selection {
    background-color: rgba(46, 125, 50, 0.2);
    color: #1B4332;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F5EE; }
::-webkit-scrollbar-thumb { background: #A5D6A7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #66BB6A; }

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse for status dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}
