/* ========================================
   PREMIUM ANIMATIONS & UI ENHANCEMENTS
   ======================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Page Load Animation */
@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(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Scroll Reveal Classes - Modified to show content by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-left.animate-on-scroll {
    opacity: 0;
    transform: translateX(-50px);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-right.animate-on-scroll {
    opacity: 0;
    transform: translateX(50px);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-scale.animate-on-scroll {
    opacity: 0;
    transform: scale(0.9);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced Product Cards */
.product-card {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--card-index) * 0.1s);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 21, 56, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Hover Effects */
.product-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

/* Category Cards Animation */
.category-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card::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.6s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(139, 21, 56, 0.25);
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    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:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 21, 56, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Navigation Enhancement */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-maroon);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Icon Button Animations */
.icon-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover {
    transform: scale(1.15) rotate(5deg);
    color: var(--color-maroon);
}

.wishlist-btn:hover {
    animation: pulse 0.6s ease;
}

/* Footer Social Links */
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--color-maroon);
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(139, 21, 56, 0.4);
}

/* Hero Slider Enhancement */
.slide {
    animation: fadeIn 1s ease;
}

.slide-content>* {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-title {
    animation-delay: 0.2s;
}

.slide-description {
    animation-delay: 0.4s;
}

.slide-buttons {
    animation-delay: 0.6s;
}

/* Loading Shimmer Effect */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Floating Animation for Badges */
.badge {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced Form Inputs */
input,
textarea,
select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus,
textarea:focus,
select:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 21, 56, 0.15);
}

/* Page Transition */
body {
    animation: fadeIn 0.5s ease;
}

/* Founder Cards Animation */
.founder-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.founder-card:hover .founder-image {
    transform: scale(1.05);
}

.founder-image {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contact Cards */
.contact-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover .contact-card-icon {
    transform: rotate(360deg) scale(1.1);
}

.contact-card-icon {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Value Cards */
.value-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 21, 56, 0.15);
}

.value-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover .value-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Quick View Button */
.quick-view-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-view-btn:hover {
    transform: scale(1.2);
    background: var(--color-maroon);
    color: var(--color-white);
}

/* Parallax Effect for Hero */
.hero-section {
    position: relative;
    overflow: hidden;
}

.slide-bg {
    transition: transform 0.5s ease-out;
}

/* Breadcrumb Animation */
.breadcrumb {
    animation: slideInLeft 0.6s ease;
}

/* Price Tag Animation */
.price-current {
    transition: all 0.3s ease;
}

.product-card:hover .price-current {
    transform: scale(1.1);
    color: var(--color-maroon);
}

/* Rating Stars */
.product-rating i {
    transition: all 0.2s ease;
}

.product-rating:hover i {
    transform: scale(1.2);
    color: #FFD700;
}

/* Stagger Animation for Grid Items */
.products-grid>* {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.products-grid>*:nth-child(1) {
    animation-delay: 0.1s;
}

.products-grid>*:nth-child(2) {
    animation-delay: 0.2s;
}

.products-grid>*:nth-child(3) {
    animation-delay: 0.3s;
}

.products-grid>*:nth-child(4) {
    animation-delay: 0.4s;
}

.products-grid>*:nth-child(5) {
    animation-delay: 0.5s;
}

.products-grid>*:nth-child(6) {
    animation-delay: 0.6s;
}

.products-grid>*:nth-child(7) {
    animation-delay: 0.7s;
}

.products-grid>*:nth-child(8) {
    animation-delay: 0.8s;
}

/* Categories Grid Animation */
.categories-grid>* {
    opacity: 0;
    animation: scaleIn 0.6s ease forwards;
}

.categories-grid>*:nth-child(1) {
    animation-delay: 0.2s;
}

.categories-grid>*:nth-child(2) {
    animation-delay: 0.4s;
}

.categories-grid>*:nth-child(3) {
    animation-delay: 0.6s;
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Page Header Animation */
.page-header {
    animation: fadeInUp 0.8s ease;
}

.page-title {
    animation: slideInLeft 0.8s ease;
}

.page-subtitle {
    animation: slideInRight 0.8s ease;
    animation-delay: 0.2s;
}

/* Gradient Background Animation */
.gradient-bg {
    background: linear-gradient(-45deg, #8B1538, #D4AF37, #6b1129, #b8962e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Mobile Menu Animation */
@media (max-width: 768px) {
    .nav-menu {
        animation: slideInRight 0.3s ease;
    }
}

/* Accessibility - Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}