/* ===================================================================
   ABOUT PAGE STYLES - about_styles.css
   Comprehensive styling for the About page with theme integration
   Prefix: about-
   =================================================================== */

/* 1. CSS Variables and Base Styles */
:root {
    /* Font size system - derived from theme */
    --about-font-size-xs: calc(var(--font-size-base) - 4px);
    --about-font-size-sm: calc(var(--font-size-base) - 2px);
    --about-font-size-base: var(--font-size-base);
    --about-font-size-lg: calc(var(--font-size-base) + 2px);
    --about-font-size-xl: calc(var(--font-size-base) + 8px);
    --about-font-size-xxl: calc(var(--font-size-base) + 16px);
    --about-font-size-hero: calc(var(--font-size-base) + 24px);
    
    /* Spacing system */
    --about-spacing-xs: 0.5rem;
    --about-spacing-sm: 1rem;
    --about-spacing-md: 1.5rem;
    --about-spacing-lg: 2rem;
    --about-spacing-xl: 3rem;
    --about-spacing-xxl: 4rem;
    
    /* Border radius */
    --about-border-radius: var(--border-radius);
    --about-border-radius-lg: calc(var(--border-radius) * 2);
    
    /* Shadows */
    --about-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --about-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --about-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    
    /* Animation */
    --about-transition: var(--transition-speed) ease;
    --about-animation-duration: 0.6s;
}

/* 2. Page Wrapper */
.about-page-wrapper {
    background-color: var(--background-color);
    color: var(--secondary-color);
    font-family: var(--font-family);
    font-size: var(--about-font-size-base);
    line-height: 1.6;
}

/* 3. Hero Section */
.about-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(0, 0, 0, 0.7) 100%);
    color: var(--background-color);
    padding: var(--about-spacing-xxl) 0;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: all var(--about-animation-duration) ease;
}

.about-hero-section.about-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--about-spacing-md);
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--about-spacing-xl);
    align-items: center;
}

.about-hero-text {
    z-index: 2;
}

.about-hero-title {
    font-family: var(--heading-font);
    font-size: var(--about-font-size-hero);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 var(--about-spacing-md) 0;
    line-height: 1.2;
}

.about-hero-subtitle {
    font-size: var(--about-font-size-xl);
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 var(--about-spacing-lg) 0;
    opacity: 0.9;
}

.about-hero-description {
    font-size: var(--about-font-size-lg);
    color: #ffffff;
    margin: 0;
    opacity: 0.8;
    line-height: 1.7;
}

.about-hero-image {
    position: relative;
    z-index: 1;
}

.about-hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--about-border-radius-lg);
    box-shadow: var(--about-shadow-lg);
    object-fit: cover;
}

/* 4. Story Section */
.about-story-section {
    padding: var(--about-spacing-xxl) 0;
    background-color: var(--background-color);
    opacity: 1;
    transform: translateY(0);
    transition: all var(--about-animation-duration) ease;
}

.about-story-section.about-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-story-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--about-spacing-md);
}

.about-story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--about-spacing-xl);
    align-items: center;
}

.about-story-image img {
    width: 100%;
    height: auto;
    border-radius: var(--about-border-radius-lg);
    box-shadow: var(--about-shadow-md);
    object-fit: cover;
}

.about-story-title {
    font-family: var(--heading-font);
    font-size: var(--about-font-size-xxl);
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 0 var(--about-spacing-lg) 0;
    line-height: 1.3;
}

.about-story-content-text {
    font-size: var(--about-font-size-base);
    color: var(--primary-color);
    line-height: 2.5;
}

/* 5. Mission Vision Values Section */
.about-mission-section {
    padding: var(--about-spacing-xxl) 0;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--background-color) 100%);
    opacity: 1;
    transform: translateY(0);
    transition: all var(--about-animation-duration) ease;
}

.about-mission-section.about-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-mission-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--about-spacing-md);
}

.about-mission-main-title {
    font-family: var(--heading-font);
    font-size: var(--about-font-size-xxl);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 0 0 var(--about-spacing-xxl) 0;
    line-height: 1.3;
}

.about-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--about-spacing-xl);
}

.about-mission-item {
    background-color: #ffffff;
    padding: var(--about-spacing-xl);
    border-radius: var(--about-border-radius-lg);
    box-shadow: var(--about-shadow-md);
    text-align: center;
    border: 2px solid var(--primary-color);
    transition: all var(--about-transition);
    position: relative;
    overflow: hidden;
}

.about-mission-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.about-mission-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--about-shadow-lg);
}

.about-mission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--about-spacing-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: calc(var(--about-font-size-base) + 16px);
}

.about-mission-item-title {
    font-family: var(--heading-font);
    font-size: var(--about-font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 var(--about-spacing-md) 0;
}

.about-mission-item-content {
    font-size: var(--about-font-size-base);
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
}

/* 6. Strengths Section */
.about-strengths-section {
    padding: var(--about-spacing-xxl) 0;
    background-color: var(--background-color);
    opacity: 1;
    transform: translateY(0);
    transition: all var(--about-animation-duration) ease;
}

.about-strengths-section.about-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-strengths-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--about-spacing-md);
}

.about-strengths-title {
    font-family: var(--heading-font);
    font-size: var(--about-font-size-xxl);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 0 0 var(--about-spacing-xxl) 0;
    line-height: 1.3;
}

.about-strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--about-spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.about-strength-item {
    background-color: #ffffff;
    padding: var(--about-spacing-xl);
    border-radius: var(--about-border-radius-lg);
    box-shadow: var(--about-shadow-sm);
    text-align: center;
    border: 1px solid var(--primary-color);
    transition: all var(--about-transition);
    position: relative;
}

.about-strength-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--about-shadow-md);
    border-color: var(--secondary-color);
}

.about-strength-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--about-spacing-lg);
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: calc(var(--about-font-size-base) + 12px);
    transition: all var(--about-transition);
}

.about-strength-item:hover .about-strength-icon {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.about-strength-title {
    font-family: var(--heading-font);
    font-size: var(--about-font-size-lg);
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 var(--about-spacing-md) 0;
}

.about-strength-content {
    font-size: var(--about-font-size-base);
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
}

/* 7. Statistics Section */
.about-stats-section {
    padding: var(--about-spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
}

.about-stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--about-spacing-md);
}

.about-stats-title {
    font-family: var(--heading-font);
    font-size: var(--about-font-size-xxl);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 var(--about-spacing-xxl) 0;
    line-height: 1.3;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--about-spacing-lg);
}

.about-stat-item {
    text-align: center;
    padding: var(--about-spacing-lg);
}

.about-stat-number {
    font-family: var(--heading-font);
    font-size: calc(var(--about-font-size-base) + 32px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 var(--about-spacing-sm) 0;
    line-height: 1;
    display: block;
    transition: all var(--about-transition);
}

.about-stat-number.animated {
    transform: scale(1.1);
}

.about-stat-label {
    font-size: var(--about-font-size-lg);
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 8. Call to Action Section */
.about-cta-section {
    padding: var(--about-spacing-xxl) 0;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--background-color) 100%);
}

.about-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--about-spacing-md);
    text-align: center;
}

.about-cta-title {
    font-family: var(--heading-font);
    font-size: var(--about-font-size-xxl);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 var(--about-spacing-lg) 0;
    line-height: 1.3;
}

.about-cta-description {
    font-size: var(--about-font-size-lg);
    color: var(--secondary-color);
    margin: 0 0 var(--about-spacing-xl) 0;
    line-height: 1.6;
}

.about-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--about-spacing-md) var(--about-spacing-xl);
    background-color: var(--secondary-color);
    color: #ffffff;
    font-size: var(--about-font-size-lg);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--about-border-radius);
    transition: all var(--about-transition);
    box-shadow: var(--about-shadow-sm);
    border: 2px solid var(--secondary-color);
}

.about-cta-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--about-shadow-md);
    color: #ffffff;
    text-decoration: none;
}

/* 9. Mobile Responsiveness */
@media (max-width: 1024px) {
    .about-hero-content,
    .about-story-content {
        grid-template-columns: 1fr;
        gap: var(--about-spacing-lg);
    }
    
    .about-hero-title {
        font-size: calc(var(--about-font-size-base) + 16px);
    }
    
    .about-hero-subtitle {
        font-size: var(--about-font-size-lg);
    }
    
    .about-mission-grid {
        grid-template-columns: 1fr;
        gap: var(--about-spacing-lg);
    }
    
         .about-strengths-grid {
         grid-template-columns: repeat(2, 1fr);
         max-width: 700px;
     }
}

@media (max-width: 768px) {
    .about-hero-section,
    .about-story-section,
    .about-mission-section,
    .about-strengths-section,
    .about-stats-section,
    .about-cta-section {
        padding: var(--about-spacing-xl) 0;
    }
    
    .about-hero-container,
    .about-story-container,
    .about-mission-container,
    .about-strengths-container,
    .about-stats-container,
    .about-cta-container {
        padding: 0 var(--about-spacing-sm);
    }
    
    .about-hero-title {
        font-size: calc(var(--about-font-size-base) + 12px);
        text-align: center;
    }
    
    .about-hero-subtitle {
        font-size: var(--about-font-size-base);
        text-align: center;
    }
    
    .about-hero-description {
        font-size: var(--about-font-size-base);
        text-align: center;
    }
    
    .about-story-content {
        text-align: center;
    }
    
    .about-story-title,
    .about-mission-main-title,
    .about-strengths-title,
    .about-stats-title,
    .about-cta-title {
        font-size: var(--about-font-size-xl);
    }
    
    .about-mission-item,
    .about-strength-item {
        padding: var(--about-spacing-lg);
    }
    
    .about-mission-icon,
    .about-strength-icon {
        width: 60px;
        height: 60px;
        font-size: calc(var(--about-font-size-base) + 8px);
    }
    
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--about-spacing-md);
    }
    
    .about-stat-number {
        font-size: calc(var(--about-font-size-base) + 20px);
    }
    
    .about-stat-label {
        font-size: var(--about-font-size-base);
    }
    
    .about-cta-button {
        padding: var(--about-spacing-sm) var(--about-spacing-lg);
        font-size: var(--about-font-size-base);
    }
}

@media (max-width: 480px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
    }
    
         .about-strengths-grid {
         grid-template-columns: 1fr;
         max-width: 400px;
     }
    
    .about-hero-title {
        font-size: calc(var(--about-font-size-base) + 8px);
    }
}

/* 10. Animation Classes */
.about-animate-in {
    animation: aboutFadeInUp var(--about-animation-duration) ease forwards;
}

@keyframes aboutFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 11. Performance Optimizations */
.about-hero-image img,
.about-story-image img {
    will-change: transform;
    transform: translateZ(0);
}

.about-mission-item,
.about-strength-item {
    will-change: transform;
    transform: translateZ(0);
}

.about-cta-button {
    will-change: transform, background-color;
    transform: translateZ(0);
}

/* 12. Print Styles */
@media print {
    .about-page-wrapper {
        color: #000000 !important;
        background: #ffffff !important;
    }
    
    .about-hero-section,
    .about-stats-section {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .about-hero-title,
    .about-stats-title {
        color: #000000 !important;
    }
    
    .about-cta-section {
        display: none;
    }
}
