/* ========================================
   ANIMATIONS & SCROLL EFFECTS
   ======================================== */

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* Apply animations to elements */
.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.hero-visual {
    animation: slideInRight 0.8s ease-out 0.2s backwards;
}

.pain-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.pain-card:nth-child(1) { animation-delay: 0.1s; }
.pain-card:nth-child(2) { animation-delay: 0.2s; }
.pain-card:nth-child(3) { animation-delay: 0.3s; }
.pain-card:nth-child(4) { animation-delay: 0.4s; }
.pain-card:nth-child(5) { animation-delay: 0.5s; }
.pain-card:nth-child(6) { animation-delay: 0.6s; }

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

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

/* Button hover effects */
.btn-primary,
.btn-secondary,
.btn-header {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before,
.btn-secondary::before,
.btn-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-header:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
}

/* Card hover effects */
.pain-card,
.benefit-card,
.quote-card,
.feature-card,
.book-card {
    transition: all 0.3s ease;
}

.pain-card:hover,
.benefit-card:hover,
.quote-card:hover,
.feature-card:hover,
.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile menu animation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-black);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--color-white);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

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

/* Logo animation on load */
.product-logo-hero {
    animation: scaleIn 0.8s ease-out 0.3s backwards;
}

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

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