/* ========================================
   EXPERIENCE PAGE - TIMELINE DESIGN & SOLID THEME
   Matches Education Page Design
   ======================================== */

#experience {
    background: #fff !important;
    padding: 4rem 0 !important;
}

html.dark #experience {
    background: #000 !important;
}

/* Section Title */
#experience h2 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
    background: linear-gradient(135deg, #0071e3, #2997ff) !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

html.dark #experience h2 {
    background: linear-gradient(135deg, #58a6ff, #79c0ff) !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ========================================
   TIMELINE LAYOUT
   ======================================== */

.experience-timeline {
    max-width: 1000px;

    /* Limit width for readability */
    margin: 0 auto;
    position: relative;
    padding-left: 0;
}

/* Timeline Vertical Line */
.experience-timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0071e3, #2997ff);
    z-index: 0;
}

html.dark .experience-timeline::before {
    background: linear-gradient(to bottom, #2997ff, #0071e3);
}

/* Timeline Item Container */
.experience-item {
    position: relative;
    padding-left: 90px;

    /* Space for icon */
    margin-bottom: 3rem;
}

.experience-item:last-child {
    margin-bottom: 0;
}

/* Timeline Icon */
.experience-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0071e3, #2997ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgb(0 113 227 / 40%);
    z-index: 2;
    border: 4px solid #fff;

    /* White border to separate from line */
}

html.dark .experience-icon {
    border-color: #000;

    /* Black border in dark mode */
    background: linear-gradient(135deg, #0A84FF, #5E5CE6);

    /* Brighter Blue-Purple */
    box-shadow: 0 0 15px rgb(10 132 255 / 50%), 0 8px 20px rgb(0 0 0 / 40%);
}

.experience-icon i {
    font-size: 1.5rem;
    color: #fff;
}

/* Section Header within Timeline (e.g. Full-Time) */
.timeline-section-header {
    margin-left: 90px;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0071e3 !important;
    background: #fff;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgb(0 0 0 / 10%);
}

html.dark .timeline-section-header h3 {
    background: #000;
    color: #58a6ff !important;
    border-color: rgb(255 255 255 / 15%);
}

/* ========================================
   EXPERIENCE CARD (Content)
   ======================================== */

.experience-content {
    background: #fff !important;

    /* Solid White */
    border: 1px solid rgb(0 0 0 / 10%) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 24px rgb(0 0 0 / 5%) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
}

html.dark .experience-content {
    background: #000 !important;

    /* Solid Black */
    border-color: rgb(255 255 255 / 15%) !important;
    box-shadow: 0 4px 24px rgb(0 0 0 / 40%) !important;
}

.experience-content:hover {
    transform: translateX(8px) !important;

    /* Slide right on hover like Education */
    box-shadow: 0 16px 48px rgb(0 0 0 / 10%) !important;
    border-color: rgb(0 113 227 / 30%) !important;
}

html.dark .experience-content:hover {
    box-shadow: 0 20px 60px rgb(0 0 0 / 60%) !important;
    border-color: rgb(41 151 255 / 40%) !important;
}

/* ========================================
   TYPOGRAPHY & VISIBILITY
   ======================================== */

/* Job Title */
.experience-content h3.text-xl {
    color: #000 !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.25rem !important;
    font-weight: 700 !important;
}

html.dark .experience-content h3.text-xl {
    color: #fff !important;
}

/* Company Name */
.experience-content .text-accent {
    color: #0071e3 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

html.dark .experience-content .text-accent {
    color: #58a6ff !important;
}

/* Date Badge */
.experience-date-badge {
    background: rgb(0 113 227 / 10%) !important;
    color: #0071e3 !important;
    border-radius: 100px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    display: inline-block !important;
    margin-bottom: 1.5rem !important;
}

html.dark .experience-date-badge {
    background: rgb(41 151 255 / 15%) !important;
    color: #58a6ff !important;
}

/* Description List */
.experience-content ul {
    margin-top: 1rem !important;
}

.experience-content li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    color: #1d1d1f !important;
    line-height: 1.6 !important;
}

html.dark .experience-content li {
    color: #f5f5f7 !important;
}

/* Tick Icons - Vibrant Green */
.experience-content li svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin-top: 0.25rem !important;
    opacity: 1 !important;

    /* Always visible */
    transform: none !important;

    /* No offset */
    transition: none !important;
    color: #248a3d !important;

    /* Darker Green for better visibility on white */
    filter: drop-shadow(0 2px 4px rgb(36 138 61 / 20%));
}

html.dark .experience-content li svg {
    color: #30d158 !important;

    /* Apple Dark Green - Pops on black */
    filter: drop-shadow(0 2px 4px rgb(48 209 88 / 30%));
}

.experience-content li:hover svg {
    opacity: 1 !important;
    transform: none !important;
}

.experience-content li span {
    transition: transform 0.3s ease !important;
    display: block !important;
}

.experience-content li:hover span {
    transform: translateX(5px) !important;
}

/* Tags */
.experience-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-top: 1.5rem !important;
}

.experience-tag {
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    border: 1px solid rgb(0 0 0 / 5%) !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
    border-radius: 100px !important;
    font-weight: 500 !important;
}

html.dark .experience-tag {
    background: #1c1c1e !important;
    color: #f5f5f7 !important;
    border-color: rgb(255 255 255 / 10%) !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (width <=768px) {
    .experience-timeline::before {
        left: 24px !important;
    }

    .experience-item {
        padding-left: 70px !important;
    }

    .timeline-section-header {
        margin-left: 70px !important;
    }

    .experience-icon {
        width: 48px !important;
        height: 48px !important;
    }

    .experience-icon i {
        font-size: 1.25rem !important;
    }
}