/* Timeline Section Styles - Armadin Maden ve İnşaat */
.timeline-section {
    padding: 80px 0;
    position: relative;
    background-color: #f5f5f5;
    background-image: url('../images/pattern/pattern2.png');
    background-repeat: repeat;
    overflow: hidden;
}

.timeline-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.timeline-section .container {
    position: relative;
    z-index: 2;
}

.timeline-section h1 {
    text-align: center;
    font-size: 38px;
    color: #333;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.timeline-section h1:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 70px;
    background: #e6a826;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    z-index: 2;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #455a64;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-item {
    padding: 0 50px 20px 50px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.7s ease forwards;
    animation-delay: calc(var(--animation-order) * 0.2s);
}

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

/* Animasyonlar için sıra */
.timeline-item:nth-child(1) { --animation-order: 1; }
.timeline-item:nth-child(2) { --animation-order: 2; }
.timeline-item:nth-child(3) { --animation-order: 3; }
.timeline-item:nth-child(4) { --animation-order: 4; }
.timeline-item:nth-child(5) { --animation-order: 5; }
.timeline-item:nth-child(6) { --animation-order: 6; }
.timeline-item:nth-child(7) { --animation-order: 7; }
.timeline-item:nth-child(8) { --animation-order: 8; }
.timeline-item:nth-child(9) { --animation-order: 9; }
.timeline-item:nth-child(10) { --animation-order: 10; }

.timeline-item .content {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid #455a64;
}

.timeline-item .content:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.timeline-item.left {
    left: 0;
    padding-right: 50px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 4px solid #e6a826;
    top: 22px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-item.left::before {
    right: 30px;
}

.timeline-item.right::before {
    left: 31px;
}

.timeline-item:hover::before {
    background-color: #e6a826;
    box-shadow: 0 0 15px rgba(230, 168, 38, 0.4);
    animation: pulse 1s infinite;
}

.timeline-item .content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.timeline-item .content h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 50px;
    background: #e6a826;
}

.timeline-item .content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-size: 15px;
}

.timeline-item.left::after,
.timeline-item.right::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 4px;
    background-color: #455a64;
    top: 30px;
    z-index: 0;
}

.timeline-item.left::after {
    right: 31px;
}

.timeline-item.right::after {
    left: 31px;
}

.timeline-item:hover::after {
    background-color: #e6a826;
    box-shadow: 0 0 10px rgba(230, 168, 38, 0.4);
}

.timeline-item:nth-child(odd) .content {
    border-left: none;
    border-right: 3px solid #455a64;
}

.timeline-item:nth-child(even) .content {
    border-left: 3px solid #455a64;
    border-right: none;
}

.timeline-item:nth-child(odd) .content:before {
    content: '';
    position: absolute;
    top: 22px;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #fff;
    z-index: 0;
}

.timeline-item:nth-child(even) .content:before {
    content: '';
    position: absolute;
    top: 22px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #fff;
    z-index: 0;
}

.timeline-item:hover .content p {
    color: #444;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.timeline-item:hover::before {
    transform: scale(1.2);
}

.timeline-item:last-child::before {
    background-color: #e6a826;
    box-shadow: 0 0 15px rgba(230, 168, 38, 0.4);
}

/* Responsive Tasarım */
@media screen and (max-width: 768px) {
    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item::before {
        left: 20px;
        right: auto;
    }
    
    .timeline-item::after {
        left: 20px;
        right: auto;
    }
    
    .timeline-item:nth-child(odd) .content,
    .timeline-item:nth-child(even) .content {
        border-right: none;
        border-left: 3px solid #455a64;
    }
    
    .timeline-item .content {
        margin-right: 0;
    }
    
    .timeline-section {
        padding: 60px 20px;
    }
    
    .timeline-section h1 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .timeline-item:nth-child(odd) .content:before,
    .timeline-item:nth-child(even) .content:before {
        left: -10px;
        right: auto;
        border-right: 10px solid #fff;
        border-left: 0;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 20px;
        right: auto;
    }
    
    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 20px;
        right: auto;
    }
}

@media screen and (max-width: 480px) {
    .timeline-item .content h2 {
        font-size: 18px;
    }
    
    .timeline-item .content p {
        font-size: 14px;
    }
    
    .timeline-section h1 {
        font-size: 24px;
    }
} 