/**
 * About Page Enhanced Styles
 * Beautiful modern design with animations
 */

/* Smooth Scroll Animation */
.about-page section {
    opacity: 0;
    transform: translateY(40px);
    animation: sectionFadeIn 0.8s ease-out forwards;
}

.about-page section:nth-child(2) {
    animation-delay: 0.2s;
}

.about-page section:nth-child(3) {
    animation-delay: 0.3s;
}

.about-page section:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax Effect for Hero */
.about-hero {
    background-attachment: fixed;
}

/* Glowing Border Animation */
@keyframes glowBorder {
    0%, 100% {
        border-color: rgba(30, 84, 71, 0.3);
        box-shadow: 0 0 20px rgba(30, 84, 71, 0.1);
    }
    50% {
        border-color: rgba(30, 84, 71, 0.6);
        box-shadow: 0 0 40px rgba(30, 84, 71, 0.3);
    }
}

.mission-card:hover,
.value-card:hover {
    animation: glowBorder 2s ease-in-out infinite;
}

/* Number Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-number {
    animation: countUp 0.6s ease-out;
}

/* Floating Animation */
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.mission-icon,
.value-icon {
    display: inline-block;
    animation: floating 3s ease-in-out infinite;
}

.mission-card:nth-child(1) .mission-icon {
    animation-delay: 0s;
}

.mission-card:nth-child(2) .mission-icon {
    animation-delay: 0.5s;
}

.mission-card:nth-child(3) .mission-icon {
    animation-delay: 1s;
}

/* Gradient Text Shimmer */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.about-hero h1 {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Card Reveal Animation */
.mission-card,
.value-card,
.timeline-content {
    opacity: 0;
    transform: translateY(30px);
    animation: cardReveal 0.6s ease-out forwards;
}

.mission-card:nth-child(1) {
    animation-delay: 0.1s;
}

.mission-card:nth-child(2) {
    animation-delay: 0.2s;
}

.mission-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Effect for CTA Button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 84, 71, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(30, 84, 71, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 84, 71, 0);
    }
}

.cta-button {
    animation: pulse 2s infinite;
}

.cta-button:hover {
    animation: none;
}

/* Timeline Line Grow Animation */
.timeline::before {
    animation: lineGrow 2s ease-out;
}

@keyframes lineGrow {
    from {
        height: 0;
    }
    to {
        height: 100%;
    }
}

/* Gradient Background Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.about-hero {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Hover Glow Effect */
.stat-item::before,
.mission-card::before,
.value-card::before {
    transition: opacity 0.4s ease;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .about-hero {
        background-attachment: scroll;
    }
    
    .mission-card,
    .value-card {
        animation-delay: 0s !important;
    }
}

/* Loading State */
.about-page.loading section {
    opacity: 0;
    animation: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .about-hero,
    .cta-section {
        page-break-inside: avoid;
    }
    
    .mission-card,
    .value-card,
    .timeline-item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}

