/* Keyframe Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@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);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 199, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 199, 0, 0.6);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: #FFC700;
    }
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-slideInFromTop {
    animation: slideInFromTop 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-glow {
    animation: glow 2s infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 10s linear infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Staggered Animations */
.animate-stagger-1 {
    animation-delay: 0.1s;
}

.animate-stagger-2 {
    animation-delay: 0.2s;
}

.animate-stagger-3 {
    animation-delay: 0.3s;
}

.animate-stagger-4 {
    animation-delay: 0.4s;
}

.animate-stagger-5 {
    animation-delay: 0.5s;
}

.animate-stagger-6 {
    animation-delay: 0.6s;
}

/* Hover Animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 199, 0, 0.4);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Loading Animations */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 199, 0, 0.3);
    border-top: 4px solid #FFC700;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Button Animations */
.btn-animate {
    position: relative;
    overflow: hidden;
}

.btn-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-animate:hover::before {
    left: 100%;
}

/* Text Animations */
.text-shimmer {
    background: linear-gradient(90deg, #FFFFFF 0%, #FFC700 50%, #FFFFFF 100%);
    background-size: 200px 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid #FFC700;
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink 0.75s step-end infinite;
}

/* Card Animations */
.card-hover {
    transition: all 0.3s ease;
    position: relative;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.1) 0%, rgba(60, 179, 113, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.card-hover:hover::before {
    opacity: 1;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Icon Animations */
.icon-bounce {
    transition: transform 0.3s ease;
}

.icon-bounce:hover {
    animation: bounce 0.6s ease;
}

.icon-rotate {
    transition: transform 0.3s ease;
}

.icon-rotate:hover {
    transform: rotate(360deg);
}

.icon-pulse {
    animation: pulse 2s infinite;
}

/* Progress Animations */
.progress-bar {
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #FFC700 0%, #3CB371 100%);
    transition: width 1s ease;
}

.progress-bar.animate {
    width: 100%;
}

/* Parallax Effects */
.parallax-slow {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

.parallax-fast {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

/* Gradient Animations */
.gradient-animate {
    background: linear-gradient(-45deg, #FFC700, #3CB371, #FFC700, #3CB371);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Morphing Animations */
.morph {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.morph:hover {
    border-radius: 50%;
    transform: scale(1.1);
}

/* Slide Animations */
.slide-in-left {
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.slide-in-left.active {
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

.slide-in-right.active {
    transform: translateX(0);
}

.slide-in-up {
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.slide-in-up.active {
    transform: translateY(0);
}

.slide-in-down {
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.slide-in-down.active {
    transform: translateY(0);
}

/* Fade Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade-in.active {
    opacity: 1;
}

.fade-out {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.fade-out.active {
    opacity: 0;
}

/* Scale Animations */
.scale-in {
    transform: scale(0);
    transition: transform 0.5s ease;
}

.scale-in.active {
    transform: scale(1);
}

.scale-out {
    transform: scale(1);
    transition: transform 0.5s ease;
}

.scale-out.active {
    transform: scale(0);
}

/* Rotation Animations */
.rotate-in {
    transform: rotate(-180deg);
    transition: transform 0.5s ease;
}

.rotate-in.active {
    transform: rotate(0deg);
}

.rotate-out {
    transform: rotate(0deg);
    transition: transform 0.5s ease;
}

.rotate-out.active {
    transform: rotate(180deg);
}

/* Special Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.neon-glow {
    box-shadow: 0 0 20px rgba(255, 199, 0, 0.5);
    animation: neonPulse 2s infinite;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 199, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 199, 0, 0.8);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .animate-float {
        animation-duration: 4s;
    }
    
    .hover-lift:hover {
        transform: translateY(-5px);
    }
    
    .hover-scale:hover {
        transform: scale(1.02);
    }
}
