/* Beautiful Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 3rem;
    border-left: 3px solid;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-left: 0.5rem;
}

.timeline-item:last-child {
    border-left: 3px solid transparent;
    padding-bottom: 0;
}

.timeline-item:hover {
    transform: translateX(4px);
}

/* Beautiful gradient timeline dots */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1);
}

/* Light theme timeline styling */
.light-theme .timeline-item::before {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.light-theme .timeline-item:hover::before {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.4),
        0 0 0 8px rgba(99, 102, 241, 0.1);
}

/* Dark theme timeline styling */
.dark-theme .timeline-item::before {
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    border-color: #1f2937;
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

.dark-theme .timeline-item:hover::before {
    background: linear-gradient(135deg, #06b6d4, #4f46e5);
    box-shadow: 
        0 4px 20px rgba(34, 211, 238, 0.4),
        0 0 0 8px rgba(34, 211, 238, 0.1);
}

/* Beautiful gradient timeline lines */
.light-theme .timeline-item {
    border-left: 3px solid;
    border-image: linear-gradient(to bottom, #6366f1, #8b5cf6, #ec4899) 1;
}

.dark-theme .timeline-item {
    border-left: 3px solid;
    border-image: linear-gradient(to bottom, #22d3ee, #6366f1, #a855f7) 1;
}

/* Beautiful Timeline Icons */
.timeline-icon {
    position: absolute;
    left: -1.5rem;
    top: -0.125rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
    cursor: pointer;
}

.timeline-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Light theme timeline icons */
.light-theme .timeline-icon {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 3px solid #6366f1;
    color: #4f46e5 !important; 
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 0 rgba(99, 102, 241, 0.2);
    font-weight: 900;
}

.light-theme .timeline-icon:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.4),
        0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Dark theme timeline icons */
.dark-theme .timeline-icon {
    background: linear-gradient(135deg, #374151, #4b5563);
    border: 2px solid #6b7280;
    color: #ffffff; 
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 0 rgba(34, 211, 238, 0.2);
}

.dark-theme .timeline-icon:hover {
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    border-color: #06b6d4;
    color: #ffffff;
    box-shadow: 
        0 8px 24px rgba(34, 211, 238, 0.4),
        0 0 0 4px rgba(34, 211, 238, 0.1);
}

/* Enhanced experience container for dark theme */
.experience-container {
    transition: all 0.3s ease;
}

.dark-theme .experience-container {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(31, 41, 55, 0.6));
    border: 1px solid rgba(34, 211, 238, 0.1);
}

.dark-theme .experience-container:hover {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.8));
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.1);
}

/* Enhanced switcher for dark theme */
.experience-switcher {
    transition: all 0.3s ease;
}

.dark-theme .experience-switcher {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

/* Job title enhancement for dark theme */
.job-title {
    transition: all 0.3s ease;
}

.dark-theme .job-title {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Company name styling for dark theme */
.company-name {
    transition: all 0.3s ease;
}

.dark-theme .company-name {
    color: #94a3b8;
}

/* Achievement list styling for dark theme */
.dark-theme .achievement-item {
    position: relative;
    padding-left: 1rem;
    list-style: none;
}

.dark-theme .achievement-item::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #22d3ee;
    font-size: 0.75rem;
}

.experience-fade-enter-active,
.experience-fade-leave-active {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.experience-fade-enter-from,
.experience-fade-leave-to {
  opacity: 0;
  transform: translateX(10px);
}

/* ========================================
   MOBILE OPTIMIZATIONS FOR EXPERIENCE
   ======================================== */

@media (max-width: 768px) {
    /* Timeline mobile adjustments */
    .timeline-item {
        padding-left: 2rem;
        padding-bottom: 2rem;
        border-left-width: 2px;
    }
    
    .timeline-item::before {
        width: 12px;
        height: 12px;
        left: -7px;
        border-width: 2px;
    }
    
    /* Simplify hover effects on mobile */
    .timeline-item:hover {
        transform: none;
    }
    
    .timeline-item:hover::before {
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    }
    
    /* Timeline icons mobile */
    .timeline-icon {
        width: 2.25rem;
        height: 2.25rem;
        left: -1.125rem;
        font-size: 0.75rem;
    }
    
    .timeline-icon:hover {
        transform: scale(1.05);
    }
    
    /* Experience container mobile */
    .experience-container {
        padding: 1rem;
    }
    
    .dark-theme .experience-container:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Typography mobile */
    .job-title {
        font-size: 1rem;
    }
    
    .company-name {
        font-size: 0.875rem;
    }
    
    .timeline-item ul li {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        padding-left: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .timeline-item::before {
        width: 10px;
        height: 10px;
        left: -6px;
    }
    
    .timeline-icon {
        width: 2rem;
        height: 2rem;
        left: -1rem;
        font-size: 0.625rem;
    }
    
    .experience-container {
        padding: 0.875rem;
    }
    
    .job-title {
        font-size: 0.9375rem;
    }
    
    .company-name {
        font-size: 0.8125rem;
    }
    
    .timeline-item ul li {
        font-size: 0.75rem;
    }
}
