/* Enhanced Animation Styles for Upes Namiņš */

/* Base animation styles for scroll effects */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects for interactive elements */
.spotlight .image img {
    transition: transform 0.5s ease-in-out;
}

.spotlight:hover .image img {
    transform: scale(1.05);
}

/* Icon hover effects - only the icon element, not the whole li */
.icons.major.style2 li .icon {
    transition: transform 0.5s ease-in-out;
}

.icons.major.style2 li.animate-in .icon:hover {
    transform: scale(1.1) !important;
}

/* Enhanced button hover effects */
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease-in-out;
}

/* Icon animation effects */
.icons.major.style2 li:hover .icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease-in-out;
}

/* Parallax effect for video background */
.video-bg {
    position: relative;
    overflow: hidden;
}

.video-bg video {
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced form animations */
form input:focus,
form textarea:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
}

/* Smooth transitions for navigation */
nav ul li a {
    position: relative;
    transition: all 0.3s ease-in-out;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Staggered animation delays */
.stagger-animation:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation:nth-child(5) { animation-delay: 0.5s; }

/* Loading animation for dynamic content */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-pulse {
    animation: pulse 2s infinite;
}

/* Enhanced map container animation */
#mapContainer {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 2em;
}

#mapContainer.show {
    transform: translateY(0);
    opacity: 1;
}

#mapContainer iframe {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .scroll-reveal {
        transform: translateY(30px);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .button,
    .spotlight,
    .icons.major.style2 li .icon {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Performance optimizations */
.spotlight,
.icons.major.style2 li .icon,
.button {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Additional visual enhancements */
.wrapper {
    position: relative;
    overflow: hidden;
}
