/**
 * Homepage UX/UI Enhancements
 * Modern, clean, professional design
 */

/* Hero Slider Enhancements - Disabled to prevent flickering */

/* Hosting Types Navigation Enhancements */
.hosting-types-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.hosting-type-btn {
    position: relative;
    overflow: hidden;
}

.hosting-type-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.hosting-type-btn:hover::before,
.hosting-type-btn.active::before {
    width: 200%;
    height: 200%;
}

.hosting-type-btn:hover,
.hosting-type-btn.active {
    position: relative;
    z-index: 1;
}

/* Provider Cards Section */
.providers-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.providers-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.providers-section .subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* Modern Provider Cards Enhancements */
.provider-card-modern {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.provider-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
}

.provider-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.provider-card-modern:hover::after {
    opacity: 1;
}

/* Section Spacing */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

section:first-child::before {
    display: none;
}

/* Card Animations */
.card {
    animation: fadeIn 0.6s ease;
    animation-fill-mode: both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Price Comparison Section */
.price-comparison-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
}

.price-comparison-section h2 {
    font-weight: 800;
    margin-bottom: 2rem;
    color: #212529;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(50px, 50px);
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-10px) scale(1.05);
}

/* Feature Cards */
.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleY(1);
}

/* Button Enhancements */
.custom-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.custom-btn::after {
    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.6s ease, height 0.6s ease;
    z-index: -1;
}

.custom-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Loading States */
.spinner-border {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .price-comparison-section {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .providers-section h2 {
        font-size: 1.75rem;
    }
    
    .featured-hostings {
        gap: 1rem;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .hero-slider-section,
    .hosting-types-nav,
    .providers-section {
        background: white !important;
        color: black !important;
    }
}

