/* About Page Specific Styles */

/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="%23cbd5e1" fill-opacity="0.2"><circle cx="20" cy="20" r="1"/></g></svg>') repeat;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-highlight {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.about-hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Mission & Vision Section */
.mission-vision {
    padding: 6rem 0;
    background: white;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-card,
.vision-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e0f2fe;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.8s ease;
}

.mission-card:hover::before,
.vision-card:hover::before {
    left: 100%;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.mission-card:hover .card-icon,
.vision-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.card-description {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Values Section */
.values-section {
    padding: 6rem 0;
    background: #f9fafb;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #3b82f6;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.value-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 6rem 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.member-photo {
    margin-bottom: 1.5rem;
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 3rem;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.team-member:hover .photo-placeholder {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: scale(1.05);
}

.member-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #3b82f6;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.member-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-social .social-link {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.member-social .social-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><circle fill="%23ffffff" fill-opacity="0.05" cx="30" cy="30" r="2"/></g></svg>') repeat;
    opacity: 0.3;
}

.stats-section .section-title,
.stats-section .section-description {
    color: white;
    position: relative;
    z-index: 2;
}

.stats-section .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About CTA Section */
.about-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
}

.about-cta .cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.about-cta .cta-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.about-cta .cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 4rem 0 3rem;
    }
    
    .about-hero-title {
        font-size: 2.5rem;
    }
    
    .about-hero-description {
        font-size: 1.1rem;
    }
    
    .mission-vision,
    .values-section,
    .team-section,
    .stats-section,
    .about-cta {
        padding: 4rem 0;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mission-card,
    .vision-card {
        padding: 2rem 1.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-item {
        padding: 2rem 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-cta .cta-title {
        font-size: 2rem;
    }
    
    .about-cta .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .about-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .about-hero-title {
        font-size: 2rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-card,
    .vision-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .photo-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .member-name {
        font-size: 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-cta .cta-title {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .about-hero,
    .mission-vision,
    .values-section,
    .team-section,
    .stats-section,
    .about-cta {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .team-member:hover,
    .value-item:hover,
    .mission-card:hover,
    .vision-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Animation System - Properly Gated with Intersection Observer */
.animate-fade-up:not(.in-view),
.animate-slide-up:not(.in-view) {
    opacity: 0;
    transform: translateY(30px);
    transition: none; /* Prevent auto-triggering */
}

.animate-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-up.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Bounce-in Animation for Team Member Hovers */
.bounce-in {
    animation: bounceIn 0.5s ease forwards;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3) translateY(10px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) translateY(-5px);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9) translateY(2px);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Comprehensive Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Disable all animations */
    .animate-fade-up,
    .animate-slide-up,
    .animate-fade-up.in-view,
    .animate-slide-up.in-view {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .bounce-in {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    /* Disable hover transforms */
    .mission-card:hover,
    .vision-card:hover,
    .value-item:hover,
    .team-member:hover {
        transform: none !important;
    }

    .mission-card:hover .card-icon,
    .vision-card:hover .card-icon,
    .value-item:hover .value-icon,
    .team-member:hover .photo-placeholder {
        transform: none !important;
    }

    .member-social .social-link:hover {
        transform: none !important;
    }

    /* Disable pseudo-element animations */
    .mission-card::before,
    .vision-card::before {
        transition: none !important;
    }

    .mission-card:hover::before,
    .vision-card:hover::before {
        left: -100% !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .mission-card,
    .vision-card,
    .value-item,
    .team-member {
        border: 2px solid #000;
    }
    
    .card-icon,
    .value-icon {
        border: 2px solid #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .about-hero {
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    }
    
    .about-hero-title,
    .card-title,
    .value-title,
    .member-name {
        color: #f9fafb;
    }
    
    .about-hero-description,
    .card-description,
    .value-description,
    .member-description {
        color: #d1d5db;
    }
    
    .mission-vision,
    .team-section {
        background: #111827;
    }
    
    .values-section,
    .about-cta {
        background: #1f2937;
    }
    
    .mission-card,
    .vision-card,
    .value-item,
    .team-member {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
}