/* Enhanced Timeline Styles with Advanced Animations */
#timeline-page-container {
    background: linear-gradient(135deg, #f8fdfc 0%, #e8f7f2 50%, #d5f2e8 100%);
    min-height: 100vh;
    padding: 60px 0;
    position: relative;
    overflow-x: hidden;
}

#timeline-page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(106, 190, 153, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(106, 190, 153, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(106, 190, 153, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

#timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Enhanced Header Styles */
#timeline-header {
    text-align: center;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(-40px);
    animation: timeline-slideInDown 1.2s ease-out 0.3s forwards;
}

#timeline-testimonials-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6abe99, #5fb38a);
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(106, 190, 153, 0.3);
    position: relative;
    overflow: hidden;
}

#timeline-testimonials-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: timeline-shimmer 2s infinite;
}

#timeline-main-title {
    font-size: 3.5rem;
    color: #2c4a5c;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #2c4a5c, #1a2f3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#timeline-subtitle {
    font-size: 19px;
    color: #7a8b94;
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

/* Enhanced Timeline Wrapper */
#timeline-wrapper {
    position: relative;
    padding: 60px 0 80px;
}

/* Progressive Center Line with Animation */
#timeline-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 6px;
    background: linear-gradient(to bottom, #e8f5f3, #d4f4ed, #c0f0e6);
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(106, 190, 153, 0.2);
    height: 100%;
    min-height: calc(100% + 60px);
    overflow: hidden;
}

.timeline-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #6abe99, #5fb38a, #54a67c);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(106, 190, 153, 0.4);
    transition: height 0.3s ease-out;
}

/* Enhanced Timeline Items */
#timeline-wrapper .timeline-milestone {
    position: relative;
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#timeline-wrapper .timeline-milestone.timeline-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Connector Lines between card and center point */
.timeline-connector-line {
    position: absolute;
    top: 50px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6abe99, transparent);
    z-index: 2;
    transition: width 0.8s ease-out 0.3s;
}

#timeline-wrapper .timeline-left .timeline-connector-line {
    right: 35px;
    transform-origin: right;
}

#timeline-wrapper .timeline-right .timeline-connector-line {
    left: 35px;
    transform-origin: left;
}

#timeline-wrapper .timeline-milestone.timeline-visible .timeline-connector-line {
    width: calc(50% - 70px);
}

/* Enhanced Timeline Icons */
.timeline-icon-container {
    position: absolute;
    left: 50%;
    top: 35px;
    transform: translateX(-50%);
    z-index: 3;
}

#timeline-wrapper .timeline-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0);
    position: relative;
    overflow: hidden;
}

#timeline-wrapper .timeline-milestone.timeline-visible .timeline-icon-wrapper {
    transform: scale(1);
    animation: timeline-iconBounce 0.6s ease-out 0.5s;
}

#timeline-wrapper .timeline-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%);
}

#timeline-wrapper .timeline-icon-wrapper:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(106, 190, 153, 0.3);
}

#timeline-wrapper .timeline-dot {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

#timeline-wrapper .timeline-iso-text {
    color: white;
    font-weight: 800;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
}

/* Enhanced Timeline Cards */
#timeline-wrapper .timeline-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 0;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 450px;
    border: 2px solid rgba(106, 190, 153, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    transform: scale(0.9);
    opacity: 0;
}

#timeline-wrapper .timeline-left .timeline-card {
    margin-right: calc(50% + 90px);
    margin-left: auto;
}

#timeline-wrapper .timeline-right .timeline-card {
    margin-left: calc(50% + 90px);
}

#timeline-wrapper .timeline-milestone.timeline-visible .timeline-card {
    transform: scale(1);
    opacity: 1;
}

#timeline-wrapper .timeline-card:hover {
    transform: scale(1.03) translateY(-12px);
    box-shadow: 0 30px 70px rgba(106, 190, 153, 0.2);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(106, 190, 153, 0.2);
}

/* Enhanced Card Image Section */
#timeline-wrapper .timeline-card-image {
    position: relative;
    /* width: 100%; */
    height: 100%;
    /* background: linear-gradient(135deg, #f8fdfc 0%, #e8f5f3 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 10px;
}

#timeline-wrapper .timeline-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 190, 153, 0.05) 0%, transparent 50%);
}

#timeline-wrapper .timeline-image {
    width: 90px;
    /* height: 90px; */
    object-fit: contain;
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    z-index: 1;
}

#timeline-wrapper .timeline-milestone.timeline-visible .timeline-image {
    opacity: 0.9;
    transform: scale(1) rotate(0deg);
    animation: timeline-imageFloat 0.8s ease-out 0.8s;
}

#timeline-wrapper .timeline-card:hover .timeline-image {
    transform: scale(1.1) rotate(2deg);
    opacity: 1;
}

/* Enhanced Card Content */
#timeline-wrapper .timeline-card-content {
    padding: 10px;
    flex: 1;
}

#timeline-wrapper .timeline-year {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 18px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

#timeline-wrapper .timeline-year::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, currentColor, transparent);
    border-radius: 2px;
}

#timeline-wrapper .timeline-description {
    color: #5a6c75;
    line-height: 1.8;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
}

/* Enhanced Arrow Indicators */
#timeline-wrapper .timeline-left .timeline-card::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 50px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 14px solid rgba(255, 255, 255, 0.98);
    filter: drop-shadow(3px 0 5px rgba(0, 0, 0, 0.1));
    z-index: 1;
}

#timeline-wrapper .timeline-right .timeline-card::after {
    content: '';
    position: absolute;
    left: -14px;
    top: 50px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 14px solid rgba(255, 255, 255, 0.98);
    filter: drop-shadow(-3px 0 5px rgba(0, 0, 0, 0.1));
    z-index: 1;
}

/* Advanced Animations */
@keyframes timeline-slideInDown {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes timeline-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes timeline-iconBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes timeline-imageFloat {
    0%, 100% { transform: scale(1) rotate(0deg) translateY(0); }
    50% { transform: scale(1.05) rotate(1deg) translateY(-3px); }
}

@keyframes timeline-pulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    50% { 
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 15px 40px rgba(106, 190, 153, 0.3);
    }
}

#timeline-wrapper .timeline-icon-wrapper.timeline-pulse-animation {
    animation: timeline-pulse 2s ease-in-out infinite;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    #timeline-wrapper .timeline-card{
        flex-direction: column;
    }
    #timeline-main-title {
        font-size: 2.8rem;
    }
    
    #timeline-subtitle {
        font-size: 17px;
        padding: 0 30px;
    }
    
    #timeline-center-line {
        left: 40px;
        transform: none;
        width: 5px;
    }
    
    .timeline-progress-bar {
        width: 100%;
    }
    
    .timeline-icon-container {
        left: 40px;
        transform: none;
    }
    
    #timeline-wrapper .timeline-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    #timeline-wrapper .timeline-left .timeline-card,
    #timeline-wrapper .timeline-right .timeline-card {
        margin-left: 110px;
        margin-right: 0;
        max-width: calc(100% - 130px);
    }
    
    .timeline-connector-line {
        display: none;
    }
    
    #timeline-wrapper .timeline-left .timeline-card::after {
        display: none;
    }
    
    #timeline-wrapper .timeline-right .timeline-card::after {
        left: -14px;
        border-right: 14px solid rgba(255, 255, 255, 0.98);
        border-left: none;
    }
}

@media (max-width: 480px) {
    #timeline-page-container {
        padding: 40px 0;
    }
    
    #timeline-testimonials-badge {
        padding: 12px 24px;
        font-size: 12px;
    }
    
    #timeline-main-title {
        font-size: 2.2rem;
    }
    
    #timeline-wrapper .timeline-card-image {
        height: 100px;
    }
    
    #timeline-wrapper .timeline-image {
        width: 60px;
        height: 60px;
    }
    
    #timeline-wrapper .timeline-card-content {
        padding: 25px 25px 30px;
    }
    
    #timeline-wrapper .timeline-year {
        font-size: 1.8rem;
    }
    
    #timeline-wrapper .timeline-description {
        font-size: 15px;
    }
}

/* Timeline Category Badge */
.timeline-category {
    margin-top: 15px;
}

.category-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline Title Enhancement */
.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 8px 0;
    line-height: 1.4;
}

/* Timeline Achievement Value */
.timeline-achievement {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
}

/* Timeline Star and ISO Text */
.timeline-star-text {
    font-size: 20px;
    line-height: 1;
}

.timeline-iso-text {
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-title {
        font-size: 14px;
    }
    
    .timeline-achievement {
        font-size: 13px;
    }
    
    .category-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

