/* Advanced Theme Enhancements */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Hero Section with Cricket Background */
.hero-section {
    background: linear-gradient(135deg, rgba(44,44,44,0.92) 0%, rgba(74,74,74,0.92) 100%),
                url('../images/hero-bg.jpg') center/cover;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

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

/* Floating Animation - disabled to prevent image instability */

/* Badge Styles */
.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.badge-gradient {
    background: var(--gradient-primary);
    color: white;
}

/* Price Tag with Animation */
.price-tag {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.price-tag::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover .price-tag::after {
    transform: scaleX(1);
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.15);
}

/* Stats Counter */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Loading Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Boxes */
.alert-modern {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: var(--danger-color);
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: var(--primary-color);
}

/* Form Inputs */
.form-control-modern {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Footer with Gradient */
.footer-modern {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

/* Breadcrumb */
.breadcrumb-modern {
    background: transparent;
    padding: 1rem 0;
}

.breadcrumb-modern .breadcrumb-item {
    color: #6b7280;
}

.breadcrumb-modern .breadcrumb-item.active {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Pulse Animation for Badges */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Why Choose Section Styles */
.bg-gradient-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.feature-card-modern {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(44,44,44,0.05);
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card-modern:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(44,44,44,0.2);
}

.feature-card-modern:hover .feature-icon i {
    transform: rotateY(360deg);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card-modern:hover .feature-title {
    color: var(--primary-color);
}

.feature-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Professional CTA Section */
.cta-professional {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(40,167,69,0.3);
    max-width: 1000px;
    margin: 0 auto;
    min-height: 280px;
    border: 2px solid rgba(255,255,255,0.2);
}

.cta-container {
    display: flex;
    padding: 3rem;
    position: relative;
    z-index: 2;
}

.cta-left {
    flex: 1;
    padding-right: 2rem;
}

.cta-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
}

.cta-header {
    margin-bottom: 2rem;
}

.cta-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.cta-title {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.cta-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 0;
}

.cta-stats-compact {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.stat-info {
    text-align: left;
}

.stat-number {
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-primary-modern, .btn-secondary-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-primary-modern {
    background: white;
    color: var(--dark-color);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.btn-primary-modern i {
    transition: transform 0.3s ease;
}

.btn-primary-modern:hover i {
    transform: translateX(4px);
}

.btn-secondary-modern {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary-modern:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

.cta-trust-badges {
    text-align: right;
}

.trust-icons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    justify-content: flex-end;
}

.trust-icons i {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.trust-icons i:hover {
    color: white;
}

.trust-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}

.trust-text span {
    margin: 0 0.25rem;
}

.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.deco-1 {
    width: 120px;
    height: 120px;
    top: -40px;
    left: -40px;
}

.deco-2 {
    width: 80px;
    height: 80px;
    bottom: 20px;
    right: 100px;
}

.deco-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.deco-line {
    position: absolute;
    background: rgba(255,255,255,0.1);
}

.deco-4 {
    width: 1px;
    height: 60px;
    top: 30%;
    right: 60px;
    transform: rotate(45deg);
}

.deco-5 {
    width: 40px;
    height: 1px;
    bottom: 40px;
    left: 50px;
    transform: rotate(-30deg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
    
    .feature-card-modern {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .cta-professional {
        margin: 0 1rem;
        min-height: auto;
    }
    
    .cta-container {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }
    
    .cta-left {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .cta-right {
        align-items: center;
        gap: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-stats-compact {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .trust-icons {
        justify-content: center;
    }
    
    .trust-text {
        text-align: center;
    }
    
    .deco-1, .deco-2, .deco-3, .deco-4, .deco-5 {
        display: none;
    }
}
