/* Interactive Timeline Styles */
.interactive-timeline-wrapper {
    position: relative;
    margin: 100px 0;
    overflow: hidden;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-header h3 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #4a00e0, #8e2de2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.timeline-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.timeline-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #4a00e0, #8e2de2);
    border-radius: 2px;
}

.timeline-3d-container {
    position: relative;
    perspective: 1000px;
    height: 700px;
    margin: 0 auto;
    max-width: 1200px;
}

.timeline-3d-container::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
}

.timeline-perspective {
    transform-style: preserve-3d;
    position: relative;
    height: 100%;
    width: 100%;
}

.timeline-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(74, 0, 224, 0.3);
}

.nav-btn:hover {
    background: rgba(74, 0, 224, 0.5);
    transform: scale(1.1);
}

.nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.timeline-year-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.current-year {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(74, 0, 224, 0.5);
}

.year-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.year-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4a00e0, #8e2de2);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.digital-timeline {
    position: relative;
    width: 100%;
    height: 500px;
    transform-style: preserve-3d;
}

.timeline-track {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4a00e0, #8e2de2);
    box-shadow: 0 0 20px rgba(74, 0, 224, 0.7);
    transition: width 0.5s ease;
}

.timeline-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.timeline-node {
    position: relative;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-node.active {
    background: rgba(74, 0, 224, 0.5);
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(74, 0, 224, 0.7);
}

.timeline-node.active::before {
    background: #8e2de2;
}

.node-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(74, 0, 224, 0.3);
    opacity: 0;
    animation: pulse 2s infinite;
    display: none;
}

.timeline-node.active .node-pulse {
    display: block;
}

.node-year {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: all 0.3s ease;
}

.timeline-node:hover .node-year,
.timeline-node.active .node-year {
    opacity: 1;
    top: -35px;
}

.timeline-events-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 120px;
    overflow: hidden;
}

.timeline-events {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
    padding-top: 20px;
}

.timeline-event {
    position: relative;
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-event.active {
    opacity: 1;
    transform: scale(1);
}

.event-card {
    position: relative;
    width: 80%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: all 0.5s ease;
}

.event-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.event-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.event-year {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: 0;
}

.event-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    position: relative;
    z-index: 1;
}

.event-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(74, 0, 224, 0.5);
    filter: blur(10px);
    animation: pulse 2s infinite;
}

.event-header h4 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
    position: relative;
    z-index: 1;
}

.event-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.event-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.event-image:hover .image-overlay {
    opacity: 1;
}

.overlay-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transform: scale(0);
    transition: all 0.3s ease;
}

.event-image:hover .overlay-icon {
    transform: scale(1);
}

.image-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.image-particles::before,
.image-particles::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(142, 45, 226, 0.7);
    filter: blur(2px);
    animation: float 4s infinite alternate;
}

.image-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.image-particles::after {
    bottom: 30%;
    right: 15%;
    animation-delay: 2s;
}

.event-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.event-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    fill: none;
    stroke-width: 3;
    transform: rotate(-90deg);
    z-index: 0;
}

.stat-circle-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.stat-circle-fill {
    stroke: url(#gradient);
    transition: stroke-dasharray 1s ease;
}

.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.milestone-badge {
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.event-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.deco-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
}

.line-1 {
    top: 20px;
    right: -50px;
    width: 150px;
    height: 2px;
    transform: rotate(-45deg);
}

.line-2 {
    bottom: 30px;
    left: -50px;
    width: 150px;
    height: 2px;
    transform: rotate(45deg);
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.circle-1 {
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
}

.circle-2 {
    bottom: -30px;
    left: 30%;
    width: 60px;
    height: 60px;
}

.timeline-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.control-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.control-item:hover .control-dot,
.control-item .control-dot.active {
    background: #8e2de2;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(142, 45, 226, 0.7);
}

.control-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.control-item:hover .control-label,
.control-item.active .control-label {
    color: var(--text-primary);
}

/* Image Modal Styles */
.timeline-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.timeline-image-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.timeline-image-modal.show .modal-content {
    transform: scale(1);
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(74, 0, 224, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-10px) scale(1.2);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .event-body {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        width: 90%;
        padding: 20px;
    }
    
    .timeline-header h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .timeline-3d-container {
        height: 800px;
    }
    
    .timeline-header h3 {
        font-size: 2rem;
    }
    
    .event-year {
        font-size: 2.5rem;
    }
    
    .event-header h4 {
        font-size: 1.5rem;
    }
    
    .timeline-controls {
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .timeline-header h3 {
        font-size: 1.8rem;
    }
    
    .event-card {
        width: 95%;
        padding: 15px;
    }
    
    .event-icon {
        width: 50px;
        height: 50px;
    }
    
    .event-header h4 {
        font-size: 1.3rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}