/* ========== TIMELINE SLIDER ========== */
.timeline-section {
    background-color: var(--secondary);
    color: var(--bg-white);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* Background Glow Effect */
.timeline-section::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.15;
    pointer-events: none;
}

.timeline-slider-wrap {
    position: relative;
    margin-top: 5rem;
}

.timeline-swiper {
    padding-top: 100px !important; /* Space for timeline line & years */
    padding-bottom: 2rem !important;
    overflow: visible !important;
}

/* Timeline Line that spans across the container */
.timeline-line-bg {
    position: absolute;
    top: 60px; /* Aligned with dots */
    left: 0;
    width: 200%; /* Extra wide to cover overflow */
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}
.timeline-progress {
    position: absolute;
    top: 60px;
    left: 0;
    height: 2px;
    background: var(--primary);
    z-index: 2;
    transition: width 0.3s ease;
    width: 0;
}

.swiper-slide {
    width: 380px; /* Increased width for better proportions */
    opacity: 1; /* Removed opacity fade to avoid 'blur' perception */
    transition: transform 0.5s ease;
}

/* Timeline Node (Year + Dot) */
.timeline-node {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 10;
}

.timeline-year {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-left: 1rem;
    box-shadow: 0 0 15px var(--primary-glow);
    position: relative;
    transition: all 0.3s ease;
}
.timeline-dot::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.swiper-slide-active .timeline-dot::before {
    opacity: 1;
    transform: scale(1);
    animation: pulse 2s infinite;
}
.swiper-slide-active .timeline-year {
    color: var(--primary);
    border-color: var(--primary);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Timeline Card */
.timeline-card {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}
.timeline-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(245, 196, 0, 0.3);
}

.tc-img {
    position: relative;
    width: 100%;
    height: 240px; /* Increased from 180px */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transform: translateZ(0); /* Prevents rendering blur on some browsers */
}
.tc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0); /* Hardware acceleration to fix blur */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-card:hover .tc-img img {
    transform: scale(1.08) translateZ(0);
}



.tc-content h3 {
    font-size: 1.3rem;
    color: var(--bg-white);
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.tc-content p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin: 0;
}

/* Custom Navigation */
.timeline-nav {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    justify-content: flex-end;
}
.t-nav-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.t-nav-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}
.t-nav-btn.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 768px) {
    .swiper-slide { width: 300px; }
    .timeline-swiper { padding-top: 80px !important; }
    .timeline-node { top: -80px; }
    .timeline-line-bg, .timeline-progress { top: 48px; }
}
