/* Enhanced About Page Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #ff6b6b, #ee5a24);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --hover-shadow: 0 20px 40px rgba(0,0,0,0.15);
    scroll-behavior: smooth;
}

.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0px, 0px); }
    25% { transform: translate(-10px, -10px); }
    50% { transform: translate(10px, -20px); }
    75% { transform: translate(-10px, -10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.stats-counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.stats-counter::after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    top: 0;
    margin-left: 5px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.stats-counter.visible::after {
    opacity: 1;
    transform: translateX(0);
}

.hero-section .stats-counter {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.stats-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(8deg);
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    transition: transform 0.4s ease;
    transform: scale(0.8);
}

.feature-card:hover .feature-icon::after {
    transform: scale(1.2);
}

.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-gradient);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #667eea;
}

.timeline-year {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.team-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border: none;
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.team-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--card-shadow);
    margin: 20px auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.team-card:hover .team-image {
    transform: scale(1.1) rotate(5deg);
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icons a:hover {
    transform: translateY(-3px);
    color: white;
}

.social-icons a::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.social-icons a:hover::after {
    transform: rotate(45deg) translate(100%, 100%);
}

.cta-section {
    background: var(--primary-gradient);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.cta-content {
    z-index: 2;
}

.btn-gradient {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,107,107,0.3);
    color: white;
}

.btn-outline-gradient {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 13px 28px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-gradient:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

.section-title {
    position: relative;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-overlay {
    background: linear-gradient(45deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
}

.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Testimonials Section */
.testimonial-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.testimonial-image-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.testimonial-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-card:hover .testimonial-image {
    transform: scale(1.1) rotate(5deg);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    line-height: 1.6;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    font-family: Georgia, serif;
    color: #ddd;
    position: absolute;
    opacity: 0.3;
}

.testimonial-text::before {
    top: -20px;
    left: -10px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.testimonial-role {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Interactive elements */
.stat-item {
    position: relative;
    cursor: pointer;
}

.stat-item:hover {
    transform: scale(1.05);
}

.feature-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,0.9), rgba(118,75,162,0.9));
    transition: top 0.3s ease;
    opacity: 0;
}

.feature-card:hover::after {
    top: 0;
    opacity: 1;
}

.feature-card .card-body {
    position: relative;
    z-index: 2;
}

/* Loading animations */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Loading Animation */
.btn-gradient.loading,
.btn-outline-gradient.loading {
    position: relative;
    pointer-events: none;
}

.btn-gradient.loading::before,
.btn-outline-gradient.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .stats-counter {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-item::before {
        left: -34px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    
    .stats-counter {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .team-image {
        width: 100px;
        height: 100px;
    }
    
    .btn-gradient,
    .btn-outline-gradient {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .stats-counter {
        font-size: 1.8rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding: 15px;
    }
    
    .cta-section {
        border-radius: 15px;
        padding: 30px !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
}

/* Enhanced Print Styles */
@media print {
    .hero-section,
    .cta-section {
        background: #f8f9fa !important;
        color: #333 !important;
        clip-path: none;
    }
    
    .stats-card,
    .team-card,
    .feature-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .social-icons,
    .feature-icon::after,
    .timeline::before,
    .timeline-item::before,
    .section-title::after {
        display: none !important;
    }
    
    .btn-gradient,
    .btn-outline-gradient {
        border: 1px solid #333;
        background: none !important;
        color: #333 !important;
        box-shadow: none !important;
    }
}