/**
 * Technology Timeline Styles
 * Professional timeline design with modern animations
 */

/* Timeline Hero Section */
.timeline-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0; /* Ensure no extra margin */
}

.timeline-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.timeline-hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-hero__badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #0ea5e9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.timeline-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.timeline-hero__subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 20px;
}

.timeline-hero__description {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 50px;
    line-height: 1.6;
}

/* Timeline Stats */
.timeline-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.timeline-stat {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
}

.timeline-stat__number {
    font-size: 3rem;
    font-weight: 800;
    color: #0ea5e9;
    margin-bottom: 10px;
    line-height: 1;
}

.timeline-stat__label {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.timeline-stat__description {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Timeline Milestones */
.timeline-milestones {
    padding: 100px 0;
    background: #fafbfc;
    margin-top: 0; /* Ensure no extra margin */
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e2e8f0;
    transform: translateX(-50%);
    border-radius: 2px;
    overflow: hidden;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #10b981, #0ea5e9);
    border-radius: 2px;
    transition: height 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-milestone {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-milestone:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-milestone:nth-child(even) .timeline-milestone__content {
    text-align: right;
}

.timeline-milestone--completed {
    animation-delay: 0.2s;
}

.timeline-milestone--current {
    animation-delay: 0.4s;
}

.timeline-milestone--planned {
    animation-delay: 0.6s;
    opacity: 0.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline Icon */
.timeline-milestone__icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    border: 6px solid white;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

.timeline-milestone:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.4);
}

/* Timeline Content */
.timeline-milestone__content {
    width: 45%;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-milestone__content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    transform: translateY(-50%) rotate(45deg);
}

.timeline-milestone:nth-child(odd) .timeline-milestone__content::before {
    right: -10px;
    border-left: none;
    border-bottom: none;
}

.timeline-milestone:nth-child(even) .timeline-milestone__content::before {
    left: -10px;
    border-right: none;
    border-top: none;
}

.timeline-milestone:hover .timeline-milestone__content {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Timeline Header */
.timeline-milestone__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.timeline-milestone__quarter {
    font-size: 1rem;
    font-weight: 700;
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
}

.timeline-milestone__status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-status--completed {
    background: #dcfce7;
    color: #166534;
}

.timeline-status--current {
    background: #dbeafe;
    color: #1d4ed8;
}

.timeline-status--planned {
    background: #fef3c7;
    color: #92400e;
}

.timeline-milestone__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.timeline-milestone__subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #0ea5e9;
    margin-bottom: 15px;
}

.timeline-milestone__description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Achievements */
.timeline-milestone__achievements h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.timeline-milestone__achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-milestone__achievements li {
    padding: 8px 0;
    color: #64748b;
    position: relative;
    padding-left: 20px;
}

.timeline-milestone__achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* CTA Section */
.timeline-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
}

.timeline-cta__content {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-cta__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-cta__subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.timeline-cta__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-hero__title {
        font-size: 2.5rem;
    }
    
    .timeline-hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-milestone {
        flex-direction: row !important;
        margin-bottom: 60px;
    }
    
    .timeline-milestone__icon {
        left: 30px;
        transform: none;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-milestone__content {
        width: calc(100% - 100px);
        margin-left: 100px;
        text-align: left !important;
    }
    
    .timeline-milestone__content::before {
        display: none;
    }
    
    .timeline-cta__actions {
        flex-direction: column;
        align-items: center;
    }
}
