/* Modern Professional Timeline CSS */
/* Compatible with Beautiful Jekyll theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Timeline container styling */
.timeline-wrapper {
    min-height: 100vh;
    color: #00420c;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 4rem 0;
    margin: -2rem -15px 0 -15px; /* Override Beautiful Jekyll container margins */
}

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

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative;
}

.timeline-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 300;
    color: #00420c;
}

.timeline {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Central line with animated gradient */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
    rgb(7, 122, 237) 0%,       /* Bold modern blue */
    rgba(0, 80, 200, 0.9) 50%,     /* Teal aqua accent */
    rgba(224, 243, 255, 1) 100%     /* Soft pastel blue */
    );
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.08), rgba(250, 128, 114, 0.08)); /* light pink to salmon */
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 105, 135, 0.3); /* rosy border */
    box-shadow: 
        0 20px 40px rgba(255, 105, 135, 0.3),  /* outer pinkish glow */
        inset 0 1px 0 rgba(255, 182, 193, 0.2); /* soft blush inner light */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(68, 2, 88, 0.4),
        0 0 40px rgba(152, 7, 214, 0.2);
    border-color: rgba(235, 19, 173, 0.3);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .timeline-link:hover .timeline-content {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
      0 30px 60px rgba(68, 2, 88, 0.4),
      0 0 40px rgba(152, 7, 214, 0.2);
    border-color: rgba(235, 19, 173, 0.3);
  }
  

/* Timeline dots with pulse animation */
.timeline-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FFD1DC 0%, #FF7F7F 100%);
    border-radius: 50%;
    border: 2px solid rgba(162, 11, 56, 0.9);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 #FF7F7F;
    }
    50% {
        box-shadow: 0 0 0 15px #FFD1DC;
    }
}

/* Content styling */
.job-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ea615c;
    margin-bottom: 0.5rem;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.job-title:hover {
    color: #ea615c;
    text-decoration: none;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ea615c;
    margin-bottom: 0.5rem;
}

.company-full {
    font-size: 1.15rem;
    color: #ea615c;
    margin-bottom: 1rem;
}

.company-full-name {
    font-size: 0.95rem;
    color: #004aad;
    margin-bottom: 1rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #E0F3FF 0%, #2F8FED 100%);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #030303;
    border: 1px #2F8FED;
    margin-top: 1rem;
}

/* Arrow pointers */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -30px;
    border-left-color: rgba(255, 255, 255, 0.05);
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -30px;
    border-right-color: rgba(255, 255, 255, 0.05);
}

/* Floating particles animation */
/* .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(79, 172, 254, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 85%; animation-delay: 1s; }
.particle:nth-child(3) { top: 80%; left: 15%; animation-delay: 2s; }
.particle:nth-child(4) { top: 30%; left: 90%; animation-delay: 3s; } */

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .timeline-wrapper {
        padding: 2rem 0;
        margin: -2rem -15px 0 -15px;
    }

    .timeline-container {
        padding: 0 1rem;
    }

    .timeline-title {
        font-size: 2rem;
    }

    .timeline-subtitle {
        font-size: 1rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px !important;
        margin-right: 0 !important;
        padding: 1.5rem;
    }

    .timeline-content::after {
        left: -30px !important;
        right: auto !important;
        border-right-color: rgba(255, 255, 255, 0.05) !important;
        border-left-color: transparent !important;
    }

    .timeline-dot {
        left: 30px;
        transform: translateY(-50%);
    }

    .job-title {
        font-size: 1.2rem;
    }

    .job-title {
        font-size: 1rem;
    }

    .company-full-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .timeline-title {
        font-size: 1.8rem;
    }

    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 50px !important;
        padding: 1.2rem;
    }

    .timeline-dot {
        left: 25px;
        width: 16px;
        height: 16px;
    }

    .job-title {
        font-size: 1.1rem;
    }
}

/* Beautiful Jekyll theme compatibility */
.timeline-wrapper .container {
    max-width: none;
    padding: 0;
}

/* Override any conflicting Beautiful Jekyll styles */
.timeline-wrapper * {
    box-sizing: border-box;
}

.timeline-wrapper a {
    color: inherit;
}

.timeline-wrapper a:hover {
    text-decoration: none;
}