/* =======================================
   INDEX PAGE ANIMATIONS
   Add this to your css/index.css file
======================================= */

/* Fade in on page load */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from bottom */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale up animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce animation for buttons */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* =======================================
   HEADER ANIMATIONS
======================================= */
.header-top {
    animation: slideInUp 0.6s ease-out;
}

.header-part {
    animation: slideInUp 0.8s ease-out 0.2s backwards;
}

.header-logo img {
    animation: scaleUp 0.6s ease-out 0.3s backwards;
}

.header-menu > li {
    animation: slideInUp 0.5s ease-out backwards;
}

.header-menu > li:nth-child(1) {
    animation-delay: 0.4s;
}

.header-menu > li:nth-child(2) {
    animation-delay: 0.5s;
}

.header-menu > li:nth-child(3) {
    animation-delay: 0.6s;
}

.header-menu > li:nth-child(4) {
    animation-delay: 0.7s;
}

.header-contact-item {
    animation: slideInRight 0.6s ease-out backwards;
}

.header-contact-item:nth-child(1) {
    animation-delay: 0.5s;
}

.header-contact-item:nth-child(2) {
    animation-delay: 0.6s;
}

/* =======================================
   BANNER ANIMATIONS
======================================= */
.banner-content h1 {
    animation: slideInLeft 0.8s ease-out 0.5s backwards;
}

.banner-content p {
    animation: slideInLeft 0.8s ease-out 0.7s backwards;
}

.banner-btn {
    animation: slideInLeft 0.8s ease-out 0.9s backwards;
}

.banner-img {
    animation: slideInRight 0.8s ease-out 0.6s backwards;
}

.banner-img img {
    animation: float 3s ease-in-out infinite;
}

/* Button hover effects */
.banner-btn .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.banner-btn .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.banner-btn .btn:hover::before {
    width: 300px;
    height: 300px;
}

.banner-btn .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* =======================================
   SUGGEST SLIDER ANIMATIONS
======================================= */
.suggest-card {
    transition: all 0.4s ease;
}

.suggest-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.suggest-card img {
    transition: transform 0.4s ease;
}

.suggest-card:hover img {
    transform: scale(1.1);
}

.suggest-card h5 {
    transition: color 0.3s ease;
}

.suggest-card:hover h5 {
    color: #ffffff;
}

/* =======================================
   PROMO SECTION ANIMATIONS
======================================= */
.promo-part {
    animation: fadeIn 1s ease-out;
}

.promo-img {
    animation: scaleUp 0.8s ease-out;
    transition: transform 0.4s ease;
}

.promo-img:hover {
    transform: scale(1.02);
}

.promo-img img {
    transition: transform 0.4s ease;
}

.promo-img:hover img {
    transform: scale(1.05);
}

/* =======================================
   FEATURED PRODUCTS ANIMATIONS
======================================= */
.section-heading {
    animation: slideInUp 0.8s ease-out;
}

.section-heading h2 {
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    animation: expandWidth 1s ease-out 0.5s forwards;
}

@keyframes expandWidth {
    to {
        width: 100%;
    }
}

.feature-card {
    animation: slideInUp 0.8s ease-out backwards;
    transition: all 0.4s ease;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-media {
    overflow: hidden;
}

.feature-image img {
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.1) rotate(2deg);
}

.feature-label .label-text {
    animation: pulse 2s ease-in-out infinite;
}

.product-add {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-add::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.5s, height 0.5s;
}

.product-add:hover::before {
    width: 300px;
    height: 300px;
}

.product-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-add i {
    transition: transform 0.3s ease;
}

.product-add:hover i {
    transform: translateX(5px);
}

/* Star rating animation */
.feature-rating i {
    display: inline-block;
    animation: scaleUp 0.5s ease-out backwards;
}

.feature-rating i:nth-child(1) { animation-delay: 0.1s; }
.feature-rating i:nth-child(2) { animation-delay: 0.2s; }
.feature-rating i:nth-child(3) { animation-delay: 0.3s; }
.feature-rating i:nth-child(4) { animation-delay: 0.4s; }
.feature-rating i:nth-child(5) { animation-delay: 0.5s; }

/* =======================================
   TESTIMONIAL ANIMATIONS
======================================= */
.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-card i.fa-quote-left {
    animation: pulse 2s ease-in-out infinite;
}

.testimonial-card ul li {
    animation: scaleUp 0.4s ease-out backwards;
}

.testimonial-card ul li:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card ul li:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card ul li:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card ul li:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card ul li:nth-child(5) { animation-delay: 0.5s; }

.testimonial-card img {
    transition: transform 0.4s ease;
}

.testimonial-card:hover img {
    transform: scale(1.1);
}

/* =======================================
   NEWSLETTER SECTION ANIMATIONS
======================================= */
.news-part {
    animation: fadeIn 1s ease-out;
}

.news-text h2 {
    animation: slideInLeft 0.8s ease-out;
}

.news-text p {
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.news-form {
    animation: slideInRight 0.8s ease-out 0.3s backwards;
}

.news-form input {
    transition: all 0.3s ease;
}

.news-form input:focus {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-form button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.news-form button:hover::before {
    left: 100%;
}

.news-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* =======================================
   INTRO SECTION ANIMATIONS
======================================= */
.intro-wrap {
    animation: slideInUp 0.8s ease-out backwards;
    transition: all 0.4s ease;
}

.intro-wrap:nth-child(1) { animation-delay: 0.2s; }
.intro-wrap:nth-child(2) { animation-delay: 0.4s; }
.intro-wrap:nth-child(3) { animation-delay: 0.6s; }
.intro-wrap:nth-child(4) { animation-delay: 0.8s; }

.intro-wrap:hover {
    transform: translateY(-10px);
}

.intro-icon {
    transition: all 0.4s ease;
}

.intro-wrap:hover .intro-icon {
    transform: scale(1.2) rotate(10deg);
}

.intro-icon i {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

/* =======================================
   FOOTER ANIMATIONS
======================================= */
.footer-part {
    animation: fadeIn 1s ease-out;
}

.footer-widget {
    animation: slideInUp 0.8s ease-out backwards;
}

.footer-widget:nth-child(1) { animation-delay: 0.1s; }
.footer-widget:nth-child(2) { animation-delay: 0.2s; }
.footer-widget:nth-child(3) { animation-delay: 0.3s; }
.footer-widget:nth-child(4) { animation-delay: 0.4s; }

.footer-social li {
    transition: transform 0.3s ease;
}

.footer-social li:hover {
    transform: translateY(-5px);
}

.footer-social a {
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.footer-links a {
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-links a:hover {
    padding-left: 5px;
}

.footer-badge-img {
    transition: all 0.3s ease;
}

.footer-badge-img:hover {
    transform: scale(1.1);
}

/* =======================================
   SCROLL ANIMATIONS (Progressive Enhancement)
======================================= */
@media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .animate-on-scroll.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =======================================
   MOBILE RESPONSIVENESS
======================================= */
@media (max-width: 768px) {
    .banner-img img {
        animation: float 4s ease-in-out infinite;
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    .intro-wrap:hover {
        transform: translateY(-5px);
    }
}