/* Timeline Specific Styles */
.timeline-section {
    padding: 0 0 6rem;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

/* Floating background animations removed */

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 50px;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #e2e8f0, #94a3b8, #e2e8f0);
    transform: translateX(-50%);
    z-index: 0;
    border-radius: 2px;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #2563eb, #06b6d4, #10b981);
    transition: height 0.5s ease;
    border-radius: 2px;
    z-index: 2;
}



.timeline-line.animated::before {
    height: 100%;
}

.timeline-line.animated::after {
    opacity: 1;
}

.timeline::after {
    content: '';
    position: absolute;
    left: 30px;
    bottom: -20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 12px solid #10b981;
    transform: translateX(-50%);
    z-index: 15;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item .timeline-content {
    margin-left: 80px;
    margin-right: 0;
    text-align: left;
}

.timeline-item .timeline-content::after {
    content: '▸';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #e2e8f0;
}

.timeline-marker {
    position: absolute;
    left: 30px;
    top: -10px;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.timeline-marker:hover .marker-icon {
    transform: scale(1.2) rotate(15deg);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.marker-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    border: 4px solid white;
    position: relative;
    z-index: 20;
}

.timeline-item.animate .marker-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.marker-year {
    background: white;
    color: #1e293b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    position: relative;
    z-index: 20;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content::before {
    content: '✦';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1rem;
    color: #cbd5e1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.timeline-content:hover::before {
    color: #2563eb;
    opacity: 0.8;
    transform: rotate(45deg);
}

.timeline-content:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}



/* Future item styling */
.timeline-item.future .marker-icon {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    animation: futurePulse 2s infinite;
}

.timeline-item.future .timeline-content {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-left: 4px solid #7c3aed;
}

.timeline-item.future .highlight-item {
    border-left-color: #7c3aed;
}

@keyframes futurePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
        transform: scale(1.05);
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

/* Testimonials section decorative animations removed */

.testimonials-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1e293b;
}

.testimonials-section .section-header p {
    text-align: center;
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.testimonials-carousel {
    overflow: hidden;
    border-radius: 16px;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 500%;
    will-change: transform;
}

.testimonials-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 20%;
    flex-shrink: 0;
    padding: 0 1rem;
    box-sizing: border-box;
}

.testimonial-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: #2563eb;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
    opacity: 0.2;
}

.testimonial-content {
    margin-bottom: 2rem;
    flex: 1;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.author-avatar:hover {
    border-color: #2563eb;
    transform: scale(1.05);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.author-info p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.carousel-btn {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.carousel-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(148, 163, 184, 0.2);
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: #6b7280;
}

/* Call to Action Section */
.story-cta {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .story-cta {
        padding: 3rem 0;
    }

    .timeline {
        padding: 1rem 0;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-line::after {
        left: 50%;
    }

    .timeline::after {
        left: 30px;
        transform: translateX(-50%);
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 80px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 30px;
    }

    .marker-icon {
        width: 50px;
        height: 50px;
    }

    .marker-year {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.875rem;
    }

    .highlight-item {
        padding: 0.625rem;
    }

    .highlight-item span {
        font-size: 0.85rem;
    }

    .story-cta {
        padding: 3rem 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.875rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }

    .testimonials-section {
        padding: 4rem 0;
    }

    .testimonials-section .section-header h2 {
        font-size: 2rem;
    }

    .testimonials-track {
        width: 500%;
    }

    .testimonials-group {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 20%;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .carousel-nav {
        margin-top: 2rem;
        gap: 0.75rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-content {
        margin-bottom: 1.5rem;
    }

    .testimonial-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .testimonial-author {
        gap: 0.75rem;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    .author-info h4 {
        font-size: 0.95rem;
    }

    .author-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .story-cta {
        padding: 2rem 0;
    }

    .cta-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .cta-content p {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .timeline-item {
        margin-bottom: 3rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-content h3 {
        font-size: 0.95rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
    }

    .timeline-highlights {
        gap: 0.5rem;
    }

    .highlight-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .highlight-icon {
        font-size: 1rem;
    }

    .highlight-item span {
        font-size: 0.8rem;
    }

    .testimonials-section {
        padding: 3rem 0;
    }

    .testimonials-section .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .testimonials-section .section-header p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .testimonial-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .testimonial-card::before {
        font-size: 3rem;
        top: -5px;
        left: 15px;
    }

    .testimonial-content {
        margin-bottom: 1rem;
    }

    .testimonial-content p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .author-info h4 {
        font-size: 0.875rem;
        margin-bottom: 0.125rem;
    }

    .author-info p {
        font-size: 0.75rem;
    }
}