/* ======================= About Page: Page Header ======================= */
.page-header {
    padding-top: 150px;
    padding-bottom: 80px;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1558036117-15d82a90b9b1?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 3.5rem;
}

/* ======================= About Page: Mission Section ======================= */
.mission-section .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.mission-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mission-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mission-content p {
    color: #666;
    margin-bottom: 30px;
}

/* ======================= About Page: Team Section ======================= */
.team-section {
    background-color: var(--bg-light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Flip Card Styles */
.team-card {
    background-color: transparent;
    height: 350px;
    perspective: 1000px; /* For 3D effect */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.team-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 12px;
}

.card-front {
    background-color: #fff;
    color: var(--text-dark);
}

.card-front img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.card-front-content {
    padding: 20px;
}

.card-front-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.card-front-content p {
    color: var(--primary-color);
    font-weight: 600;
}

.card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.card-back p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.card-back .social-links a {
    background-color: rgba(255,255,255,0.2);
}
.card-back .social-links a:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* ======================= About Page: Timeline Section ======================= */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* The vertical line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: -1;
    animation: growLine 2s ease-out forwards;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* The circle on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

/* Place items on the left and right */
.timeline-left {
    left: 0;
    text-align: right;
}

.timeline-right {
    left: 50%;
}

.timeline-right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--bg-light-gray);
    border-radius: 8px;
}

.timeline-content h3 {
    color: var(--primary-color);
}


/* ======================= Responsive adjustments for About Page ======================= */
@media (max-width: 992px) {
    .mission-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-left, .timeline-right {
        left: 0%;
        text-align: left;
    }
    
    .timeline-item::after {
        left: 10px;
    }
}