/* Enhanced Modern Animations for Public Pages */

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

/* Performance optimizations */
* {
    will-change: auto;
}

.animate-on-scroll,
.modern-card,
.modern-btn,
.modern-image,
.hero-element {
    will-change: transform, opacity;
}

/* Base animation classes with modern easing */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(2px);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Staggered animations with modern delays */
.animate-on-scroll[data-delay="100"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="200"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="300"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="400"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="500"] { transition-delay: 0.5s; }
.animate-on-scroll[data-delay="600"] { transition-delay: 0.6s; }
.animate-on-scroll[data-delay="700"] { transition-delay: 0.7s; }
.animate-on-scroll[data-delay="800"] { transition-delay: 0.8s; }
.animate-on-scroll[data-delay="900"] { transition-delay: 0.9s; }
.animate-on-scroll[data-delay="1000"] { transition-delay: 1s; }

/* Hero section animations with modern timing */
.hero-card {
    animation: slideInFromBottom 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center bottom;
}

.hero-title {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
    transform-origin: left center;
}

.hero-subtitle {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
    transform-origin: left center;
}

.hero-cta {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
    transform-origin: left center;
}

.hero-image {
    animation: slideInFromRight 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
    transform-origin: center center;
}

/* Enhanced Card Animation Styles with 3D transforms */

/* 1. Modern Flip Card Animation */
.flip-card {
    perspective: 1500px;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.flip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(234, 179, 8, 0.1), transparent);
    transform: translateX(-100%) rotateY(90deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.flip-card:hover {
    transform: rotateY(15deg) rotateX(5deg) translateY(-15px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(234, 179, 8, 0.2);
}

.flip-card:hover::before {
    transform: translateX(100%) rotateY(0deg);
}

/* 2. Enhanced Slide Card Animation */
.slide-card {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.slide-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.3), transparent);
    transition: left 1s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.slide-card:hover::after {
    left: 100%;
}

.slide-card:hover {
    transform: translateX(15px) translateY(-12px) scale(1.04) rotate(1deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(234, 179, 8, 0.2);
}

/* 3. Modern Bounce Card Animation */
.bounce-card {
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.bounce-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(234, 179, 8, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

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

.bounce-card:hover {
    transform: translateY(-20px) scale(1.06) rotate(-1deg);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(234, 179, 8, 0.2);
}

/* 4. Sophisticated Morph Card Animation */
.morph-card {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.morph-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(255, 255, 255, 0.1));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

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

.morph-card:hover {
    border-radius: 30px;
    transform: scale(1.06) rotate(3deg);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(234, 179, 8, 0.2);
}

/* 5. Enhanced Pulse Card Animation */
.pulse-card {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.pulse-card:hover {
    transform: scale(1.1);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(234, 179, 8, 0.2);
    animation: modernPulse 2s infinite;
}

/* 6. Advanced Glow Card Animation */
.glow-card {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.glow-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #eab308, #f59e0b, #eab308, #fbbf24);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(8px);
}

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

.glow-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(234, 179, 8, 0.3);
}

/* 7. 3D Rotate Card Animation */
.rotate-card {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.rotate-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(234, 179, 8, 0.1), transparent);
    transform: rotateY(90deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.rotate-card:hover::after {
    transform: rotateY(0deg);
}

.rotate-card:hover {
    transform: rotateY(20deg) rotateX(8deg) translateZ(30px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(234, 179, 8, 0.2);
}

/* 8. Wave Card Animation */
.wave-card {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.wave-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.3), transparent);
    transition: left 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.wave-card:hover::before {
    left: 100%;
}

.wave-card:hover {
    transform: translateY(-15px) scale(1.04) rotate(-1deg);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(234, 179, 8, 0.2);
}

/* Contact Card Animations */
.contact-card {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(234, 179, 8, 0.2);
}

.contact-icon-container {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover .contact-icon-container {
    transform: scale(1.3) rotate(15deg);
}

.contact-main-cta {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-main-cta:hover {
    transform: translateX(15px);
}

.contact-arrow {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-main-cta:hover .contact-arrow {
    transform: translateX(8px);
}

/* Modern Button Animations */
.modern-btn {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    border: none;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(234, 179, 8, 0.4);
}

/* Modern Image Animations */
.modern-image {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.9) contrast(1.1);
}

.modern-image:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(234, 179, 8, 0.3);
    filter: brightness(1.1) contrast(1.2);
}

/* Slider Item Animations */
.slide-item {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-image {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.8) contrast(1.1);
}

.slide-item:hover .slide-image {
    transform: scale(1.15);
    filter: brightness(1.1) contrast(1.2);
}

.slide-content {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-label {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-title {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-summary {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-cta {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Trust Indicator Animations */
.trust-item {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.trust-item:hover {
    transform: translateY(-8px) scale(1.06);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(234, 179, 8, 0.2);
}

.trust-icon {
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-item:hover .trust-icon {
    transform: scale(1.3) rotate(15deg);
    color: #eab308;
}

/* Enhanced Keyframe Animations */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(80px) scale(0.9);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes modernPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
        filter: blur(5px);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(5deg);
        filter: blur(2px);
    }
    70% {
        transform: scale(0.95) rotate(-2deg);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes flip {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-30px);
    }
    70% {
        transform: translateY(-15px);
    }
    90% {
        transform: translateY(-4px);
    }
}

@keyframes morph {
    0% {
        border-radius: 20px;
    }
    50% {
        border-radius: 30px;
    }
    100% {
        border-radius: 20px;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(234, 179, 8, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(234, 179, 8, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(234, 179, 8, 0.5);
    }
}

/* Parallax Background */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.1s ease-out;
}

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

/* Loading Animation */
.loading-animation {
    animation: modernPulse 1.5s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        filter: none;
    }
    
    .flip-card:hover,
    .slide-card:hover,
    .bounce-card:hover,
    .morph-card:hover,
    .pulse-card:hover,
    .glow-card:hover,
    .rotate-card:hover,
    .wave-card:hover {
        transform: none;
    }
    
    .modern-btn:hover {
        transform: none;
    }
    
    .modern-image:hover {
        transform: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .flip-card,
    .slide-card,
    .bounce-card,
    .morph-card,
    .pulse-card,
    .glow-card,
    .rotate-card,
    .wave-card,
    .modern-btn,
    .modern-image,
    .contact-card,
    .trust-item {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Performance Optimizations */
.animate-on-scroll {
    will-change: transform, opacity, filter;
}

.flip-card,
.slide-card,
.bounce-card,
.morph-card,
.pulse-card,
.glow-card,
.rotate-card,
.wave-card {
    will-change: transform;
}

.modern-btn {
    will-change: transform;
}

.modern-image {
    will-change: transform, filter;
}

/* Additional modern effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-effect {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
} 