/* Modern Design Enhancements for All Pages */

/* Animated Gradient Backgrounds */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: rotate(0deg); }
    50% { opacity: 0.6; transform: rotate(180deg); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Hero Section Enhancements */
.hero-section,
.product-hero,
section[class*="hero"] {
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.hero-section > *,
.product-hero > * {
    position: relative;
    z-index: 1;
}

/* Card Enhancements with 3D Effects */
.business-card,
.product-card,
.category-card,
.benefit-card,
.feature-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.business-card::before,
.product-card::before,
.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 ease;
    z-index: 1;
}

.business-card:hover::before,
.product-card:hover::before,
.category-card:hover::before {
    left: 100%;
}

.business-card:hover,
.product-card:hover,
.category-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* Icon Animations */
.business-icon,
.product-image,
.category-icon,
.benefit-icon {
    transition: all 0.5s ease;
}

.business-card:hover .business-icon,
.product-card:hover .product-image,
.category-card:hover .category-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Button Enhancements */
.btn,
.btn-cta,
.cta-button,
button[class*="btn"] {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn:hover::before,
.btn-cta:hover::before,
.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover,
.btn-cta:hover,
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Shadows */
.shadow-sm { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.shadow-md { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.shadow-lg { box-shadow: 0 20px 60px rgba(0,0,0,0.15); }

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Border Radius */
.card,
.category-card,
.product-card,
.business-card {
    border-radius: 20px;
}

/* Hover Glow Effect */
.glow-on-hover {
    position: relative;
}

.glow-on-hover::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.glow-on-hover:hover::after {
    opacity: 0.3;
}
