/* --- WORK EXPERIENCE SECTION STYLES (Single-Path Archive) --- */

.timeline-container {
    padding: 8rem 5%;
    position: relative;
    z-index: 5;
    max-height: 1000vh;
}

/* Reused Majestic Headline */
.timeline-headline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 6rem;
    text-align: center;
    background: linear-gradient(90deg, #ffebad 0%, #d8ae43 50%, #ffebad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Central Timeline Line */
.experience-line {
    position: absolute;
    top: 0;
    left: 50%; /* Centralized */
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #00bfff, #0080ff);
    box-shadow: 0 0 15px #00bfff;
    z-index: 1;
}

/* Individual Entry Container */
.timeline-entry {
    display: flex;
    position: relative;
    width: 100%;
    min-height: 500px; /* NEW: Ensure a minimum height */
    margin-bottom: 12rem; /* INCREASED margin to push the next section down */
    z-index: 2;
    padding-top: 20px;
}

/* --- 1. ARCHIVE HEADER (Centralized Metadata) --- */

.archive-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    text-align: center;
    z-index: 5;
    background: #0a0a0f; /* Background to sit above the line */
    padding: 0 10px;
}

.duration-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.15); /* Gold tint */
    color: #d8ae43;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Rajdhani', sans-serif;
}

.position-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    line-height: 1.2;
}

.company-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: #00bfff;
    margin-top: 5px;
}

/* Timeline Node (The Majestic Gold Accent) */
.timeline-node {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    z-index: 10;
    background: linear-gradient(135deg, #ffebad, #d8ae43);
    border: 3px solid #0a0a0f;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    animation: goldPulse 2s infinite alternate;
}

/* --- 2. DETAIL CARD (The Glass Panel) --- */

.detail-card {
    width: 45%; /* Takes up half the horizontal space */
    position: absolute;
    top: 200px; /* Positioned below the header */
    padding: 2rem;
    z-index: 3;
    
    /* Reuse Glass Panel Styles */
    background-color: rgba(15, 20, 25, 0.5);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Left/Right Placement */
.entry-left .detail-card {
    left: 0;
    transform: rotate(2deg); /* Subtle tilt for dynamism */
    transition: all 0.3s ease;
}
.entry-right .detail-card {
    right: 0;
    transform: rotate(-2deg); /* Subtle opposite tilt */
    transition: all 0.3s ease;
}

.entry-left .detail-card:hover { transform: rotate(0deg) scale(1.02); }
.entry-right .detail-card:hover { transform: rotate(0deg) scale(1.02); }


/* Card Content Details */
.logo-and-name {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.impact-value {
    color: #d8ae43; /* Gold color for impact value */
    font-weight: 700;
}
.project-takings {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}
.project-takings li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}
.project-takings i {
    color: #00bfff;
    margin-right: 8px;
    margin-top: 3px;
    font-size: 0.9rem;
}


/* --- 3. SKILL TAGS (Floating Group) --- */

.skill-group-1 {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 4;
    width: 100%;
}

.entry-left .skill-group-1 { justify-content: flex-start; }
.entry-right .skill-group-1 { justify-content: flex-end; }

.skill-tag-1 {
    background: rgba(0, 191, 255, 0.15);
    color: #00bfff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s;
}

/* Responsive Adjustments for Mobile */
@media (max-width: 1024px) {
    .archive-header {
        position: static;
        transform: none;
        width: 100%;
        text-align: left;
        margin-bottom: 1.5rem;
    }
    .timeline-node { display: none; }
    .experience-line { left: 10px; }

    .timeline-entry {
        flex-direction: column;
        padding-left: 20px;
        margin-bottom: 3rem;
    }
    
    .detail-card {
        position: static;
        width: 100%;
        transform: none;
        padding: 1.5rem;
    }

    .skill-group-1 {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }

    .entry-right .skill-group-1 {
        justify-content: flex-start;
    }
}