/**
 * ============================================
 * SWASTHSATHI - HOMEPAGE & ABOUT PAGE STYLES
 * ============================================
 * NOTE: This file uses CSS variables from base.css
 * Ensure base.css is loaded BEFORE this file
 */

/* ===== GLOBAL RESETS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 50%;
    filter: blur(60px);
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-illustration {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

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

/* ===== STATS SECTION ===== */
.stats-section {
    background: white;
    padding: 60px 0;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #6b7280;
    font-size: 1rem;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 80px 0;
    background: #f9fafb;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #10b981;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Feature icon backgrounds */
.bg-success-subtle { 
    background: #d1fae5; 
    color: #10b981; 
}

.bg-primary-subtle { 
    background: #dbeafe; 
    color: #2563eb; 
}

.bg-warning-subtle { 
    background: #fef3c7; 
    color: #f59e0b; 
}

.bg-info-subtle { 
    background: #e0e7ff; 
    color: #6366f1; 
}

.bg-danger-subtle { 
    background: #fee2e2; 
    color: #ef4444; 
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
    padding: 80px 0;
    background: white;
}

.step-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 16px;
    background: #f9fafb;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.step-card:hover {
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.step-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: white;
}

.cta-card {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    padding: 4rem 2rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.btn-light-custom {
    background: white;
    color: #10b981;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-light-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .hero-illustration {
        margin-top: 2rem;
        height: 300px;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* ===== LINKS ===== */
a {
    text-decoration: none;
    color: inherit;
}