/* ============================================
   INTERACTIVE TIMELINE - Left-Right Pattern
   ============================================ */

/* Container */
.interactive-timeline {
    position: relative;
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 60px 20px;
}

/* Timeline Items Container */
.timeline-items {
    position: relative;
}

/* Main vertical line (center) */
.timeline-items::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
        to bottom,
        rgba(0, 232, 255, 0.3) 0%,
        rgba(0, 232, 255, 0.5) 50%,
        rgba(0, 232, 255, 0.3) 100%
    );
    transform: translateX(-50%);
    z-index: 1;
}

/* Individual Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 100px;
    width: 100%;
    min-height: 220px;
    opacity: 0;
    visibility: visible; /* Changed to visible so GSAP can animate opacity */
}

/* Show items when they have inline style for language change */
.timeline-item[style*="opacity: 1"] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Connector (Dot + Line to Card) */
.timeline-connector {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: 10;
}

/* Line from dot to content */
.timeline-line {
    position: absolute;
    top: 30%;
    left: calc(50% - 500px);
    width: 460px;
    height: 2px;
    background: rgba(0, 232, 255, 0.6);
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 232, 255, 0.5);
    z-index: 1;
}

.timeline-item-right .timeline-line {
    left: calc(50% + 30px);
    right: auto;
    width: 450px;
}

/* Central Dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-neon));
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 4px rgba(0, 232, 255, 0.2),
        0 0 30px rgba(0, 232, 255, 0.5),
        inset 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

[data-theme="dark"] .timeline-dot {
    border-color: var(--dark-bg);
    box-shadow: 
        0 0 0 4px rgba(0, 232, 255, 0.3),
        0 0 40px rgba(0, 232, 255, 0.6),
        inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Step Number inside dot */
.step-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Left Side Items - Card on LEFT of the line */
.timeline-item-left .timeline-content {
    position: absolute;
    right: calc(50% + 90px);
    top: 50%;
    transform: translateY(-50%);
    width: 550px;
    min-width: 500px;
}

/* Right Side Items - Card on RIGHT of the line */
.timeline-item-right .timeline-content {
    position: absolute;
    left: calc(50% + 90px);
    top: 50%;
    transform: translateY(-50%);
    width: 550px;
    min-width: 500px;
}

/* Timeline Content Box */
.timeline-content {
    background: var(--bg-primary);
    border: 2px solid rgba(0, 232, 255, 0.3);
    border-radius: 15px;
    padding: 40px 45px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(0, 232, 255, 0.15);
    transition: all 0.4s ease;
    z-index: 10;
    position: relative;
}

/* Dark mode styling for timeline cards */
[data-theme="dark"] .timeline-content {
    background: var(--dark-surface);
    border-color: rgba(0, 232, 255, 0.4);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 232, 255, 0.2),
        inset 0 0 20px rgba(0, 232, 255, 0.05);
}

[data-theme="light"] .timeline-content {
    background: white;
    border-color: rgba(0, 43, 91, 0.2);
    box-shadow: 
        0 10px 40px rgba(0, 43, 91, 0.1),
        0 0 20px rgba(0, 232, 255, 0.1);
}

/* Remove hover effects in dark mode - hover disabled */

/* Icon */
.timeline-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--accent-neon);
    box-shadow: 
        0 10px 30px rgba(0, 232, 255, 0.25),
        0 0 40px rgba(0, 232, 255, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

/* Icon colors per item */
.timeline-item:nth-child(1) .timeline-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: rgba(102, 126, 234, 0.3);
}

.timeline-item:nth-child(2) .timeline-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.timeline-item:nth-child(3) .timeline-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.timeline-item:nth-child(4) .timeline-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.timeline-item:nth-child(5) .timeline-icon {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: white;
}

.timeline-item:nth-child(6) .timeline-icon {
    background: linear-gradient(135deg, #30cfd0, #330867);
    color: white;
    border-color: rgba(48, 207, 208, 0.3);
}

/* Timeline Title */
.timeline-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-align: center;
}

[data-theme="dark"] .timeline-title {
    color: var(--white);
}

/* Timeline Description */
.timeline-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

[data-theme="dark"] .timeline-description {
    color: rgba(192, 192, 192, 0.9);
}

/* Timeline Details List */
.timeline-details {
    list-style: none;
    padding: 0;
    text-align: start;
}

.timeline-details li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-theme="dark"] .timeline-details li {
    color: rgba(192, 192, 192, 0.85);
}

.timeline-details li i {
    color: rgba(0, 232, 255, 0.8);
    font-size: 0.85rem;
}

[data-theme="dark"] .timeline-details li i {
    color: var(--accent-neon);
}

/* Hover Effects - Disabled to prevent card movement */
/* Removed to prevent cards from moving when hovering */

/* Active State (when scrolling to item) */
.timeline-item.scroll-active .timeline-dot {
    animation: illuminate 1.5s ease-in-out;
    box-shadow: 
        0 0 0 10px rgba(0, 232, 255, 0.4),
        0 0 60px rgba(0, 232, 255, 1),
        0 0 100px rgba(0, 232, 255, 0.6),
        inset 0 2px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.15);
    background: linear-gradient(135deg, var(--accent-neon), #00d9ff);
}

.timeline-item.scroll-active .step-number {
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes illuminate {
    0% {
        box-shadow: 
            0 0 0 4px rgba(0, 232, 255, 0.2),
            0 0 30px rgba(0, 232, 255, 0.5),
            inset 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 
            0 0 0 10px rgba(0, 232, 255, 0.4),
            0 0 60px rgba(0, 232, 255, 1),
            0 0 100px rgba(0, 232, 255, 0.6),
            inset 0 2px 20px rgba(255, 255, 255, 0.3);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .timeline-items {
        padding-left: 70px;
    }
    
    .timeline-item-left .timeline-content,
    .timeline-item-right .timeline-content {
        position: relative;
        left: auto;
        right: auto;
        transform: none;
        margin-left: 70px;
        margin-right: 0;
        margin-top: 20px;
        width: calc(100% - 90px);
    }
    
    .timeline-connector {
        left: 0;
    }
    
    .timeline-dot {
        left: 0;
    }
    
    .timeline-items::before {
        left: 20px;
    }
    
    .timeline-line {
        left: 60px;
        right: auto;
        width: 30px;
    }
    
}

@media (max-width: 640px) {
    .timeline-content {
        padding: 25px;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .timeline-title {
        font-size: 1.4rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }
}

