/* Timeline Page Styles */
.timeline-section {
    padding: 80px 0;
    background: #fafafa;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

/* Orta xətt */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
    transform: translateX(-50%);
}

/* İl markeri */
.timeline-year {
    position: relative;
    margin-bottom: 60px;
}

.year-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(201, 48, 44, 0.3);
}

.timeline-items {
    margin-top: 50px;
}

/* Timeline elementi */
.timeline-item {
    position: relative;
    padding: 30px;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    width: calc(50% - 40px);
    transition: all 0.3s;
}

/* Sağ və sol yerləşdirmə */
.timeline-item:nth-child(odd) {
    margin-left: auto;
    margin-right: 40px;
}

.timeline-item:nth-child(even) {
    margin-left: 40px;
    margin-right: auto;
}

/* Birləşdirici nöqtələr */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s;
}

.timeline-item:nth-child(odd)::before {
    left: -50px;
}

.timeline-item:nth-child(even)::before {
    right: -50px;
}

/* Hover effektləri */
.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.timeline-item:hover::before {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
}

/* İkon */
.timeline-icon {
    position: absolute;
    top: 20px;
    font-size: 2rem;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: 30px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: 30px;
}

/* Məzmun */
.timeline-content {
    padding-right: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
    padding-left: 60px;
    padding-right: 30px;
}

.timeline-item:nth-child(odd) .timeline-content {
    padding-right: 60px;
    padding-left: 30px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.timeline-content .company {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Timeline element növləri - sol kənar rəngləri */
.timeline-item.achievement {
    border-left: 4px solid #f39c12;
}

.timeline-item.education {
    border-left: 4px solid #3498db;
}

.timeline-item.project {
    border-left: 4px solid #27ae60;
}

.timeline-item.work {
    border-left: 4px solid #e74c3c;
}

/* Xülasə bölməsi */
.timeline-summary {
    margin-top: 80px;
    text-align: center;
}

.timeline-summary h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #333;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.summary-stats .stat {
    background: white;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.summary-stats .stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 1rem;
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .timeline::before {
        left: 40px;
    }
    
    .year-marker {
        left: 40px;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        width: calc(100% - 100px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .timeline-item::before {
        left: -40px !important;
        right: auto !important;
    }
    
    .timeline-icon {
        right: 30px !important;
        left: auto !important;
    }
    
    .timeline-content {
        padding-right: 60px !important;
        padding-left: 30px !important;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .timeline-section {
        padding: 60px 0;
    }
    
    .timeline {
        padding: 20px 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .year-marker {
        left: 20px;
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .timeline-year {
        margin-bottom: 40px;
    }
    
    .timeline-items {
        margin-top: 30px;
    }
    
    .timeline-item {
        width: calc(100% - 50px);
        margin-left: 40px !important;
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .timeline-item::before {
        left: -30px !important;
        width: 16px;
        height: 16px;
        top: 25px;
    }
    
    .timeline-icon {
        font-size: 1.5rem;
        top: 15px;
        right: 20px !important;
    }
    
    .timeline-content {
        padding-right: 50px !important;
        padding-left: 0 !important;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .timeline-content .company {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Sol kənar rəngləri mobile-da */
    .timeline-item {
        border-left-width: 3px;
    }
    
    /* Xülasə mobile */
    .timeline-summary {
        margin-top: 60px;
    }
    
    .timeline-summary h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .summary-stats .stat {
        padding: 30px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Çox kiçik ekranlar üçün */
@media (max-width: 360px) {
    .timeline-item {
        width: calc(100% - 40px);
        margin-left: 30px !important;
        padding: 15px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item::before {
        left: -25px !important;
        width: 14px;
        height: 14px;
    }
    
    .year-marker {
        left: 15px;
        font-size: 0.9rem;
        padding: 6px 15px;
    }
    
    .timeline-icon {
        font-size: 1.2rem;
        right: 15px !important;
    }
    
    .timeline-content {
        padding-right: 40px !important;
    }
}

/* Animasiya */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

.timeline-item:nth-child(odd) {
    animation-name: slideInRight;
}

.timeline-item:nth-child(even) {
    animation-name: slideInLeft;
}

/* Print üçün */
@media print {
    .timeline-section {
        background: white;
    }
    
    .timeline-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}