/* Enhanced About Page Specific Styles */

/* Mission & Vision Section */
.mission-vision {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.mission-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(231, 76, 60, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
}

.mission-content {
    position: relative;
    z-index: 2;
}

.mission-content h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.mission-content h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: var(--transition);
}

.mission-content:hover h2::after {
    width: 120px;
}

.mission-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 3rem;
    position: relative;
    padding: 0 2rem;
}

.mission-content p::before,
.mission-content p::after {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    opacity: 0.3;
    font-family: serif;
}

.mission-content p::before {
    top: -1rem;
    left: 0;
}

.mission-content p::after {
    bottom: -2rem;
    right: 0;
}

/* Enhanced Values Section */
.values-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.values-section h2 {
    color: var(--primary-color);
    margin-bottom: 4rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.values-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.value-card {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: var(--transition-slow);
}

.value-card:hover::before {
    left: 100%;
}

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.value-card:hover::after {
    transform: scaleX(1);
}

.value-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: inline-block;
    transition: var(--transition);
    position: relative;
}

.value-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    transition: var(--transition);
}

.value-card:hover .value-icon::before {
    transform: translate(-50%, -50%) scale(1.2);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.3rem;
    position: relative;
}

.value-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        var(--shadow-xl),
        0 15px 40px rgba(44, 62, 80, 0.15);
}

/* Enhanced Team Section */
.team-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.team-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 800;
}

.team-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.7;
    position: relative;
    padding: 0 2rem;
}

.team-member {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition-slow);
}

.team-member:hover::before {
    left: 100%;
}

.member-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid transparent;
    background: var(--gradient-primary);
    padding: 3px;
    position: relative;
    transition: var(--transition);
}

.member-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-accent);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.team-member:hover .member-image::before {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
    filter: grayscale(0.2);
}

.team-member:hover .member-image img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
}

.team-member h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
    transition: var(--transition);
}

.team-member:hover h3::after {
    width: 50px;
}

.team-member p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 
        var(--shadow-xl),
        0 15px 40px rgba(44, 62, 80, 0.15);
}

/* Enhanced Impact Section */
.impact-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(231, 76, 60, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(52, 152, 219, 0.2) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite;
}

.impact-content {
    position: relative;
    z-index: 2;
}

.impact-section h2 {
    color: white;
    margin-bottom: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
}

.impact-section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
}

.impact-section p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.impact-stats {
    margin-top: 3rem;
    position: relative;
}

.impact-stat {
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
    transition: var(--transition);
}

.impact-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    opacity: 0;
    transition: var(--transition);
}

.impact-stat:hover::before {
    opacity: 1;
}

.impact-stat:hover {
    transform: translateY(-5px);
}

.impact-stat h3 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
}

.impact-stat h3::after {
    content: '+';
    position: absolute;
    top: 0;
    right: -20px;
    font-size: 2rem;
    color: var(--accent-color);
}

.impact-stat p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .mission-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .mission-content p::before,
    .mission-content p::after {
        font-size: 3rem;
    }
    
    .value-card,
    .team-member {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .impact-stat {
        margin-bottom: 2rem;
        padding: 2rem 1rem;
    }
    
    .impact-stat h3 {
        font-size: 2.5rem;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
    
    .team-intro {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .mission-content h2,
    .values-section h2,
    .team-section h2,
    .impact-section h2 {
        font-size: 2rem;
    }
    
    .value-icon {
        font-size: 3rem;
    }
    
    .impact-stat h3 {
        font-size: 2rem;
    }
    
    .team-member {
        padding: 2rem 1rem;
    }
}

/* Enhanced Animations */
.team-member {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
    opacity: 0;
    transform: translateY(40px);
}

.value-card {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
    opacity: 0;
    transform: translateY(40px);
}

.impact-stat {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation Delays */
.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }
.team-member:nth-child(5) { animation-delay: 0.5s; }
.team-member:nth-child(6) { animation-delay: 0.6s; }

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }
.value-card:nth-child(5) { animation-delay: 0.5s; }
.value-card:nth-child(6) { animation-delay: 0.6s; }

.impact-stat:nth-child(1) { animation-delay: 0.1s; }
.impact-stat:nth-child(2) { animation-delay: 0.2s; }
.impact-stat:nth-child(3) { animation-delay: 0.3s; }
.impact-stat:nth-child(4) { animation-delay: 0.4s; }

/* Social Proof Elements */
.social-proof {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.8;
}

.client-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.client-logo:hover {
    transform: scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Timeline for Company History */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 50%;
    padding: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(odd)::before {
    right: -6px;
}

.timeline-item:nth-child(even)::before {
    left: -6px;
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .team-member,
    .value-card,
    .impact-stat,
    .member-image,
    .value-icon {
        animation: none !important;
        transition: none !important;
    }
    
    .mission-vision::before,
    .impact-section::before {
        animation: none !important;
    }
    
    .team-member:hover .member-image::before {
        animation: none !important;
    }
}