/**
 * Premium Animations CSS
 * Complementary styles for GSAP animations
 */

/* Loading State */
body.is-loading {
    cursor: wait;
    overflow: hidden;
}

body.is-loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0070a3 0%, #55BEEF 50%, #0070a3 100%);
    animation: loadingBar 1.5s ease-in-out infinite;
    z-index: 9999;
}

@keyframes loadingBar {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navigation Link Underline Animation */
.nav-link {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0070a3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Button Lift Effect */
.btn, .nav-link, button {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn:hover, .nav-link:hover, button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Image Hover Zoom */
.event-card img, .art-piece img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.event-card:hover img, .art-piece:hover img {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 112, 183, 0.3);
}

/* Parallax Container */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-image {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Floating Elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
    75% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* Stagger Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

.fade-in.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Sections */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-content {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Event Cards Premium */
.event-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 112, 183, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.event-card:hover::before {
    opacity: 1;
}

/* Art Pieces Premium */
.art-piece {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.art-piece::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #0070a3;
    opacity: 0;
    transition: all 0.3s ease;
}

.art-piece:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

/* Premium Scroll Indicators */
.scroll-indicator {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 4px;
    height: 60px;
    background: rgba(0, 112, 183, 0.8);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.scroll-indicator.visible {
    opacity: 1;
}

/* Micro-interactions */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.glow {
    box-shadow: 0 0 20px rgba(0, 112, 183, 0.6);
}

.glow:hover {
    box-shadow: 0 0 30px rgba(0, 112, 183, 0.8);
}

/* Responsive Premium Effects */
@media (max-width: 768px) {
    .event-card:hover img,
    .art-piece:hover img {
        transform: scale(1.02) rotate(0.5deg);
    }
    
    .btn:hover, .nav-link:hover {
        transform: translateY(-1px) scale(1.01);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
