/* =============================================
   ABOUT PAGE - BIOGRAPHY STYLES
   ============================================= */

/* Page Header */
.page-header {
    background: #1a3948;
    color: var(--light-text);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: transparent;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.about-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: transparent;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease-out;
    position: relative;
    z-index: 2;
}

/* Biography Section */
.biography-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
}

.biography-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #f1e6c7;
    transform: translateX(-50%);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.15s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.25s; }
.timeline-item:nth-child(5) { animation-delay: 0.3s; }
.timeline-item:nth-child(6) { animation-delay: 0.35s; }
.timeline-item:nth-child(7) { animation-delay: 0.4s; }
.timeline-item:nth-child(8) { animation-delay: 0.45s; }
.timeline-item:nth-child(9) { animation-delay: 0.5s; }
.timeline-item:nth-child(10) { animation-delay: 0.55s; }
.timeline-item:nth-child(11) { animation-delay: 0.6s; }
.timeline-item:nth-child(12) { animation-delay: 0.65s; }
.timeline-item:nth-child(13) { animation-delay: 0.7s; }
.timeline-item:nth-child(14) { animation-delay: 0.75s; }
.timeline-item:nth-child(15) { animation-delay: 0.8s; }
.timeline-item:nth-child(16) { animation-delay: 0.85s; }

/* Alternate timeline left and right */
.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: calc(50% + 2rem);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #a1b27e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--light-text);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 3px solid var(--light-bg);
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 20px rgba(245, 152, 52, 0.5);
}

.timeline-content {
    background: var(--light-text);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.5s ease-out;
}

.timeline-item:hover .timeline-content::before {
    left: 100%;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--secondary-color);
}

.timeline-item:nth-child(even):hover .timeline-content {
    border-left: 4px solid var(--secondary-color);
    border-right: none;
}

.timeline-item:nth-child(odd):hover .timeline-content {
    border-right: 4px solid var(--secondary-color);
    border-left: none;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.timeline-content p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Achievements Section */
.achievements-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--light-text);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.achievement-card:nth-child(1) { animation-delay: 0.1s; }
.achievement-card:nth-child(2) { animation-delay: 0.2s; }
.achievement-card:nth-child(3) { animation-delay: 0.3s; }
.achievement-card:nth-child(4) { animation-delay: 0.4s; }
.achievement-card:nth-child(5) { animation-delay: 0.5s; }
.achievement-card:nth-child(6) { animation-delay: 0.6s; }

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #a1b27e;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.achievement-card:hover::before {
    transform: scaleX(1);
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

.achievement-card:nth-child(1) .achievement-icon { animation-delay: 0s; }
.achievement-card:nth-child(2) .achievement-icon { animation-delay: 0.2s; }
.achievement-card:nth-child(3) .achievement-icon { animation-delay: 0.4s; }
.achievement-card:nth-child(4) .achievement-icon { animation-delay: 0.6s; }
.achievement-card:nth-child(5) .achievement-icon { animation-delay: 0.8s; }
.achievement-card:nth-child(6) .achievement-icon { animation-delay: 1s; }

.achievement-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.achievement-card p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CTA Links */
.cta-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .biography-section::before {
        display: none;
    }

    .timeline-item {
        padding: 0;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 80px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-marker {
        left: 0;
        transform: translateX(-50%);
    }

    .timeline-item:hover .timeline-marker {
        transform: translateX(-50%) scale(1.15);
    }

    .timeline-content {
        border-left: 4px solid var(--secondary-color) !important;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .cta-links {
        flex-direction: column;
    }

    .cta-links .btn {
        width: 100%;
    }
}

/* Overview Section */
.overview-section {
    padding: 80px 0;
    background: #ffffff;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 1rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-card {
    background: #f59834;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(245, 152, 52, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(245, 152, 52, 0.3);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.95;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background: #f0ebe1;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-card p {
    color: #333333;
    line-height: 1.6;
}

/* Impact Section */
.impact-section {
    padding: 80px 0;
    background: #ffffff;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.impact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.impact-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.impact-card p {
    color: #333333;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.impact-list {
    list-style: none;
}

.impact-list li {
    padding: 0.7rem 0;
    color: #666;
    line-height: 1.6;
}

.impact-list li::before {
    content: '• ';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .overview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-header h1 {
        font-size: 3rem;
    }

    .overview-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 60px 0;
        min-height: auto;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .overview-text h2 {
        font-size: 1.6rem;
    }

    .impact-card h3 {
        font-size: 1.3rem;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .achievement-icon {
        font-size: 2.5rem;
    }

    .achievement-card h4 {
        font-size: 1.1rem;
    }
}

