/* GP Timeline Plugin Styles */

.gp-timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gp-timeline {
    position: relative;
    padding: 40px 0;
}

.gp-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
    z-index: 0;
}

.gp-timeline-item {
    position: relative;
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 200px;
    display: flex;
    align-items: flex-start;
}

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

.gp-timeline-marker {
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #2c5aa0;
    border: 4px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 3px 15px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
}

.gp-timeline-marker span {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    z-index: 21;
}

.gp-timeline-image {
    width: 45%;
    height: auto;
    min-height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    transition: none;
    position: relative;
}

.gp-timeline-image.left {
    margin-right: 10%;
    order: 1;
}

.gp-timeline-image.right {
    margin-left: 10%;
    order: 2;
}

.gp-timeline-image img {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

.gp-timeline-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 45%;
    position: relative;
    align-self: flex-start;
}

.gp-timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.gp-timeline-content.left {
    order: 2;
}

.gp-timeline-content.right {
    order: 1;
}

.gp-timeline-step {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2c5aa0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.gp-timeline-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.gp-timeline-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

.gp-timeline-description p {
    margin-bottom: 12px;
}

.gp-timeline-description p:last-child {
    margin-bottom: 0;
}

.gp-timeline-item:hover .gp-timeline-marker {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 5px 25px rgba(44, 90, 160, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gp-timeline-line {
        left: 30px;
    }
    
    .gp-timeline-item {
        margin-bottom: 80px;
        margin-left: 70px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gp-timeline-image.left,
    .gp-timeline-image.right {
        width: 100%;
        max-width: 300px;
        margin: 0 0 20px 0;
        order: 1;
    }
    
    .gp-timeline-content.left,
    .gp-timeline-content.right {
        width: 100%;
        max-width: none;
        padding: 25px;
        order: 2;
    }
    
    .gp-timeline-marker {
        left: 30px;
        top: 20px;
        width: 40px;
        height: 40px;
        transform: translateX(-50%);
    }
    
    .gp-timeline-marker span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gp-timeline-container {
        padding: 20px 15px;
    }
    
    .gp-timeline-item {
        margin-bottom: 60px;
        margin-left: 60px;
    }
    
    .gp-timeline-image.left,
    .gp-timeline-image.right {
        max-width: 250px;
    }
    
    .gp-timeline-content h4 {
        font-size: 1.2rem;
    }
    
    .gp-timeline-marker {
        width: 35px;
        height: 35px;
        left: 25px;
    }
    
    .gp-timeline-marker span {
        font-size: 0.8rem;
    }
    
    .gp-timeline-line {
        left: 25px;
    }
}

/* Animation Classes for JavaScript */
.gp-timeline-item.fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.gp-timeline-item.fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* Stem Animation */
.gp-timeline-line.animate {
    background: linear-gradient(to bottom, 
        #2c5aa0 0%, 
        #4a90e2 50%, 
        #2c5aa0 100%);
    background-size: 100% 200%;
    animation: stemPulse 3s ease-in-out infinite;
}

@keyframes stemPulse {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
}

/* Progressive color change for markers during scroll */
.gp-timeline-marker.active {
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% {
        box-shadow: 0 3px 15px rgba(44, 90, 160, 0.3);
    }
    50% {
        box-shadow: 0 5px 25px rgba(44, 90, 160, 0.6);
        transform: translateX(-50%) scale(1.05);
    }
}
