/* About Page Styles */
:root {
    --primary-color: #4a6cf7;
    --primary-color-dark: #3a5ce5;
    --primary-color-light: #eef2ff;
    --primary-color-rgb: 74, 108, 247;

    --secondary-color: #6a49f2;

    --success-color: #28a745;
    --success-color-light: #d4edda;
    --success-color-dark: #155724;

    --danger-color: #dc3545;
    --danger-color-light: #f8d7da;
    --danger-color-dark: #721c24;

    --warning-color: #ffc107;
    --warning-color-light: #fff3cd;
    --warning-color-dark: #856404;

    --dark-gray: #343a40;
    --text-color: #495057;
    --text-muted: #6c757d;
    --light-gray: #dee2e6;
    --light-bg: #f8f9fa;
}

.about-page {
    overflow-x: hidden;
}

.about-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    margin-bottom: 80px;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom right, transparent 49%, white 50%);
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-hero .lead {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Stats Section */
.stats-section {
    margin-top: -60px;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.content-text {
    padding: 20px;
}

.highlight-text {
    font-size: 1.3rem;
    color: var(--primary-color-dark);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
}

.content-image {
    padding: 20px;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mission-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color-light), #f8f9fa);
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.shadow {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Mission Cards */
.mission-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.mission-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.mission-content h3 {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-weight: 600;
}

.mission-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
}

/* How It Works */
.how-it-works-wrapper {
    padding: 20px 0;
}

.how-it-works-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.how-it-works-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 2;
}

.how-it-works-card.featured {
    transform: translateY(-20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.how-it-works-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.how-it-works-card.featured:hover {
    transform: translateY(-30px);
}

.how-it-works-icon {
    width: 90px;
    height: 90px;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 25px;
    transition: transform 0.3s;
}

.how-it-works-card:hover .how-it-works-icon {
    transform: scale(1.1);
}

.how-it-works-card h3 {
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 600;
}

.how-it-works-card p {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.btn-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.btn-link:hover {
    color: var(--primary-color-dark);
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    perspective: 1000px;
    height: 350px;
}

.team-member-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.team-member:hover .team-member-inner {
    transform: rotateY(180deg);
}

.team-member-front, .team-member-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.team-member-front {
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 30px;
}

.team-member-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.team-member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--light-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.4rem;
    color: var(--dark-gray);
    margin-bottom: 5px;
    font-weight: 600;
}

.team-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1rem;
}

.team-bio {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.team-social a:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Testimonials */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-card.featured {
    background: linear-gradient(135deg, var(--primary-color-light), white);
    border: 1px solid var(--primary-color-light);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--primary-color-light);
    font-size: 2rem;
    opacity: 0.8;
}

.testimonial-content {
    margin: 30px 0 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
}

.testimonial-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin: 0 0 5px 0;
    color: var(--dark-gray);
    font-size: 1.1rem;
    font-weight: 600;
}

.testimonial-author-info p {
    margin: 0 0 8px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 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;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1.5" fill="rgba(255,255,255,0.2)"/></svg>');
    background-size: 30px 30px;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content .lead {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-light:hover {
    background-color: transparent;
    color: white;
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .mission-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .about-hero {
        padding: 80px 0 100px;
    }

    .about-hero h1 {
        font-size: 3rem;
    }

    .content-section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .content-image {
        margin-top: 30px;
    }

    .how-it-works-card.featured {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 60px 0 80px;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-hero .lead {
        font-size: 1.2rem;
    }

    .stat-card {
        margin-bottom: 20px;
    }

    .content-section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .highlight-text {
        font-size: 1.2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero .lead {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-lg {
        width: 100%;
    }
}