/* About Page Specific Styles */

/* Story Section */
.story-content {
    animation: fadeInLeft 0.8s ease-out;
}

.story-image {
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mission & Vision Cards */
.mission-card,
.vision-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
}

.mission-icon,
.vision-icon {
    transition: transform 0.3s ease;
}

.mission-card:hover .mission-icon,
.vision-card:hover .vision-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Values Section */
.value-card {
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.15);
}

/* Stats Section */
.stat-card {
    animation: fadeInUp 0.6s ease-out;
}

.stat-number {
    animation: countUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #2563eb;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    z-index: 2;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 8px;
}

.timeline-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Mobile Timeline */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 50px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .story-content,
    .story-image {
        animation: fadeInUp 0.8s ease-out;
    }

    .stat-number {
        font-size: 3rem;
    }
}

/* Hover effects for icons */
.mission-icon svg,
.vision-icon svg,
.value-icon svg {
    transition: transform 0.3s ease;
}

.mission-card:hover .mission-icon svg,
.vision-card:hover .vision-icon svg,
.value-card:hover .value-icon svg {
    transform: scale(1.1);
}
