:root {
    --primary-rgb: 94, 196, 23;
    --secondary-rgb: 80, 174, 200;
}

/*
 * Advanced background pattern with scattered leaves, bubbles, and raindrops.
 *
 * This approach uses fixed background attachment to treat the viewport as a
 * single canvas, allowing for more deliberate and artistic placement of shapes,
 * which prevents the repetitive tiling effect.
 */
body {
    background-color: #f9fafb; /* Tailwind's gray-50 */
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#icon-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.header-wave {
    background: linear-gradient(to right, rgba(94, 196, 23, 0.1), rgba(80, 174, 200, 0.1));
    animation: wave-animation 15s infinite alternate;
}

@keyframes wave-animation {
    0% { transform: translateX(-20%); }
    100% { transform: translateX(20%); }
}

.nav-link-hover {
    position: relative;
    display: inline-block;
    padding-bottom: 2px; /* Space for the underline */
}

.nav-link-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #50aec8; /* Use Tailwind's secondary color */
    transition: width 0.3s ease-out;
}

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

/* Hero Section Overhaul */
.hero-overlay {
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    animation: pulse-overlay 10s infinite alternate;
}

@keyframes pulse-overlay {
    0% { opacity: 0.2; }
    100% { opacity: 0.35; }
}

/* Fade In Up Animation */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0; /* Start invisible */
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

/* CTA Button Hover Effect */
.hero-cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Subtle dark overlay */
    transition: transform 0.3s ease-out;
    transform: scaleX(0);
    transform-origin: left;
    z-index: -1;
    border-radius: 9999px; /* Match button's rounded-full */
}

.hero-cta-button:hover::after {
    transform: scaleX(1);
}

/* Service Card Gradient Overlay */
.service-card-gradient {
    position: relative;
    z-index: 1; /* Ensure content is above pseudo-element */
}

.service-card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, rgba(var(--primary-rgb), 0.07), rgba(var(--secondary-rgb), 0.17)); /* Very subtle gradient */
    border-radius: inherit; /* Inherit border-radius from parent */
    z-index: -1; /* Place behind content */
    opacity: 0; /* Start invisible */
    transition: opacity 0.3s ease-out;
}

.service-card-gradient:hover::before {
    opacity: 1; /* Fade in on hover */
}

.service-card-gradient {
    transition: transform 0.3s ease-out; /* Add transition for the card itself */
}

/* Subtle Inner Shadow for Cards */
.card-inner-shadow {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}