/* About Page Styles */
:root {
    --primary-blue: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-gray: #64748b;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-light: #e2e8f0;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --success-green: #059669;
    --warning-orange: #d97706;
    --error-red: #dc2626;
    --accent-purple: #7c3aed;
    --about-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --mission-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --values-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.about-hero {
    background: var(--about-gradient);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="300" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float 4s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-tagline {
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 1rem 2rem;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

/* Fixed Statistics Section - Better Visibility */
.stats-section {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    flex: 1 1 0;
    max-width: 220px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    /* IMPORTANT: Ensure visibility by default */
    opacity: 1 !important;
    transform: none !important;
}

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

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

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

.stat-icon {
    width: 45px;
    height: 45px;
    background: var(--about-gradient);
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem;
    color: white;
    margin: 0 auto 0.75rem;
    box-shadow: var(--shadow-md);
    flex-shrink: 0 !important;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a202c !important; /* Darker, more visible color */
    margin-bottom: 0.25rem;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow for better visibility */
}

.stat-label {
    font-size: 0.85rem;
    color: #4a5568 !important; /* Darker gray for better contrast */
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.025em;
}

/* Mission Section */
.mission-section {
    background: var(--light-bg);
    padding: 5rem 0;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text {
    order: 1;
}

.mission-visual {
    order: 2;
    position: relative;
}

.mission-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.mission-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.mission-visual-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 3rem;
    color: var(--text-dark);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.mission-visual-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.mission-visual-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.5;
}

.mission-visual-content {
    position: relative;
    z-index: 2;
}

.mission-visual-text {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Values Section */
.values-section {
    background: white;
    padding: 5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--values-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    color: white;
}

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

.value-card:hover .value-content {
    position: relative;
    z-index: 2;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--values-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.value-card:hover .value-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.value-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.value-card:hover .value-title {
    color: white;
}

.value-description {
    color: var(--text-light);
    line-height: 1.6;
}

.value-card:hover .value-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Story Section */
.story-section {
    background: var(--light-bg);
    padding: 5rem 0;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.story-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.story-highlight {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #1e40af;
}

/* Team Section */
.team-section {
    background: white;
    padding: 5rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.team-avatar {
    width: 100px;
    height: 100px;
    background: var(--about-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: var(--about-gradient);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,800 1000,0 0,200"/></svg>');
    background-size: cover;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.cta-btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
}

.cta-btn-primary:hover {
    background: white;
    color: var(--primary-blue);
}

/* Animation enhancement - only apply if supported */
@media (prefers-reduced-motion: no-preference) {
    .stat-card.animate-in {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .stat-card.animate-in.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design - Force Horizontal on Desktop */
@media (min-width: 769px) {
    .stats-grid {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        max-width: 1000px !important;
    }
    
    .stat-card {
        flex: 1 1 0 !important;
        max-width: 220px !important;
        min-width: 180px !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .stats-grid {
        gap: 1rem;
        max-width: 900px;
    }
    
    .stat-card {
        padding: 1.25rem 0.75rem;
        min-height: 150px;
        max-width: 200px;
    }
}

@media (max-width: 1024px) {
    .mission-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mission-text {
        order: 2;
    }
    
    .mission-visual {
        order: 1;
    }
    
    .mission-visual-card {
        padding: 3rem 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-container {
        padding: 0 0.75rem;
    }
    
    .about-hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        flex-wrap: wrap !important;
        gap: 1rem;
        max-width: 500px;
        justify-content: center !important;
    }
    
    .stat-card {
        padding: 1.25rem 1rem;
        min-height: 140px;
        flex: 0 0 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        min-width: 160px;
        opacity: 1 !important; /* Force visibility on mobile */
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
        color: #1a202c !important;
    }
    
    .stat-label {
        font-size: 0.8rem;
        line-height: 1.2;
        color: #4a5568 !important;
    }
    
    .mission-card {
        padding: 2rem;
    }
    
    .mission-visual-card {
        padding: 2.5rem 1.5rem;
    }
    
    .mission-visual-title {
        font-size: 1.75rem;
    }
    
    .mission-visual-subtitle {
        font-size: 1rem;
    }
    
    .mission-visual-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .stats-grid {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem;
        max-width: 300px;
    }
    
    .stat-card {
        padding: 1.25rem 0.75rem;
        min-height: 130px;
        flex: none !important;
        width: 100% !important;
        max-width: 280px !important;
        min-width: 250px;
        opacity: 1 !important; /* Force visibility on mobile */
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
        color: #1a202c !important;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
        color: #4a5568 !important;
    }
    
    .mission-card,
    .story-card {
        padding: 1.5rem;
    }
    
    .mission-visual-card {
        padding: 2rem 1.25rem;
    }
    
    .mission-visual-title {
        font-size: 1.5rem;
    }
    
    .mission-visual-subtitle {
        font-size: 0.95rem;
    }
    
    .mission-visual-text {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .value-card,
    .team-card {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}