/* ========================================
   Animation Styles
   ======================================== */

/* Fade Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    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);
    }
}

/* Scale Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Slide Animations */
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

/* Gold Glow */
@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(201, 169, 98, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(201, 169, 98, 0.6);
    }
}

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

/* Rotate Animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease infinite;
}

.animate-shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(201, 169, 98, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease infinite;
}

.animate-gold-glow {
    animation: goldGlow 3s ease infinite;
}

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

/* Stagger Delays */
.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; }

/* Initial State for Animations */
.js-animate {
    opacity: 0;
}

.js-animate.animated {
    opacity: 1;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Animations */
.hero .animate-element {
    opacity: 0;
    transform: translateY(30px);
}

.hero .animate-element.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

/* Product Card Hover Effect */
.product-card {
    transition: all 0.4s ease;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(201, 169, 98, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Page Load Animation */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--color-dark-navy);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    animation: float 2s ease-in-out infinite;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-champagne-gold);
    letter-spacing: 0.2em;
}

/* Quiz Animations */
.quiz-step {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.quiz-step.active {
    opacity: 1;
    transform: translateX(0);
}

.quiz-option {
    transition: all 0.3s ease;
}

.quiz-option:hover {
    transform: translateX(10px);
    border-color: var(--color-champagne-gold);
}

.quiz-option.selected {
    background: var(--color-navy);
    color: var(--color-soft-white);
    border-color: var(--color-champagne-gold);
}

/* Newsletter Input Focus */
.newsletter-input {
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    transform: scale(1.02);
}

/* Counter Animation */
.counter {
    display: inline-block;
}

.counter-value {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.counter-value.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Progress Bar */
.progress-bar {
    width: 0;
    transition: width 1s ease;
}

.progress-bar.animate {
    width: 100%;
}