/* ========================================
   HOMEPAGE EYE-CATCHING UI ENHANCEMENTS
   ======================================== */

/* Modern Hero Section with Animated Background */
.modern-hero-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        hsl(var(--base)) 0%, 
        hsl(var(--base-600)) 50%, 
        hsl(var(--accent)) 100%);
    min-height: 60vh;
    padding: 40px 0;
}

.modern-hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: float 15s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(255,107,122,0.3), rgba(255,71,87,0.3));
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    background: linear-gradient(45deg, rgba(102,187,106,0.3), rgba(67,160,71,0.3));
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 70%;
    animation-delay: 2s;
    background: linear-gradient(45deg, rgba(255,167,38,0.3), rgba(255,152,0,0.3));
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 7s;
    background: linear-gradient(45deg, rgba(184,134,11,0.3), rgba(146,106,4,0.3));
}

.shape-5 {
    width: 140px;
    height: 140px;
    top: 70%;
    left: 20%;
    animation-delay: 3s;
    background: linear-gradient(45deg, rgba(33,150,243,0.3), rgba(30,136,229,0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 1;
    }
}

/* Enhanced Hero Section */
.modern-hero-section {
    position: relative;
    z-index: 2;
}

.modern-hero-slider {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
}

.modern-banner-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-banner-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-banner-card:hover .banner-overlay {
    opacity: 1;
}

.banner-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Glowing Product Cards */
.product-card-enhanced {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.product-card-enhanced::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        hsl(var(--base)), 
        hsl(var(--accent)), 
        hsl(var(--base-600)), 
        hsl(var(--accent))
    );
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: shimmerBorder 3s linear infinite;
}

.product-card-enhanced:hover::before {
    opacity: 1;
}

.product-card-enhanced:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@keyframes shimmerBorder {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Floating Action Button */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base-600)));
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.floating-cart i {
    color: white;
    font-size: 24px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(255, 255, 255, 0.1);
    }
}

/* Modern Section Headers */
.section-header-modern {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header-modern h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--accent)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative;
}

.section-header-modern h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--base)), hsl(var(--accent)));
    border-radius: 2px;
}

.section-header-modern p {
    font-size: 1.1rem;
    color: hsl(var(--dark-300));
    max-width: 600px;
    margin: 0 auto;
}

/* Animated Counter Section */
.counter-modern {
    background: linear-gradient(135deg, 
        hsl(var(--base)) 0%, 
        hsl(var(--base-600)) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.counter-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.1)" points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.counter-item-modern {
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 2;
}

.counter-item-modern .counter-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.counter-item-modern:hover .counter-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.counter-item-modern .counter-icon i {
    font-size: 32px;
    color: white;
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    animation: countUp 2s ease-out;
}

.counter-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Category Cards */
.category-card-modern {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    margin: 15px;
}

.category-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.category-card-modern:hover::before {
    left: 100%;
}

.category-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.category-icon-modern {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--accent)));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
    transition: all 0.3s ease;
}

.category-card-modern:hover .category-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

/* Testimonial Cards */
.testimonial-modern {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    margin: 20px;
    transition: all 0.3s ease;
}

.testimonial-modern::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 80px;
    color: hsl(var(--base));
    opacity: 0.2;
    font-family: serif;
}

.testimonial-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 3px solid hsl(var(--base));
}

/* Scroll-to-Top Button Enhancement */
.scrollToTop {
    position: fixed !important;
    bottom: 30px !important;
    right: 100px !important;
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base-600))) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    z-index: 999 !important;
}

.scrollToTop:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-hero-wrapper {
        min-height: 40vh;
        padding: 20px 0;
    }
    
    .floating-cart {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-cart i {
        font-size: 20px;
    }
    
    .section-header-modern h2 {
        font-size: 2rem;
    }
    
    .shape {
        display: none;
    }
    
    .counter-modern {
        padding: 60px 0;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
}

/* Loading Animation for Page */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base-600)));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    animation: logoSpin 2s linear infinite;
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}