/* Custom styles that complement Tailwind */

html {
    scroll-behavior: smooth;
}

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* Navbar scroll effect */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(5, 22, 27, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4f7fa;
}
::-webkit-scrollbar-thumb {
    background: #b4c5d6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8ba7c1;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
}
#mobileMenu.open {
    max-height: 300px;
}

/* Subtle pulse on CTA */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(77, 184, 148, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(77, 184, 148, 0); }
}

a:hover .soft-pulse {
    animation: softPulse 2s infinite;
}

/* Image aspect ratio helpers */
img {
    max-width: 100%;
    height: auto;
}
