/* Enhanced Styles for CjiuBlog */

/* Stats Section Enhancement */
.stats-section {
    padding: 5rem 0 !important;
    background: linear-gradient(to bottom, var(--white) 0%, #f8f9ff 100%) !important;
}

.stats-grid {
    gap: 2.5rem !important;
}

.stat-card {
    background: var(--white) !important;
    border: 2px solid rgba(102, 126, 234, 0.1) !important;
    padding: 3rem 2rem !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.stat-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
    background: var(--white) !important;
}

.stat-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 1.5rem !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3) !important;
    position: relative;
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.2;
    z-index: -1;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(10deg) !important;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5) !important;
}

.stat-card:hover .stat-icon::after {
    inset: -12px;
    opacity: 0.3;
}

.stat-icon i {
    font-size: 2.2rem !important;
}

.stat-card h3 {
    font-size: 3rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card p {
    font-weight: 500 !important;
}

/* Feature Cards Enhancement */
.why-choose-section {
    padding: 5rem 0 !important;
}

.features-grid {
    gap: 2.5rem !important;
}

.feature-card {
    background: var(--white) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 2px solid transparent !important;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2) !important;
}

.feature-icon {
    width: 90px !important;
    height: 90px !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3) !important;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-10deg) !important;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5) !important;
}

.feature-icon i {
    font-size: 2.5rem !important;
}

.feature-card h3 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
}

/* Category Cards Enhancement */
.categories-section {
    background: #f8f9ff !important;
    padding: 5rem 0 !important;
}

.categories-grid {
    gap: 2.5rem !important;
}

.category-card {
    background: var(--white) !important;
    padding: 2.5rem 2rem !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid transparent !important;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2) !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%) !important;
    border-color: rgba(102, 126, 234, 0.2) !important;
    color: var(--text-dark) !important;
}

.category-card i {
    font-size: 3.5rem !important;
    transition: all 0.4s ease !important;
}

.category-card:hover i {
    transform: scale(1.2) rotate(-10deg) !important;
    color: #764ba2 !important;
}

.category-card h3 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
}

.category-card:hover p {
    color: var(--text-dark) !important;
}

/* Hero Section Enhancement */
.hero {
    height: 550px !important;
    position: relative;
    overflow: hidden;
    background-attachment: fixed !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-overlay {
    display: none !important;
}

.hero-content {
    max-width: 900px !important;
    animation: fadeInUp 1s ease !important;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-content::before,
.hero-content::after {
    display: none !important;
}

.hero-title {
    font-size: 4.5rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1) !important;
    line-height: 1.1 !important;
    color: var(--white) !important;
}

.hero-subtitle {
    font-size: 1.5rem !important;
    margin-bottom: 3rem !important;
    line-height: 1.7 !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3) !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white) !important;
}

.hero .btn-primary {
    padding: 1.2rem 3rem !important;
    font-size: 1.15rem !important;
    border-radius: 50px !important;
    background: var(--white) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    font-weight: 700 !important;
    transition: all 0.4s ease !important;
    border: none !important;
}

.hero .btn-primary:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero {
        height: 500px !important;
        background-attachment: scroll !important;
    }
    
    .hero-title {
        font-size: 2.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    .hero .btn-primary {
        padding: 1rem 2.5rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 450px !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
}
