/* ========================================
   About Page Styles
   ======================================== */

/* About Hero */
.about-hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    padding: 4rem 0;
    text-align: center;
    margin-top: 0; /* Remove negative margin since body now has proper padding */
}

.about-hero .page-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.about-hero .subtitle {
    font-size: 1.25rem;
    color: var(--white);
    opacity: 0.95;
}

/* About Content */
.about-content {
    padding: 4rem 0;
    background: var(--gray-50);
}

/* Intro Section */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.intro-text h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.intro-text .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
}

.intro-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Values Section */
.values-section {
    margin-bottom: 5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Journey Timeline */
.journey-section {
    margin-bottom: 5rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
    transform: translateX(-50%);
    opacity: 0.3;
}

/* Animated progress line */
.timeline-progress {
    position: absolute;
    left: calc(50% - 1px);
    top: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-light), var(--primary));
    height: 0;
    transition: height 0.3s ease-out;
    z-index: 1;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    gap: 2rem;
}

.timeline-item:nth-child(even) .timeline-content:first-child {
    opacity: 0;
    pointer-events: none;
}

.timeline-item:nth-child(odd) .timeline-content:last-child {
    opacity: 0;
    pointer-events: none;
}

.timeline-year {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-year::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-light);
    border-radius: 50%;
    z-index: 3;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all var(--transition-base);
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.timeline-item:nth-child(odd) .timeline-content:first-child::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--white);
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content:last-child::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--white) transparent transparent;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-content h3 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-content h3::before {
    content: attr(data-year);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    min-width: 60px;
}

.timeline-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    margin-bottom: 5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    opacity: 0.1;
    z-index: 0;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
    display: block;
}

.team-member h3 {
    font-size: 1.125rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.team-member p {
    color: var(--primary);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem;
    border-radius: var(--radius-xl);
    color: var(--white);
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary);
}

.cta-section .btn:hover {
    background: var(--gray-100);
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: rotateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(217, 119, 6, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(217, 119, 6, 0.8);
    }
}

/* Pulse animation for timeline dots */
.timeline-year.pulse::before {
    animation: pulse 0.8s ease-out;
}

/* Ensure dots stay centered during animation */
.timeline-year {
    flex-shrink: 0;
}

/* Badge animation */
.timeline-content h3.animate-badge::before {
    animation: badgeGlow 1.5s ease-in-out;
}

/* Team member entrance animation */
.team-member.team-animate-in {
    animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Value card 3D rotation */
.value-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Intro section animation */
.about-intro {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* Section titles animation */
.section-title {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Animated timeline line effect */
.timeline-progress::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-progress {
        left: 14px;
    }
    
    .timeline-item {
        grid-template-columns: 1fr !important;
        margin-bottom: 2rem;
    }
    
    .timeline-item .timeline-content:first-child {
        display: none !important;
    }
    
    .timeline-item:nth-child(even) .timeline-content:last-child,
    .timeline-item:nth-child(odd) .timeline-content:last-child {
        opacity: 1;
        pointer-events: auto;
    }
    
    .timeline-year {
        width: 28px;
        height: 28px;
        position: absolute;
        left: 1px;
    }
    
    .timeline-year::before {
        width: 16px;
        height: 16px;
        border-width: 3px;
    }
    
    .timeline-content h3::before {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        min-width: 50px;
    }
    
    .timeline-content {
        margin-left: 30px !important;
    }
    
    .timeline-content::before,
    .timeline-content::after {
        display: none !important;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .about-hero .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}