/* Smooth Interactions and Animations */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Enhanced hover effects */
.glass-card,
.service-card,
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth button interactions */
.btn,
.nav-link,
.navbar-toggler {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[src=""],
img:not([src]) {
    opacity: 0;
}

/* Micro-interactions for icons */
.service-icon i,
.stat-icon i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon i,
.stat-card:hover .stat-icon i {
    transform: scale(1.1);
}

/* Enhanced focus states for accessibility */
*:focus {
    outline: 2px solid rgba(0, 0, 0, 0.5);
    outline-offset: 2px;
    transition: outline 0.2s ease;
}

/* Remove default focus outline for buttons with custom styles */
.btn:focus,
.nav-link:focus,
.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
select,
textarea {
    transition: all 0.3s ease;
}

/* Parallax-like effect for hero content */
@media (prefers-reduced-motion: no-preference) {
    .hero-content {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Staggered animation delays */
.animate__animated:nth-child(1) { animation-delay: 0.1s; }
.animate__animated:nth-child(2) { animation-delay: 0.2s; }
.animate__animated:nth-child(3) { animation-delay: 0.3s; }
.animate__animated:nth-child(4) { animation-delay: 0.4s; }
.animate__animated:nth-child(5) { animation-delay: 0.5s; }
.animate__animated:nth-child(6) { animation-delay: 0.6s; }

/* Smooth section transitions */
.section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility: Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .slide {
        transition: none !important;
    }
}

/* Performance optimization for animations */
.glass-card,
.service-card,
.stat-card,
.btn-hero,
.btn-hero-outline {
    will-change: transform, box-shadow;
}

.glass-card:not(:hover),
.service-card:not(:hover),
.stat-card:not(:hover) {
    will-change: auto;
}