/* ===================================
   ABOUT PAGE SPECIFIC STYLES
   =================================== */

/* Page Header */
.page-header {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    margin-top: 80px; /* Account for fixed header */
}

.page-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(34, 34, 36, 0.9) 0%,
        rgba(18, 17, 19, 0.9) 100%
    ),
    url('../images/about-header-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.page-header-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.page-title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.page-title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.page-title-line:nth-child(3) {
    animation-delay: 0.4s;
}

/* About Content */
.about-content {
    padding: 6rem 0;
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    order: 1;
}

.about-image {
    order: 2;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.2;
}

.section-title.text-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-line {
    display: block;
}

.content-block {
    margin-bottom: 2rem;
}

.content-block p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 1.5rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

/* Values Section */
.values {
    padding: 8rem 0;
    background-color: #f8f9fa;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.value-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.value-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Team Section */
.team {
    padding: 8rem 0;
    background: linear-gradient(135deg,rgba(34, 34, 36, 0.9) 0%, rgba(18, 17, 19, 0.9) 100%);
    color: #fff;
}

.team-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.team .section-title {
    color: #fff;
    margin-bottom: 2.5rem;
}

.team .content-block p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

/* Stats Section */
.stats {
    padding: 6rem 0;
    background-color: #000;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-number::after {
    content: '+';
    color: #667eea;
}

.stat-number[data-count="6"]::after {
    content: 'B+';
}

.stat-label {
    font-size: 1rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text {
        order: 2;
        text-align: center;
    }
    
    .about-image {
        order: 1;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .page-header {
        min-height: 50vh;
        margin-top: 70px;
    }
    
    .about-content {
        padding: 4rem 0;
    }
    
    .values {
        padding: 6rem 0;
    }
    
    .team {
        padding: 6rem 0;
    }
    
    .stats {
        padding: 4rem 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
}

/* Animation for stats counting */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item.animate-in .stat-number {
    animation: countUp 0.6s ease forwards;
}

/* Intersection Observer animation classes */
.value-card,
.stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-card.animate-in,
.stat-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for value cards */
.value-card:nth-child(1).animate-in { transition-delay: 0.1s; }
.value-card:nth-child(2).animate-in { transition-delay: 0.2s; }
.value-card:nth-child(3).animate-in { transition-delay: 0.3s; }
.value-card:nth-child(4).animate-in { transition-delay: 0.4s; }

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .page-title-line {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .value-card,
    .stat-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .value-card:hover,
    .stat-item:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .value-card {
        border: 2px solid #333;
    }
    
    .value-icon {
        border: 2px solid #fff;
    }
}
