/* About Page Styles - Mobile First Approach */
.about-section {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
    z-index: 2;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .content-card,
    .service-card,
    .value-card,
    .team-card,
    .advantage-card,
    .stat-card,
    .opportunity-card,
    .team-image,
    .cta-button {
        animation: none !important;
        transition: none !important;
    }
    
    .animated {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Glass Card for Content Sections */
.content-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    will-change: transform;
}

/* Touch device optimization for cards */
@media (hover: hover) {
    .content-card:hover {
        transform: perspective(1000px) rotateX(0deg) translateZ(20px);
    }
}

@media (hover: none) {
    .content-card {
        transform: perspective(1000px) rotateX(2deg);
    }
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* Story Section */
.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-paragraph {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.story-paragraph:last-child {
    margin-bottom: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    will-change: transform;
}

/* Touch device optimization for service cards */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
}

@media (hover: none) {
    .service-card:active {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Mission Section */
.mission-card {
    text-align: center;
}

.mission-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.mission-icon {
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(231, 60, 126, 0.5);
}

.mission-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-style: italic;
    text-align: center;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

@media (hover: hover) {
    .value-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
}

.value-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.value-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .team-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
}

.team-image-container {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.1);
    animation: float-profile 6s ease-in-out infinite;
}

@keyframes float-profile {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.team-name {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.team-position {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-bio {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.advantage-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

@media (hover: hover) {
    .advantage-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.advantage-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.advantage-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Impact Stats */
.impact-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 60, 126, 0.1), rgba(35, 166, 213, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

@media (hover: hover) {
    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        background: rgba(0, 0, 0, 0.3);
    }

    .stat-card:hover::before {
        opacity: 1;
    }
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-align: center;
}

.stat-period {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
    text-align: center;
}

.stat-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(231, 60, 126, 0.5);
}

/* Testimonial Section */
.testimonial-section {
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 60, 126, 0.1), rgba(35, 166, 213, 0.1));
    z-index: -1;
}

.testimonial-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(231, 60, 126, 0.5);
}

.testimonial-quote {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Responsive testimonial adjustments */
@media (min-width: 480px) {
    .testimonial-card {
        padding: 2rem;
        max-width: 90%;
    }

    .testimonial-icon {
        font-size: 2rem;
    }

    .testimonial-quote {
        font-size: 1.1rem;
    }

    .testimonial-author {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 2.5rem;
        max-width: 700px;
    }

    .testimonial-icon {
        font-size: 2.25rem;
    }

    .testimonial-quote {
        font-size: 1.2rem;
    }

    .testimonial-author {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        padding: 3rem;
        max-width: 800px;
    }
}

/* Opportunities Grid */
.opportunities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.opportunity-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .opportunity-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
}

.opportunity-icon {
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.opportunity-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.opportunity-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.opportunity-email {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.opportunity-email:hover {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Contact Details */
.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-location,
.contact-social {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a:hover {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.social-handle {
    color: var(--primary-color);
    font-weight: 500;
}

/* Call to Action */
.cta-section {
    text-align: center;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    display: inline-block;
    text-decoration: none !important;
    will-change: transform;
}

.cta-button.cta-secondary {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-secondary));
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-secondary), var(--secondary-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Touch device optimization for CTA button */
@media (hover: hover) {
    .cta-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        text-decoration: none !important;
    }

    .cta-button:hover::before {
        opacity: 1;
    }
}

@media (hover: none) {
    .cta-button:active {
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
}

.cta-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Remove text decorations from all links and buttons */
.cta-button,
.cta-button:hover,
.cta-button:focus,
.cta-button:active,
.cta-button:visited,
a.cta-button,
a.cta-button:hover,
a.cta-button:focus,
a.cta-button:active,
a.cta-button:visited {
    text-decoration: none !important;
    color: white !important;
}

/* Small mobile landscape and larger phones */
@media (min-width: 360px) {
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
        min-height: 110px;
    }

    .stat-value {
        font-size: 1.9rem;
    }

    .stat-icon {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

/* Large phones */
@media (min-width: 414px) {
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
        min-height: 130px;
    }

    .stat-value {
        font-size: 2.1rem;
    }

    .stat-icon {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* Small tablets */
@media (min-width: 576px) {
    .impact-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
        min-height: 140px;
    }

    .stat-value {
        font-size: 2.2rem;
    }

    .stat-icon {
        font-size: 1.9rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .opportunities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-section {
        flex-direction: row;
        justify-content: center;
    }
}

/* Medium tablets portrait */
@media (min-width: 640px) {
    .impact-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .stat-card {
        padding: 1.5rem;
        min-height: 150px;
    }

    .stat-value {
        font-size: 2.4rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .team-image {
        width: 180px;
        height: 180px;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
    }
}

/* Tablets landscape and small laptops */
@media (min-width: 768px) {
    .impact-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.75rem;
        min-height: 160px;
    }

    .stat-value {
        font-size: 2.6rem;
    }

    .stat-icon {
        font-size: 2.1rem;
    }

    .contact-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Laptops and larger tablets landscape */
@media (min-width: 992px) {
    .impact-stats {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.75rem;
        max-width: 100%;
    }

    .stat-card {
        padding: 1.75rem;
        min-height: 170px;
    }

    .stat-value {
        font-size: 2.8rem;
    }

    .stat-icon {
        font-size: 2.3rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-period {
        font-size: 0.7rem;
    }
}

@media (min-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }

    .content-card {
        padding: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.25rem;
        margin-bottom: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-top: 3rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .value-card {
        padding: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }

    .team-image {
        width: 200px;
        height: 200px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .advantage-card {
        padding: 2rem;
    }

    .opportunities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .opportunity-card {
        padding: 2rem;
    }

    .mission-content {
        flex-direction: row;
        text-align: left;
    }

    .mission-text {
        text-align: left;
    }

    .cta-button {
        padding: 1rem 3rem;
        font-size: 1.25rem;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-stats {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-card {
        padding: 2rem;
        min-height: 180px;
    }

    .stat-value {
        font-size: 3rem;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .stat-period {
        font-size: 0.75rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1440px) {
    .impact-stats {
        grid-template-columns: repeat(5, 1fr);
        gap: 2.5rem;
        max-width: 1400px;
    }

    .stat-card {
        padding: 2.5rem;
        min-height: 200px;
    }

    .stat-value {
        font-size: 3.5rem;
    }

    .stat-icon {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .stat-period {
        font-size: 0.8rem;
    }

    .testimonial-card {
        max-width: 900px;
        padding: 3.5rem;
    }
}

/* 4K and ultra-wide displays */
@media (min-width: 1920px) {
    .impact-stats {
        max-width: 1600px;
        gap: 3rem;
    }

    .stat-card {
        padding: 3rem;
        min-height: 220px;
    }

    .stat-value {
        font-size: 4rem;
    }

    .stat-icon {
        font-size: 3.5rem;
    }

    .testimonial-card {
        max-width: 1000px;
        padding: 4rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 320px) {
    .content-card {
        padding: 1rem;
        margin: 0 0.5rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .team-image {
        width: 100px;
        height: 100px;
    }

    .impact-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem;
        min-height: 90px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-icon {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0.25px;
    }

    .stat-period {
        font-size: 0.6rem;
    }

    .testimonial-card {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .testimonial-quote {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .testimonial-author {
        font-size: 0.75rem;
    }
}

/* Responsive utilities */
@media (max-width: 575px) {
    .impact-stats {
        padding: 0 0.5rem;
    }

    .stat-label,
    .stat-period {
        word-break: break-word;
        hyphens: auto;
    }
}

/* Prevent horizontal scroll */
.impact-stats {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure consistent aspect ratios */
.stat-card {
    aspect-ratio: auto;
    width: 100%;
    box-sizing: border-box;
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .stat-icon {
        transform: scale(0.95);
    }
}

/* Animation classes for JavaScript */
.animated {
    opacity: 1 !important;
    transform: perspective(1000px) rotateX(5deg) translateY(0) !important;
}
