/* Base styles to supplement Tailwind */
html {
    scroll-behavior: smooth;
}

/* Add some custom animations if desired */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

/* Staggered delays for children */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }

/* Micro-interactions */
.nav-link {
    position: relative;
    display: inline-block;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0080a3;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Icon interactions */
.icon-bounce {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.group:hover .icon-bounce {
    transform: scale(1.2) translateY(-2px);
}

/* Stats badge micro-animation (About section) – hover only, not click */
.stats-badge {
    cursor: default;
}
@media (hover: hover) {
    .stats-badge:hover {
        transform: scale(1.05) translateY(-4px);
        box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1), 0 0 0 1px rgb(0 128 163 / 0.2);
    }
}
