/* ===== MICROANIMATIONS & MOBILE ENHANCEMENTS ===== */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Force button interactivity */
.hero-buttons button,
.hero-buttons .btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 99999 !important;
}

/* Enhanced button animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    z-index: 10;
    pointer-events: auto;
}

/* Hero button specific improvements */
.hero-buttons .btn {
    transition: none !important;
    will-change: auto;
    backface-visibility: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

/* Disable all scaling for hero buttons */
.hero-buttons .btn:hover,
.hero-buttons .btn:active,
.hero-buttons .btn:focus {
    transform: none !important;
    box-shadow: none !important;
}

/* Product card animations */
.product-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0) scale(1);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card .product-image {
    overflow: hidden;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Collection card animations */
.collection-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.collection-card .collection-image {
    overflow: hidden;
}

.collection-card:hover .collection-image img {
    transform: scale(1.15);
    transition: transform 0.6s ease;
}

/* Navigation animations */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: #e11d48;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero section animations */
.hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content p {
    animation-delay: 0.4s;
}

.hero-content .btn {
    animation-delay: 0.6s;
}

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

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

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Social media icons */
.social-icon {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0) rotate(0deg);
}

.social-icon:hover {
    transform: translateY(-3px) rotate(5deg);
    color: #e11d48;
}

/* Form input animations */
.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
    transform: translateY(-2px);
}

/* Loading animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Mobile-specific animations */
@media (max-width: 768px) {
    .product-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .collection-card:hover {
        transform: translateY(-5px);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
    
    /* Disable hero button effects on mobile too */
    .hero-buttons .btn:hover {
        transform: none !important;
    }
}

/* Touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.98);
        background: rgba(225, 29, 72, 0.9);
    }
    
    /* Override for hero buttons */
    .hero-buttons .btn:active {
        transform: none !important;
        background: none !important;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
    
    .collection-card:active {
        transform: scale(0.98);
    }
}

/* Stagger animations for product grid */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

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

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

/* Ripple effect for buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

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

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 12px 24px;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing */
    .product-card {
        margin-bottom: 20px;
    }
    
    .collection-card {
        margin-bottom: 24px;
    }
}

/* Smooth transitions for all interactive elements */
* {
    -webkit-tap-highlight-color: transparent;
}

a, button, input, textarea, select {
    transition: all 0.2s ease;
}

/* Enhanced focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #e11d48;
    outline-offset: 2px;
}

/* Improved mobile navigation */
@media (max-width: 768px) {
    .mobile-nav {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .mobile-nav.active {
        animation: slideDown 0.3s ease forwards;
    }
}

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