/* Exact Tailwind Timeline Recreation - Full width */
.tailwind-timeline-container {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 60px 0 100px;
    background: #ffffff;
    overflow: visible;
}

/* Override container padding for full width */
.container .tailwind-timeline-container {
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
    width: calc(100% + 2 * var(--space-lg));
}

/* Timeline Header - Left Side, away from road */
.timeline-header {
    position: absolute;
    top: 80px;
    left: 60px;
    width: 500px;
    z-index: 10;
}

.timeline-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #7c3aed; /* Fallback color */
    margin-bottom: 12px;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 4px 8px rgba(124, 58, 237, 0.15);
    filter: drop-shadow(0 2px 4px rgba(124, 58, 237, 0.1));
    display: inline-block;
    width: auto;
}

.timeline-subtitle {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.5;
    max-width: 450px;
}

/* Background Decorative Circles - Hidden for clean white background */
.bg-circles {
    display: none;
}

.bg-circle {
    display: none;
}

/* Curved Road Timeline - Compact vertical spacing */
.curved-road-timeline {
    position: relative;
    width: 100%;
    height: 950px;
    z-index: 5;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f8fafc 100%);
}

/* Professional background elements */
.timeline-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Subtle grid lines for professional look */
.bg-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.12) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridFloat 20s ease-in-out infinite;
}

@keyframes gridFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5px, -5px); }
}

/* Elegant dot pattern */
.bg-dots-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background-image: radial-gradient(circle, rgba(124, 58, 237, 0.25) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.8;
}

/* Floating elegant shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.1));
    animation: floatShape 15s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 8%;
    animation-delay: 5s;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.1));
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 8%;
    animation-delay: 10s;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.1));
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translateY(-20px) rotate(120deg) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translateY(10px) rotate(240deg) scale(0.9);
        opacity: 0.7;
    }
}


/* Gradient overlays for depth */
.bg-gradient-overlay {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    animation: pulseGlow 12s ease-in-out infinite;
}

.overlay-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
    animation-delay: 0s;
}

.overlay-2 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: 15%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.20) 0%, transparent 70%);
    animation-delay: 6s;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

.curved-road-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.road-path {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.road-centerline {
    animation: roadFlow 6s linear infinite;
}

@keyframes roadFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 35; }
}

/* Timeline Milestones - Professional design with enhanced animations */
.timeline-milestone {
    position: absolute;
    z-index: 10;
    opacity: 0;
    animation: slideInTimeline 0.8s ease-out forwards;
}

.timeline-milestone:nth-child(2) { animation-delay: 0.2s; }
.timeline-milestone:nth-child(3) { animation-delay: 0.4s; }
.timeline-milestone:nth-child(4) { animation-delay: 0.6s; }
.timeline-milestone:nth-child(5) { animation-delay: 0.8s; }
.timeline-milestone:nth-child(6) { animation-delay: 1.0s; }

@keyframes slideInTimeline {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.milestone-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: subtlePulse 4s ease-in-out infinite;
    cursor: pointer;
}

.milestone-circle:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@keyframes subtlePulse {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(255, 255, 255, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(255, 255, 255, 0.1);
        transform: scale(1.02);
    }
}


.milestone-2019 {
    background: #ffffff;
    border: 3px solid #3b82f6;
}

.milestone-2022 {
    background: #ffffff;
    border: 3px solid #10b981;
}

.milestone-2024a {
    background: #ffffff;
    border: 3px solid #f59e0b;
}

.milestone-2024b {
    background: #ffffff;
    border: 3px solid #8b5cf6;
}

.milestone-2024c {
    background: #ffffff;
    border: 3px solid #e11d48;
}

.milestone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.milestone-icon svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.milestone-circle:hover .milestone-icon svg {
    transform: scale(1.1);
}

/* Milestone Connectors - Thinner, more subtle */
.milestone-connector {
    position: absolute;
    width: 1px;
    height: 25px;
    background: #d1d5db;
    top: 24px;
}

.milestone-connector.right {
    left: 55px;
}

.milestone-connector.left {
    right: 55px;
}

/* Timeline Text - Clean, minimal styling with animations */
.timeline-text {
    position: absolute;
    width: 280px;
    top: 10px;
    color: #1f2937;
    opacity: 0;
    animation: fadeInText 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.text-right {
    left: -140px;
    text-align: center;
    top: 70px;
}

/* Specific adjustments for right-side milestones to avoid road conflict */
.timeline-milestone[style*="left: 1080px"] .text-right {
    left: -40px;
    text-align: left;
    width: 250px;
}

.text-left {
    right: 80px;
    text-align: right;
}

.text-year {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.text-year::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    transition: width 0.6s ease;
}

.text-left .text-year::after {
    right: 0;
    left: auto;
}

.timeline-milestone:hover .text-year::after {
    width: 40px;
}

.text-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.timeline-milestone:hover .text-title {
    color: #7c3aed;
}

.text-description {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.timeline-milestone:hover .text-description {
    color: #4b5563;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tailwind-timeline-container {
        padding: 40px 15px 80px;
        text-align: center;
    }
    
    .timeline-header {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 50px;
        padding: 0 20px;
    }
    
    .timeline-title {
        font-size: 2.5rem;
        white-space: normal;
        text-align: center;
        display: block;
        width: 100%;
    }
    
    .timeline-subtitle {
        font-size: 1rem;
        text-align: center;
        max-width: 100%;
        white-space: normal;
    }
    
    .curved-road-timeline {
        height: 700px;
        transform: scale(0.9) translateX(-200px);
        transform-origin: center top;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }
    
    .timeline-text {
        width: 280px;
    }
    
    .text-title {
        font-size: 1rem;
    }
    
    .text-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .tailwind-timeline-container {
        padding: 30px 10px 60px;
    }
    
    .timeline-header {
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .timeline-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .timeline-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .curved-road-timeline {
        height: 600px;
        transform: scale(0.7) translateX(-280px);
        transform-origin: center top;
    }
    
    .timeline-text {
        width: 220px;
    }
    
    .text-title {
        font-size: 0.9rem;
    }
    
    .text-year {
        font-size: 0.8rem;
    }
    
    .text-description {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .milestone-circle {
        width: 45px;
        height: 45px;
    }
    
    .milestone-icon svg {
        width: 16px;
        height: 16px;
    }
}
