/* === ADVANCED ANIMATIONS === */

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Glow Effects */
@keyframes neonGlow {
    0%, 100% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px #00d4ff,
            0 0 35px #00d4ff,
            0 0 40px #00d4ff;
    }
    50% {
        text-shadow: 
            0 0 2px currentColor,
            0 0 5px currentColor,
            0 0 8px currentColor,
            0 0 12px #00d4ff,
            0 0 18px #00d4ff,
            0 0 25px #00d4ff;
    }
}

@keyframes boxGlow {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(0, 212, 255, 0.4),
            0 0 20px rgba(0, 212, 255, 0.3),
            0 0 30px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.6),
            0 0 40px rgba(0, 212, 255, 0.5),
            0 0 60px rgba(0, 212, 255, 0.4);
    }
}

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

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Gradient Animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Typing Effect */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-right-color: transparent; }
    51%, 100% { border-right-color: #00d4ff; }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Slide Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Rotation Animations */
@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes wobble {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(5deg); }
    30% { transform: rotate(-5deg); }
    45% { transform: rotate(3deg); }
    60% { transform: rotate(-3deg); }
    75% { transform: rotate(1deg); }
    100% { transform: rotate(0deg); }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transition: all 0.6s ease;
}

.reveal.animate-in {
    opacity: 1;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-up.animate-in {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-left.animate-in {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-right.animate-in {
    transform: translateX(0);
}

.reveal-scale {
    transform: scale(0.8);
}

.reveal-scale.animate-in {
    transform: scale(1);
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Button Animations */
.btn-pulse {
    animation: pulse 2s infinite;
}

.btn-float {
    animation: float 3s ease-in-out infinite;
}

.btn-glow {
    animation: boxGlow 2s ease-in-out infinite alternate;
}

/* Text Animations */
.text-glow {
    animation: neonGlow 2s ease-in-out infinite alternate;
}

.text-gradient-flow {
    background: linear-gradient(-45deg, #00d4ff, #00ffff, #0099cc, #00d4ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 4s ease infinite;
}

.text-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s infinite;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
}

/* Icon Animations */
.icon-spin {
    animation: rotate360 1s linear infinite;
}

.icon-bounce {
    animation: bounce 1s infinite;
}

.icon-wobble {
    animation: wobble 1s ease-in-out;
}

/* Progress Animations */
@keyframes progressBar {
    from { width: 0%; }
    to { width: 100%; }
}

.progress-animate {
    animation: progressBar 2s ease-out forwards;
}

/* Typing Indicator */
.typing-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00d4ff;
    animation: pulse 1.5s ease-in-out infinite;
}

.typing-indicator::before,
.typing-indicator::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00d4ff;
    animation: pulse 1.5s ease-in-out infinite;
}

.typing-indicator::before {
    left: -30px;
    animation-delay: -0.4s;
}

.typing-indicator::after {
    left: 30px;
    animation-delay: 0.4s;
}

/* Modal Animations */
.modal-enter {
    animation: scaleIn 0.3s ease-out;
}

.modal-exit {
    animation: scaleIn 0.3s ease-out reverse;
}

/* Notification Animations */
@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-enter {
    animation: slideInNotification 0.4s ease-out;
}

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

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .stagger-item,
    .card-hover,
    .btn-pulse,
    .btn-float,
    .btn-glow,
    .text-glow,
    .text-gradient-flow,
    .text-shimmer,
    .loading::after,
    .icon-spin,
    .icon-bounce,
    .icon-wobble,
    .typing-indicator,
    .modal-enter,
    .modal-exit,
    .notification-enter {
        animation: none !important;
        transition: none !important;
    }
    
    .card-hover:hover {
        transform: none !important;
    }
}

/* High Performance Animations */
.smooth-transform {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.smooth-scale {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Intersection Observer Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeInUp 0.3s ease-out;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s ease;
}

.video-modal-close:hover {
    color: #00d4ff;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}










