/* About Page Styles - Combined with Experience */

/* Page Header */
.page-header {
    padding: 120px 20px 60px;
    background: var(--gradient-primary);
    text-align: center;
    color: white;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* About Me Section */
.about-me-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.about-text p:nth-child(1) { animation-delay: 0.1s; }
.about-text p:nth-child(2) { animation-delay: 0.2s; }
.about-text p:nth-child(3) { animation-delay: 0.3s; }
.about-text p:nth-child(4) { animation-delay: 0.4s; }
.about-text p:nth-child(5) { animation-delay: 0.5s; }

.about-text strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Skills Chart Container */
.skills-chart-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.skills-chart-container h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.chart-wrapper {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.chart-wrapper canvas {
    max-width: 100% !important;
    height: auto !important;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Timeline Section */
.timeline-section {
    padding: 60px 20px;
    background: var(--bg-secondary);
}

.timeline-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.timeline-item {
    position: relative;
    flex: 1;
    text-align: center;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.6s;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--border-color);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
}

.timeline-content {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.timeline-content .company {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.timeline-content .description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Skills Section */
.skills-section {
    padding: 60px 20px;
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.category-icon {
    font-size: 2rem;
}

.category-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-previews {
    display: grid;
    gap: 15px;
}

.skill-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-preview:hover {
    background: var(--bg-primary);
    border-color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.preview-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.skill-preview h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.skill-preview p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills-balance-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    .about-me-section {
        padding: 60px 20px;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .skills-chart-container {
        padding: 20px 15px;
        margin: 0 -5px;
    }
    
    .skills-chart-container h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .chart-wrapper {
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .chart-wrapper canvas {
        max-width: 280px !important;
        max-height: 280px !important;
    }
    
    .chart-legend {
        gap: 10px;
        justify-content: center;
    }
    
    .legend-item {
        font-size: 0.8rem;
        flex: 0 1 auto;
        min-width: 0;
    }
    
    .timeline-wrapper {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .timeline-line {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        margin-bottom: 40px;
    }
    
    .timeline-item::before {
        left: -80px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-category-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .skills-chart-container {
        padding: 15px 10px;
    }
    
    .chart-wrapper canvas {
        max-width: 250px !important;
        max-height: 250px !important;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
    
    .legend-color {
        width: 10px;
        height: 10px;
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .timeline-content {
    background: var(--bg-secondary);
}

[data-theme="dark"] .skill-preview {
    background: var(--bg-secondary);
}

[data-theme="dark"] .skill-preview:hover {
    background: var(--bg-primary);
}