/* Timeline Page Styles */

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background: var(--hero-gradient);
    color: var(--light-text);
    text-align: center;
    margin-top: 70px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.5rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    border: 4px solid var(--bg-color);
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* Timeline Content */
.timeline-content {
    width: calc(50% - 50px);
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    margin: 0 2rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    text-align: left;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.timeline-subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.timeline-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}

.timeline-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.timeline-item:nth-child(odd) .timeline-list li::before {
    left: auto;
    right: 0;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.timeline-item:nth-child(odd) .timeline-tags {
    justify-content: flex-end;
}

.timeline-tags span {
    padding: 0.4rem 0.9rem;
    background: var(--project-tag-bg);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

/* Achievements Section */
.achievements-section,
.skills-summary-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.achievements-grid,
.skills-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.achievement-card,
.skill-category-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.achievement-card:hover,
.skill-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.achievement-icon,
.skill-category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 2rem;
}

.achievement-card h3,
.skill-category-card h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.achievement-card p,
.skill-category-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

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

    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }

    .timeline-marker {
        left: 30px;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-tags,
    .timeline-item:nth-child(even) .timeline-tags {
        justify-content: flex-start;
    }

    .timeline-list li {
        padding-left: 1.5rem !important;
        padding-right: 0 !important;
    }

    .timeline-item:nth-child(odd) .timeline-list li::before,
    .timeline-item:nth-child(even) .timeline-list li::before {
        left: 0;
        right: auto;
    }

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

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-title {
        font-size: 1.3rem;
    }

    .timeline-subtitle {
        font-size: 1rem;
    }
}

/* Achievement Badges */
.achievement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.timeline-item:nth-child(odd) .achievement-badges {
    justify-content: flex-end;
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.achievement-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.achievement-badge i {
    font-size: 1rem;
    color: var(--light-text);
}

.badge-label {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Responsive adjustments for achievement badges */
@media (max-width: 768px) {
    .timeline-item:nth-child(odd) .achievement-badges,
    .timeline-item:nth-child(even) .achievement-badges {
        justify-content: flex-start;
    }
    
    .achievement-badge {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .badge-label {
        font-size: 0.75rem;
    }
    
    .badge-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .achievement-badges {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .achievement-badge {
        width: 100%;
        justify-content: center;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

