/**
 * About/CV Page Styles
 * LinkedIn-style resume layout
 */

/* ==================== About Page Container ==================== */
.about-page {
    padding: 0;
    background-color: var(--bg-primary);
}

/* ==================== Profile Header ==================== */
.profile-header {
    margin-bottom: var(--spacing-2xl);
}

.profile-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.profile-main {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    margin-top: -100px;
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-end;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-primary);
    background-color: var(--bg-card);
    flex-shrink: 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background-color: var(--bg-tertiary);
}

.profile-info {
    flex: 1;
    padding-bottom: var(--spacing-lg);
}

.profile-name {
    font-size: var(--text-5xl);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.profile-headline {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.profile-meta {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.profile-location {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.profile-contact {
    display: flex;
    gap: var(--spacing-md);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--accent-primary);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
}

.contact-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.contact-btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.contact-btn-secondary:hover {
    background-color: var(--accent-primary);
    color: var(--text-primary);
}

/* ==================== About Content ==================== */
.about-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-md);
}

.about-section {
    margin-bottom: 0;
}

.about-section+.about-section {
    margin-top: var(--spacing-md);
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: all var(--transition-base);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
}

.social-icon:hover {
    color: var(--accent-primary);
    background-color: var(--bg-tertiary);
}

.social-icon i {
    font-size: 1.1em;
}

.section-content {
    color: var(--text-secondary);

}

/* ==================== Summary Section ==================== */
.about-summary .section-content {
    margin-left: 72px;
}

.about-summary .section-content p {
    font-size: var(--text-base);
}

/* ==================== Experience Section (Timeline) ==================== */
.timeline {
    position: relative;
    padding-left: var(--spacing-2xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-2xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -52px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    border: 4px solid var(--bg-card);
    z-index: 1;
}

.timeline-content {
    padding-left: var(--spacing-lg);
}

.job-title {
    font-size: var(--text-2xl);
    color: var(--text-primary);

}

.job-company {
    font-size: var(--text-lg);
    color: var(--text-primary);
    font-weight: 500;
}

.job-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.job-description {
    margin-bottom: var(--spacing-md);
}

.job-achievements {
    padding: var(--spacing-md);
    background-color: var(--bg-tertiary);
    border-left: 3px solid var(--accent-primary);
    border-radius: var(--border-radius-sm);
    margin-top: var(--spacing-md);
}

.job-achievements strong {
    color: var(--accent-primary);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.job-achievements p {
    margin: 0;
    color: var(--text-secondary);
}

.job-achievements ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.job-achievements ul li {
    margin-bottom: var(--spacing-xs);
    padding-left: 0;
}

.job-achievements ul li:last-child {
    margin-bottom: 0;
}

/* ==================== Skills Section ==================== */
.skills-group {
    margin-bottom: var(--spacing-xl);
}

.skills-group:last-child {
    margin-bottom: 0;
}

.skills-category {
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.skill-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.skill-badge:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ==================== Education Section ==================== */
.education-item {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

.education-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.education-item:first-child {
    padding-top: 0;
}

.education-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius);
    color: var(--accent-primary);
}

.education-content {
    flex: 1;
}

.education-school {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.education-degree {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.education-meta {
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: flex;
    gap: var(--spacing-md);
}

/* ==================== Certifications Section ==================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.certification-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.certification-item:last-child {
    border-bottom: none;
}

.certification-item:hover .cert-icon {
    transform: scale(1.1);
}

.cert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    transition: transform var(--transition-base);
}

.cert-content {
    flex: 1;
}

.cert-name {
    font-size: var(--text-base);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.cert-org {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ==================== Project Highlights ==================== */
.projects-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.project-highlight-item {
    padding: var(--spacing-lg);
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-primary);
}

.project-highlight-name {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.project-highlight-desc {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.project-highlight-tech {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.project-highlight-tech strong {
    color: var(--accent-primary);
}

/* ==================== Volunteer Section ==================== */
.volunteer-item {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

.volunteer-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.volunteer-item:first-child {
    padding-top: 0;
}

.volunteer-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius);
    color: #ec4899;
}

.volunteer-content {
    flex: 1;
}

.volunteer-role {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.volunteer-org {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.volunteer-meta {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.volunteer-description {
    color: var(--text-secondary);
    margin: 0;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 968px) {
    .profile-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -100px;
    }

    .profile-photo {
        width: 160px;
        height: 160px;
    }

    .profile-name {
        font-size: var(--text-4xl);
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-contact {
        justify-content: center;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: var(--spacing-lg);
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-marker {
        left: -28px;
    }

    .timeline-content {
        padding-left: 0;
    }

    .about-summary .section-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .profile-banner {
        height: 150px;
        border-radius: 0;
    }

    .profile-main {
        margin-top: -80px;
        padding: 0 8px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: var(--text-3xl);
    }

    .profile-headline {
        font-size: var(--text-lg);
    }

    .about-content {
        padding: 0;
    }

    .about-section {
        padding: 0;
    }

    .section-title {
        font-size: var(--text-2xl);
        padding: 4px;
    }

    .profile-contact {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }

    /* Hide PDF download button on mobile */
    .btn-download-resume {
        display: none;
    }

    .education-item,
    .volunteer-item {
        flex-direction: column;
    }

    .job-meta {
        font-size: var(--text-xs);
    }

    .timeline {
        padding-left: var(--spacing-md);
    }

    .timeline-marker {
        left: -20px;
        width: 16px;
        height: 16px;
    }
}