/* Base & Typography */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: #065f46;
    color: #fdfbf7;
}

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

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

::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}

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

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

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }

    .reveal {
        transition: none;
    }
}

/* Service card hover glow */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(circle at 30% 30%, rgba(217, 249, 157, 0.1), transparent 70%);
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Approach card hover */
.approach-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, box-shadow 0.4s ease;
}

.approach-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(6, 95, 70, 0.4);
}

/* Nav scroll state */
nav.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08), 0 4px 20px rgba(6, 95, 70, 0.06);
}

nav.scrolled .nav-link {
    color: #065f46;
}

nav.scrolled .nav-link:hover {
    color: #059669;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img,
.rounded-3xl.overflow-hidden img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rounded-2xl.overflow-hidden:hover img,
.rounded-3xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Form input focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

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

@media (prefers-reduced-motion: reduce) {
    .animate-pulse {
        animation: none;
        opacity: 1;
    }
}
