/* ===== PREMIUM HERO ANIMATIONS ===== */

/* Fade In Animation */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Slide Up Animation */
.animate-slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Left Animation */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide Right Animation */
.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade In Delay Animation */
.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

/* Stagger Animation Container */
.animate-stagger {
    opacity: 0;
    animation: staggerIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Floating Animation */
.animate-float {
    opacity: 0;
    transform: translateY(20px);
    animation: floatIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation */
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Glow Animation */
.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 165, 92, 0.4);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(201, 165, 92, 0.2);
    }
}

/* Background Gradient Animation */
.animated-bg {
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 165, 92, 0.2);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Delay Classes */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }
.delay-10 { animation-delay: 1s; }

/* Slide Left Animation */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide Right Animation */
.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade In Delay Animation */
.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

/* Stagger Animation Container */
.animate-stagger {
    opacity: 0;
    animation: staggerIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Floating Animation */
.animate-float {
    opacity: 0;
    transform: translateY(20px);
    animation: floatIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation */
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Glow Animation */
.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 165, 92, 0.4);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(201, 165, 92, 0.2);
    }
}

/* Background Gradient Animation */
.animated-bg {
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 165, 92, 0.2);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Delay Classes */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }
.delay-10 { animation-delay: 1s; }

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale-in,
    .animate-fade-in-delay,
    .animate-stagger,
    .animate-float {
        animation-duration: 0.5s;
        transform: translateY(15px);
    }
    
    .animate-scale-in {
        transform: scale(0.95);
    }
    
    /* Disable some animations on very small screens */
    .animate-pulse,
    .animate-glow,
    .animated-bg {
        animation-duration: 3s;
    }
    
    /* Reduce delay times on mobile for faster perceived loading */
    .delay-1 { animation-delay: 0.05s; }
    .delay-2 { animation-delay: 0.1s; }
    .delay-3 { animation-delay: 0.15s; }
    .delay-4 { animation-delay: 0.2s; }
    .delay-5 { animation-delay: 0.25s; }
    .delay-6 { animation-delay: 0.3s; }
    .delay-7 { animation-delay: 0.35s; }
    .delay-8 { animation-delay: 0.4s; }
    .delay-9 { animation-delay: 0.45s; }
    .delay-10 { animation-delay: 0.5s; }
}

@media (max-width: 480px) {
    /* Further simplify animations on very small screens */
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale-in,
    .animate-fade-in-delay,
    .animate-stagger,
    .animate-float {
        animation-duration: 0.3s;
        transform: translateY(10px);
    }
    
    .animate-scale-in {
        transform: scale(0.98);
    }
    
    /* Disable complex animations on very small screens */
    .animate-pulse,
    .animate-glow {
        animation: none;
    }
    
    /* Minimal delays for better UX */
    .delay-1, .delay-2, .delay-3, .delay-4, .delay-5,
    .delay-6, .delay-7, .delay-8, .delay-9, .delay-10 {
        animation-delay: 0.05s;
    }
    
    /* Reduce transform values for smoother performance */
    .animate-slide-left {
        transform: translateX(-20px);
    }
    
    .animate-slide-right {
        transform: translateX(20px);
    }
    
    .animate-float {
        transform: translateY(10px);
    }
    
    @keyframes floatIn {
        0% {
            opacity: 0;
            transform: translateY(10px);
        }
        50% {
            transform: translateY(-5px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Performance optimization - prefer transform over opacity for better FPS */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale-in,
    .animate-fade-in-delay,
    .animate-stagger,
    .animate-float,
    .animate-pulse,
    .animate-glow,
    .animated-bg {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
