:root {
    --ah-primary: #D4202C;
    --ah-dark: #1A1A2E;
    --ah-steel: #2C3E50;
    --ah-accent: #E8443A;
    --ah-light: #F8F9FA;
    --ah-gold: #F0A500;
}

/* ── TIMELINE ── */
.timeline-section {
    padding: 6rem 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header .label {
    display: inline-block;
    color: var(--ah-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ah-dark);
}

.section-header h2 span {
    color: var(--ah-primary);
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Vertical line */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--ah-primary) 5%, var(--ah-primary) 95%, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--ah-primary);
    border: 4px solid #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 5;
    box-shadow: 0 0 0 4px rgba(212, 32, 44, 0.2);
    transition: transform 0.3s ease;
}

.timeline-item.milestone .timeline-dot {
    width: 28px;
    height: 28px;
    background: var(--ah-gold);
    box-shadow: 0 0 0 6px rgba(240, 165, 0, 0.2);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
}

/* Content cards */
.timeline-content {
    width: 44%;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Arrow */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 2rem;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: rotate(45deg);
}

/* Left side (even items) */
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 56%;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -9px;
    border-left: none;
    border-bottom: none;
}

/* Right side (odd items) */
.timeline-item:nth-child(even) .timeline-content {
    margin-left: 56%;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -9px;
    border-right: none;
    border-top: none;
}

.timeline-year {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ah-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.timeline-item.milestone .timeline-year {
    color: var(--ah-gold);
}

.timeline-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ah-dark);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: #5a6370;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.timeline-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
}

.tag-uretim    { background: rgba(212,32,44,0.1); color: var(--ah-primary); }
.tag-yatirim   { background: rgba(240,165,0,0.1); color: #c78800; }
.tag-kalite    { background: rgba(39,174,96,0.1); color: #27ae60; }
.tag-ihracat   { background: rgba(52,152,219,0.1); color: #2980b9; }
.tag-surdurulebilirlik { background: rgba(142,68,173,0.1); color: #8e44ad; }

/* ── MILESTONE CARD (special) ── */
.timeline-item.milestone .timeline-content {
    border: 1px solid rgba(240, 165, 0, 0.2);
    background: linear-gradient(135deg, #FFFDF5, #fff);
}

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
    .timeline::before {
        left: 24px;
    }

    .timeline-dot {
        left: 24px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 64px);
        margin-left: 64px;
        margin-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -9px;
        right: auto;
        border-right: none;
        border-top: none;
        border-left: 1px solid rgba(0,0,0,0.05);
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}

@media (max-width: 575.98px) {
    .stat-card { margin-bottom: 1rem; }
    .timeline-content { padding: 1.25rem; }
    .timeline-item { margin-bottom: 2.5rem; }
}