
/* Timeline Styles */
.timeline-section {
    background: linear-gradient(135deg, #4DD0E1 0%, #00ACC1 50%, #0097A7 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Background Elements */
.bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    animation: timelineFloat 6s ease-in-out infinite;
}

    .floating-element:nth-child(2) {
        animation-delay: -2s;
        width: 40px;
        height: 40px;
    }

    .floating-element:nth-child(3) {
        animation-delay: -4s;
        width: 80px;
        height: 80px;
    }

    .floating-element:nth-child(4) {
        animation-delay: -1s;
        width: 50px;
        height: 50px;
    }

@keyframes timelineFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Timeline Path */
.timeline-path {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.path-line {
    stroke-dashoffset: 1000;
    animation: drawTimelinePath 3s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes drawTimelinePath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Timeline Items */
.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    opacity: 0;
    z-index: 2;
}

    .timeline-item:nth-child(odd) {
        flex-direction: row;
        transform: translateX(-50px);
        animation: slideInFromLeft 0.8s ease-out forwards;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row-reverse;
        transform: translateX(50px);
        animation: slideInFromRight 0.8s ease-out forwards;
    }

    .timeline-item:nth-child(2) {
        animation-delay: 0.8s;
    }

    .timeline-item:nth-child(3) {
        animation-delay: 1.2s;
    }

    .timeline-item:nth-child(4) {
        animation-delay: 1.6s;
    }

    .timeline-item:nth-child(5) {
        animation-delay: 2.0s;
    }

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Timeline Dots */
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.dot-inner {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0097A7;
    font-size: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    animation: timelinePulse 2s ease-in-out infinite;
}

    .dot-inner:hover {
        transform: scale(1.2) rotate(10deg);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 6px rgba(255, 255, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

@keyframes timelinePulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    50% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(255, 255, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}

/* Timeline Content Cards */
.timeline-content-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    max-width: 450px;
    margin: 0 80px;
    cursor: pointer;
}

.timeline-item:nth-child(even) .timeline-content-card {
    margin-left: 80px;
    margin-right: 0;
}

.timeline-content-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.year-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0097A7, #00BCD4);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 151, 167, 0.3);
}

.timeline-content-card h3 {
    color: #0097A7;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.timeline-content-card p {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline-container {
        padding: 0 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        margin-bottom: 80px;
    }

    .timeline-dot {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 20px;
    }

    .timeline-content-card {
        max-width: 500px;
        margin: 0 !important;
    }

    .timeline-path {
        display: none;
    }
}

@media (max-width: 768px) {
    .timeline-section {
        padding: 60px 0;
    }

    .timeline-container {
        padding: 0 15px;
    }

    .timeline-content-card {
        padding: 24px;
    }

        .timeline-content-card h3 {
            font-size: 24px;
        }

        .timeline-content-card p {
            font-size: 14px;
        }

    .dot-inner {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}

/* Additional Micro-interactions */
.timeline-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00BCD4, #4DD0E1);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.timeline-content-card:hover::before {
    transform: scaleX(1);
}

/* Additional CSS animations */
@keyframes timelineRipple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes timelineBounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.timeline-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

    .timeline-item:hover .timeline-content-card {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    }

.timeline-loaded {
    animation-play-state: running;
}

