/* Portfolio Hero Section */
.portfolio-hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 60px;
}

.portfolio-title {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: bold;
}

body.light .portfolio-title {
    color: #1a1a1a;
}

body.dark .portfolio-title {
    color: #ffffff;
}

.portfolio-description {
    font-size: 20px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

body.light .portfolio-description {
    color: #4a5568;
}

body.dark .portfolio-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Section Title */
.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: bold;
}

body.light .section-title {
    color: #1a1a1a;
}

body.dark .section-title {
    color: #ffffff;
}

/* Timeline Section */
.timeline-section {
    margin-bottom: 80px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.3));
}

.timeline-item {
    position: relative;
    padding-bottom: 50px;
}

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

.timeline-dot {
    position: absolute;
    left: -46px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.8);
    border: 3px solid;
    z-index: 1;
}

body.light .timeline-dot {
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

body.dark .timeline-dot {
    border-color: #0f0f0f;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.timeline-date {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

body.light .timeline-date {
    background: rgba(59, 130, 246, 0.1);
    color: rgba(59, 130, 246, 0.9);
}

body.dark .timeline-date {
    background: rgba(59, 130, 246, 0.2);
    color: rgba(59, 130, 246, 1);
}

.timeline-content {
    padding: 25px;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light .timeline-content {
    background: #f7fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light .timeline-content:hover {
    background: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.dark .timeline-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .timeline-content:hover {
    background: #252525;
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.timeline-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

body.light .timeline-title {
    color: #1a1a1a;
}

body.dark .timeline-title {
    color: #ffffff;
}

.timeline-role {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgba(59, 130, 246, 0.9);
}

.timeline-desc {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

body.light .timeline-desc {
    color: #4a5568;
}

body.dark .timeline-desc {
    color: rgba(255, 255, 255, 0.8);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Education Section */
.education-section {
    margin-bottom: 80px;
}

.education-card {
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

body.light .education-card {
    background: #f7fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light .education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.dark .education-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.education-school {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

body.light .education-school {
    color: #1a1a1a;
}

body.dark .education-school {
    color: #ffffff;
}

.education-degree {
    font-size: 16px;
    font-weight: 600;
    color: rgba(59, 130, 246, 0.9);
}

.education-date {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

body.light .education-date {
    background: rgba(59, 130, 246, 0.1);
    color: rgba(59, 130, 246, 0.9);
}

body.dark .education-date {
    background: rgba(59, 130, 246, 0.2);
    color: rgba(59, 130, 246, 1);
}

.education-desc {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

body.light .education-desc {
    color: #4a5568;
}

body.dark .education-desc {
    color: rgba(255, 255, 255, 0.8);
}

.education-highlights {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
}

body.light .highlight-item {
    color: #2d3748;
}

body.dark .highlight-item {
    color: #e2e8f0;
}

.highlight-item i {
    color: rgba(59, 130, 246, 0.8);
    font-size: 18px;
}

/* Skills Section */
.skills-section {
    margin-bottom: 80px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-category {
    padding: 25px;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light .skill-category {
    background: #f7fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light .skill-category:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.dark .skill-category {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .skill-category:hover {
    background: #252525;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.skill-category h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.light .skill-category h4 {
    color: #1a1a1a;
}

body.dark .skill-category h4 {
    color: #ffffff;
}

.skill-category h4 i {
    color: rgba(59, 130, 246, 0.8);
}

.skill-category p {
    font-size: 15px;
    line-height: 1.6;
}

body.light .skill-category p {
    color: #4a5568;
}

body.dark .skill-category p {
    color: rgba(255, 255, 255, 0.7);
}

/* Languages Section */
.languages-section {
    margin-bottom: 80px;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.language-item {
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light .language-item {
    background: #f7fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light .language-item:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.dark .language-item {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .language-item:hover {
    background: #252525;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.language-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

body.light .language-name {
    color: #1a1a1a;
}

body.dark .language-name {
    color: #ffffff;
}

.language-level {
    font-size: 16px;
    font-weight: 600;
    color: rgba(59, 130, 246, 0.9);
}

/* Certifications Section */
.certifications-section {
    margin-bottom: 80px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cert-card {
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light .cert-card {
    background: #f7fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light .cert-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.dark .cert-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .cert-card:hover {
    background: #252525;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cert-card i {
    font-size: 40px;
    color: rgba(59, 130, 246, 0.8);
    margin-bottom: 15px;
}

.cert-card h4 {
    font-size: 18px;
    font-weight: 600;
}

body.light .cert-card h4 {
    color: #1a1a1a;
}

body.dark .cert-card h4 {
    color: #ffffff;
}

/* Awards Section */
.awards-section {
    margin-bottom: 80px;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.award-card {
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light .award-card {
    background: #f7fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light .award-card:hover {
    background: #ffffff;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

body.dark .award-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .award-card:hover {
    background: #252525;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.award-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.award-card h4 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

body.light .award-card h4 {
    color: #1a1a1a;
}

body.dark .award-card h4 {
    color: #ffffff;
}

.award-card p {
    font-size: 15px;
    font-weight: 600;
    color: rgba(59, 130, 246, 0.9);
}

/* Responsive */
@media (max-width: 1000px) {
    .portfolio-hero {
        padding: 40px 20px;
    }

    .portfolio-title {
        font-size: 36px;
    }

    .portfolio-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -36px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-title {
        font-size: 20px;
    }

    .education-header {
        flex-direction: column;
    }

    .education-school {
        font-size: 22px;
    }

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

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

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

    .awards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}