/* About Page Specific Styles - Mobile First */

/* Active navigation link */
.nav__link--active {
    color: var(--primary-medium) !important;
}

.nav__link--active::after {
    width: 100% !important;
}

/* About Hero adjustments - Mobile First */
.about-hero {
    min-height: 90vh;
    padding-top: 100px;
}

/* Mission Section - Mobile First */
.mission-section {
    padding: 3rem 0;
    background: var(--background-secondary);
}

/* Statistics Section - Mobile First */
.stats-section {
    padding: 4rem 0;
    background: var(--gradient-overlay), var(--background-dark);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-yellow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.5rem;
    color: white; /* Fallback */
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.stat-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}

/* Leadership Section - Mobile First */
.leadership-section {
    padding: 4rem 0;
    background: var(--background);
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.leadership-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leadership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.leadership-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-medium);
}

.leadership-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.leadership-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.leadership-badge {
    display: inline-block;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.leadership-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge {
    background: var(--primary-light);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.leadership-list {
    list-style: none;
}

.leadership-list li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.leadership-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
    font-weight: bold;
}

/* Core Competencies Section - Mobile First */
.competencies-section {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.competencies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.competency-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-medium);
}

.competency-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent-yellow);
}

.competency-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.competency-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Genetic Analysis Section - Mobile First */
.genetic-section {
    padding: 4rem 0;
    background: var(--background);
}

.genetic-visualization {
    margin-top: 2rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.sequence-display {
    background: var(--background-dark);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow-x: auto;
}

.sequence-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sequence-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.sequence-status {
    font-size: 0.85rem;
    opacity: 0.9;
}

.sequence-code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.sequence-line {
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sequence-line.mutation {
    background: rgba(255, 193, 7, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-yellow);
}

.sequence-label {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.8rem;
}

.sequence-data {
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    word-break: break-all;
    font-size: 0.7rem;
}

.highlight {
    background: var(--accent-yellow);
    color: var(--background-dark);
    padding: 0 2px;
    border-radius: 4px;
    font-weight: bold;
}

.mutation-info {
    color: var(--accent-yellow);
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.analysis-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.result-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.result-value {
    color: var(--accent-yellow);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Touch optimizations for mobile */
.stat-card,
.leadership-card,
.competency-card {
    -webkit-tap-highlight-color: rgba(45, 122, 95, 0.1);
    touch-action: manipulation;
}

/* Tablet Responsive Design */
@media (min-width: 768px) {
    .about-hero {
        min-height: 80vh;
        padding-top: 120px;
    }
    
    .mission-section,
    .leadership-section,
    .competencies-section,
    .genetic-section {
        padding: 5rem 0;
    }
    
    .stats-section {
        padding: 5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .stat-card {
        padding: 2rem;
        min-height: 140px;
    }
    
    .stat-card:hover {
        transform: translateY(-5px);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .leadership-card {
        padding: 2rem;
    }
    
    .leadership-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
    
    .leadership-icon {
        font-size: 2.5rem;
    }
    
    .leadership-title {
        font-size: 1.5rem;
    }
    
    .leadership-list li {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }
    
    .competencies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .competency-card {
        padding: 1.5rem;
    }
    
    .competency-card:hover {
        transform: translateY(-3px);
    }
    
    .competency-card h4 {
        font-size: 1.2rem;
    }
    
    .competency-card p {
        font-size: 0.95rem;
    }
    
    .genetic-visualization {
        max-width: 800px;
        margin-top: 3rem;
    }
    
    .sequence-display {
        padding: 2rem;
    }
    
    .sequence-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .sequence-title {
        font-size: 1.2rem;
    }
    
    .sequence-status {
        font-size: 0.9rem;
    }
    
    .sequence-code {
        font-size: 0.9rem;
    }
    
    .sequence-line {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .sequence-label {
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .sequence-data {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .mutation-info {
        font-size: 0.8rem;
        margin-left: auto;
        margin-top: 0;
    }
    
    .analysis-results {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .result-label,
    .result-value {
        font-size: 0.9rem;
    }
}

/* Desktop Responsive Design */
@media (min-width: 1024px) {
    .about-hero {
        min-height: 80vh;
        padding-top: 140px;
    }
    
    .stats-section {
        padding: 6rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .leadership-section,
    .competencies-section,
    .genetic-section {
        padding: 6rem 0;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .competencies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .competencies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.stat-card.animate .stat-number {
    animation: countUp 0.8s ease 0.2s both;
}

.stat-card.animate .stat-label {
    animation: countUp 0.8s ease 0.4s both;
}

/* Loading states */
.sequence-display.loading .sequence-line {
    opacity: 0.3;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .stat-card {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .leadership-card,
    .competency-card {
        border: 2px solid #e2e8f0;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .stat-card,
    .leadership-card,
    .competency-card {
        transition: none;
    }
    
    .stat-number {
        animation: none;
    }
}