/*
 * About Page Styles
 * Professional company story and team showcase with engineering theme
 */

/* Force loading test - temporary */
body.page-template-page-about {
    background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%) !important;
}

/* About Header */
.about-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--engineering-blue) 100%);
    color: var(--white);
    padding: var(--space-20) 0 var(--space-16);
    position: relative;
    overflow: hidden;
}

.about-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 35px 35px, 20px 20px;
    opacity: 0.6;
    animation: float-pattern 20s linear infinite;
}

@keyframes float-pattern {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(10px) translateY(-10px); }
    75% { transform: translateX(-5px) translateY(5px); }
    100% { transform: translateX(0) translateY(0); }
}

.about-header .page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.about-header .page-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-header .page-description {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: var(--leading-relaxed);
}

/* Company Story Section */
.company-story-section {
    padding: var(--space-20) 0;
    background: var(--white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.story-text {
    max-width: 600px;
}

.story-header {
    margin-bottom: var(--space-8);
}

.section-title {
    font-size: var(--text-4xl);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-weight: var(--font-bold);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.story-paragraphs p {
    margin-bottom: var(--space-6);
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.story-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--white) 100%);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--engineering-blue);
    margin-bottom: var(--space-2);
    display: block;
}

.highlight-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--font-medium);
}

/* Story Media */
.story-media {
    position: relative;
}

.story-image {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    aspect-ratio: 4/3;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.story-image:hover img {
    transform: scale(1.05);
}

.story-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-all);
    backdrop-filter: blur(5px);
}

.story-image:hover .story-video-overlay {
    opacity: 1;
}

.play-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-full);
    padding: var(--space-6);
    cursor: pointer;
    transition: var(--transition-all);
    box-shadow: var(--shadow-xl);
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--accent-color);
    color: var(--white);
}

.play-btn i {
    font-size: var(--text-2xl);
}

.play-btn span {
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}

.story-stats {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.stat-card {
    flex: 1;
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: var(--transition-all);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: var(--white);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: var(--text-xl);
}

.stat-content .stat-number {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--engineering-blue);
    margin-bottom: var(--space-1);
}

.stat-content .stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--font-medium);
}

/* Mission, Vision, Values Section */
.mission-vision-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--white) 100%);
}

.section-header {
    margin-bottom: var(--space-16);
}

.section-header .section-title {
    text-align: center;
}

.section-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.mvv-card {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition-all);
    position: relative;
    overflow: hidden;
}

.mvv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--engineering-blue));
    transition: var(--transition-all);
}

.mvv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.mvv-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.mvv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--engineering-blue));
    color: var(--white);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 2;
}

.mvv-icon i {
    font-size: var(--text-2xl);
}

.mvv-title {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-weight: var(--font-semibold);
    position: relative;
    z-index: 2;
}

.mvv-description {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 2;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    position: relative;
    z-index: 2;
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition-all);
}

.value-item:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateX(4px);
}

.value-item i {
    color: var(--engineering-green);
    transition: var(--transition-all);
}

.value-item:hover i {
    color: var(--white);
}

/* About Team Section */
.about-team-section {
    padding: var(--space-20) 0;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition-all);
    position: relative;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.team-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--engineering-blue), var(--primary-color));
    color: var(--white);
    font-size: 3rem;
}

.team-social {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: flex;
    gap: var(--space-2);
    opacity: 0;
    transition: var(--transition-all);
}

.team-card:hover .team-social {
    opacity: 1;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-all);
    box-shadow: var(--shadow-md);
}

.social-link:hover {
    transform: scale(1.1);
    background: var(--accent-color);
    color: var(--white);
}

.team-content {
    padding: var(--space-6);
}

.team-name {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-weight: var(--font-semibold);
}

.team-position {
    color: var(--engineering-blue);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
}

.team-experience {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent-color);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
    font-weight: var(--font-medium);
}

.team-bio {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    font-size: var(--text-sm);
}

.team-cta {
    margin-top: var(--space-8);
}

/* Expertise Section */
.expertise-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--white) 100%);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.expertise-card {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition-all);
    position: relative;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: var(--white);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.expertise-icon i {
    font-size: var(--text-2xl);
}

.expertise-title {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-weight: var(--font-semibold);
}

.expertise-description {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.expertise-features {
    list-style: none;
    padding: 0;
}

.expertise-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding: var(--space-2);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    transition: var(--transition-all);
}

.expertise-features li::before {
    content: '→';
    color: var(--accent-color);
    font-weight: var(--font-bold);
}

.expertise-features li:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateX(4px);
}

.expertise-features li:hover::before {
    color: var(--white);
}

/* Timeline Section */
.timeline-section {
    padding: var(--space-20) 0;
    background: var(--white);
}

/* Provide comfortable horizontal padding inside this section */
.timeline-section .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--engineering-blue));
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-12);
    position: relative;
    width: 100%;
    /* create breathing room between year badge and content on both sides */
    gap: clamp(2rem, 5vw, 4rem);
}

/* Ensure text doesn’t sit on the center line */
.timeline-item:nth-child(odd) .timeline-content { /* left side items */
    padding-right: var(--space-12);
}
.timeline-item:nth-child(even) .timeline-content { /* right side items */
    padding-left: var(--space-12);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-year {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: var(--white);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    min-width: 120px;
    flex: 0 0 120px; /* keep a predictable width to compute half layout */
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.timeline-content {
    flex: 0 1 calc(50% - 160px); /* ensure content stays on its side of the line */
    padding: var(--space-2) var(--space-8);
    max-width: 100%;
}

.timeline-title {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-weight: var(--font-semibold);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* About CTA Section */
.about-cta-section {
    padding: var(--space-20);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--gray-800) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(44, 90, 160, 0.1) 2px, transparent 2px);
    background-size: 50px 50px, 70px 70px;
    opacity: 0.6;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-6);
    color: var(--white);
    font-weight: var(--font-bold);
}

.cta-description {
    font-size: var(--text-xl);
    margin-bottom: var(--space-10);
    opacity: 0.9;
    line-height: var(--leading-relaxed);
}

.cta-buttons {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--white);
    border: none;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* keep a little gap on tablet too */
    .timeline-item { gap: var(--space-8); }
    .timeline-content { flex-basis: calc(50% - 140px); }
    .story-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .story-media {
        order: -1;
    }
    
    .mvv-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: var(--space-6);
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: var(--space-12);
    }
    
    .timeline-item .timeline-content {
        text-align: left !important;
    }
}

@media (max-width: 768px) {
    /* Increase section side padding for better readability on tablets/phones */
    .timeline-section .container { padding-left: var(--space-6); padding-right: var(--space-6); }
    .about-header .page-title {
        font-size: var(--text-3xl);
    }
    
    .about-header .page-description {
        font-size: var(--text-lg);
    }
    
    .story-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--space-6);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    /* Extra breathing room on small phones */
    .timeline-section .container { padding-left: var(--space-8); padding-right: var(--space-8); }
    .timeline-item { flex-direction: column !important; gap: var(--space-4); }
    .timeline-content { flex-basis: auto; max-width: 100%; padding: 0; text-align: left !important; }
    .company-story-section,
    .mission-vision-section,
    .about-team-section,
    .expertise-section,
    .timeline-section {
        padding: var(--space-12) 0;
    }
    
    .about-header {
        padding: var(--space-12) 0 var(--space-8);
    }
    
    .about-cta-section {
        padding: var(--space-12);
    }
    
    .story-highlights {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        gap: var(--space-3);
        padding: var(--space-4);
    }
    
    .timeline-item {
        padding-left: var(--space-8);
    }
    
    .timeline-content {
        padding: 0 var(--space-4);
    }
    
    .cta-title {
        font-size: var(--text-2xl);
    }
    
    .cta-description {
        font-size: var(--text-lg);
    }
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Loading Animation */
.no-team-message {
    text-align: center;
    padding: var(--space-12);
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    color: var(--text-muted);
}

/* Professional hover enhancements */
.mvv-values {
    border: 2px solid var(--accent-color);
}

.mvv-values .mvv-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

/* Advanced animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}