/* Custom styles that complement Tailwind */

html {
    scroll-behavior: smooth;
}

/* Subtle gradient background for the hero section overlay */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(15, 118, 110, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Reveal on scroll animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for service cards */
.reveal-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.reveal-on-scroll:nth-child(6) { transition-delay: 0.3s; }

/* Header scroll state */
.header-scrolled #site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}
