/* ========================================
   ENHANCED ANIMATIONS - Modern Landing Page
   Inspired by Contemporary Web Design Trends
   ======================================== */

/* ========================================
   MORPHING GRADIENT BACKGROUNDS
   ======================================== */

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradient-rotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Enhanced Hero Background */
.hero {
    background: linear-gradient(-45deg, #FFF5F8, #F5F0FF, #F0F8FF, #FFE8F2);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

/* Animated Blob Shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(231, 29, 115, 0.15) 0%, transparent 70%);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    animation: morph-blob 20s ease-in-out infinite, float-blob 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(64, 111, 180, 0.12) 0%, transparent 70%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph-blob 25s ease-in-out infinite reverse, float-blob 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes morph-blob {
    0%, 100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 58% 42% 45% 55% / 70% 30% 40% 60%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 45% 55% 60% 40% / 55% 65% 35% 45%;
        transform: rotate(180deg) scale(0.95);
    }
    75% {
        border-radius: 70% 30% 50% 50% / 30% 55% 45% 70%;
        transform: rotate(270deg) scale(1.05);
    }
}

@keyframes float-blob {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-30px) translateX(20px);
    }
    50% {
        transform: translateY(0) translateX(40px);
    }
    75% {
        transform: translateY(30px) translateX(20px);
    }
}

/* ========================================
   FLOATING PARTICLES
   ======================================== */

.hero .hero__container::before,
.hero .hero__container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero .hero__container::before {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(231, 29, 115, 0.2) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation: float-particle 12s ease-in-out infinite;
}

.hero .hero__container::after {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(64, 111, 180, 0.2) 0%, transparent 70%);
    bottom: 30%;
    right: 15%;
    animation: float-particle 15s ease-in-out infinite reverse;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(30px, -40px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, -80px) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: translate(40px, -40px) scale(1.1);
        opacity: 0.5;
    }
}

/* ========================================
   TEXT REVEAL ANIMATIONS
   ======================================== */

.hero__title {
    opacity: 0;
    animation: text-reveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) 0.3s forwards;
}

.hero__subtitle {
    opacity: 0;
    animation: fade-in-up-smooth 1s cubic-bezier(0.77, 0, 0.175, 1) 0.6s forwards;
}

.hero__benefits {
    opacity: 0;
    animation: fade-in-up-smooth 1s cubic-bezier(0.77, 0, 0.175, 1) 0.9s forwards;
}

.hero__buttons {
    opacity: 0;
    animation: fade-in-up-smooth 1s cubic-bezier(0.77, 0, 0.175, 1) 1.2s forwards;
}

.hero__trust {
    opacity: 0;
    animation: fade-in-up-smooth 1s cubic-bezier(0.77, 0, 0.175, 1) 1.5s forwards;
}

.hero__image {
    opacity: 0;
    animation: image-reveal 1.4s cubic-bezier(0.77, 0, 0.175, 1) 0.5s forwards;
}

@keyframes text-reveal {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes fade-in-up-smooth {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes image-reveal {
    0% {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

/* ========================================
   GLASSMORPHISM EFFECTS
   ======================================== */

.hero__badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(231, 29, 115, 0.3);
    box-shadow: 0 8px 32px 0 rgba(231, 29, 115, 0.15);
    animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Enhanced Card Glassmorphism */
.category-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 16px 48px rgba(231, 29, 115, 0.2);
}

/* ========================================
   SCROLL-TRIGGERED ANIMATIONS
   ======================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* ========================================
   ANIMATED BUTTONS & CTAs
   ======================================== */

.btn--primary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--primary::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.6s ease;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #E71D73, #406FB4, #E71D73);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradient-border 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn--primary:hover::after {
    opacity: 1;
}

@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animated CTA with pulse effect */
.btn--primary {
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(185, 22, 89, 0.25);
    }
    50% {
        box-shadow: 0 4px 20px rgba(185, 22, 89, 0.4);
    }
}

.btn--primary:hover {
    animation: none;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(185, 22, 89, 0.35) !important;
}

/* ========================================
   INTERACTIVE HOVER EFFECTS
   ======================================== */

/* Magnetic effect for important elements */
.magnetic {
    transition: transform 0.2s ease-out;
}

/* Card tilt effect on hover */
.category-card,
.product-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.category-card:hover .category-card__content,
.product-card:hover .product-card__info {
    transform: translateZ(20px);
}

/* Animated underline for links */
.nav__link {
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #E71D73, #406FB4);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__link:hover::after {
    width: 100%;
}

/* ========================================
   TRUST BAR ANIMATIONS
   ======================================== */

.trust-bar {
    background: linear-gradient(135deg, #FFE8F2 0%, #F5E8FF 100%);
    background-size: 200% 200%;
    animation: gradient-shift 10s ease infinite;
}

.trust-bar__item {
    opacity: 0;
    transform: translateY(30px);
    animation: trust-item-reveal 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.trust-bar__item:nth-child(1) { animation-delay: 0.2s; }
.trust-bar__item:nth-child(2) { animation-delay: 0.4s; }
.trust-bar__item:nth-child(3) { animation-delay: 0.6s; }
.trust-bar__item:nth-child(4) { animation-delay: 0.8s; }

@keyframes trust-item-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trust-bar__item svg {
    animation: icon-bounce 2s ease-in-out infinite;
}

.trust-bar__item:nth-child(2) svg {
    animation-delay: 0.3s;
}

.trust-bar__item:nth-child(3) svg {
    animation-delay: 0.6s;
}

.trust-bar__item:nth-child(4) svg {
    animation-delay: 0.9s;
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Counter animation */
.trust-bar__number {
    display: inline-block;
    transition: transform 0.3s ease;
}

.trust-bar__item:hover .trust-bar__number {
    transform: scale(1.15);
    color: #E71D73;
}

/* ========================================
   TESTIMONIAL CARD EFFECTS
   ======================================== */

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 29, 115, 0.1), transparent);
    transition: left 0.8s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    border-color: rgba(231, 29, 115, 0.3);
    box-shadow: 0 16px 50px rgba(231, 29, 115, 0.2);
}

/* ========================================
   NEWSLETTER SECTION ENHANCEMENTS
   ======================================== */

.newsletter {
    background: linear-gradient(-45deg, #667eea, #764ba2, #E71D73, #406FB4);
    background-size: 400% 400%;
    animation: gradient-shift 20s ease infinite;
    position: relative;
    overflow: hidden;
}

.newsletter::before,
.newsletter::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.newsletter::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: -20%;
    left: -10%;
    animation: float-blob 15s ease-in-out infinite;
}

.newsletter::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    bottom: -15%;
    right: -5%;
    animation: float-blob 20s ease-in-out infinite reverse;
}

.newsletter__input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter__input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* ========================================
   SECTION TITLE ANIMATIONS
   ======================================== */

.section__title {
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #E71D73, #406FB4);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.6s ease, width 0.6s ease;
}

.section__header.revealed .section__title::after {
    opacity: 1;
    width: 120px;
}

/* ========================================
   LOADING & ENTRANCE ANIMATIONS
   ======================================== */

@keyframes page-load {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

body {
    animation: page-load 0.6s ease-out;
}

/* Smooth entrance for all sections */
.section {
    opacity: 0;
    animation: fade-in-section 1s ease-out forwards;
}

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

@keyframes fade-in-section {
    to {
        opacity: 1;
    }
}

/* ========================================
   PARTICLE SYSTEM (Optional Enhancement)
   ======================================== */

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(231, 29, 115, 0.6), transparent);
    border-radius: 50%;
    animation: particle-float 15s ease-in-out infinite;
}

.particle:nth-child(even) {
    background: radial-gradient(circle, rgba(64, 111, 180, 0.6), transparent);
    animation-duration: 20s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 100px), var(--ty, -800px)) scale(0);
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .hero::before,
    .hero::after {
        width: 400px;
        height: 400px;
    }

    @keyframes text-reveal {
        0% {
            opacity: 0;
            transform: translateY(30px) scale(0.98);
            filter: blur(5px);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }
    }

    @keyframes image-reveal {
        0% {
            opacity: 0;
            transform: translateY(40px) scale(0.95);
            filter: blur(10px);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }
    }
}

@media (max-width: 576px) {
    .hero::before,
    .hero::after {
        width: 300px;
        height: 300px;
    }

    .category-card:hover,
    .product-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
}

/* ========================================
   ACCESSIBILITY - REDUCE MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero,
    .trust-bar,
    .newsletter {
        animation: none !important;
    }

    .hero::before,
    .hero::after,
    .newsletter::before,
    .newsletter::after {
        animation: none !important;
    }

    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATION
   ======================================== */

/* Use GPU acceleration for smoother animations */
.hero,
.category-card,
.product-card,
.testimonial-card,
.btn {
    will-change: transform;
}

/* Contain paint for better performance */
.category-card,
.product-card,
.testimonial-card {
    contain: layout style paint;
}
