
/*--------------------------------------------------------------
# Experience Section
--------------------------------------------------------------*/

#experience {
    background-image: url(../../images/grid.png);
    background-size: contain;
    padding: 15px 0 80px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

#experience .gradient-text {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(141, 53, 229, 0.3);
}

#experience .container {
    margin-top: var(--section-content-gap);
    position: relative;
}

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

.experience-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--primary-color) 15%,
        var(--secondary-color) 50%,
        var(--primary-color) 85%,
        transparent 100%
    );
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-item.right {
    padding-left: 50%;
}

.timeline-item.left {
    padding-right: 50%;
    justify-content: flex-start;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-dot {
    width: 48px;
    height: 48px;
    background: rgba(141, 53, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, 
        rgba(141, 53, 229, 0.2) 0%,
        transparent 70%
    );
    /* animation: pulse 2s infinite; */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}


.timeline-dot i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.timeline-connector {
    position: absolute;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item.right .timeline-connector {
    left: 100%;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.timeline-item.left .timeline-connector {
    right: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color));
}

.experience-card {
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.company-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.company-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(141, 53, 229, 0.2),
        rgba(31, 38, 135, 0.8)
    );
    opacity: 0.8;
}

.experience-card:hover .company-image img {
    transform: scale(1.1);
}

.experience-card:hover .image-overlay {
    opacity: 0.9;
}

.experience-header {
    margin: 30px;
    margin-bottom: 20px;
    position: relative;
}

.role-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.position-status {
    position: absolute;
    top: -30px;
    right: 0;
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experience-header .role {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    background: var(--primary-gradient-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
}

.company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 20px;
}

.company-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-text);
    font-size: 1rem;
}

.company-info i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(141, 53, 229, 0.1);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--primary-color);
    border: 1px solid rgba(141, 53, 229, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-tag i {
    font-size: 1rem;
}

.tech-tag:hover {
    background: rgba(141, 53, 229, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(141, 53, 229, 0.2);
}

.experience-body .achievements {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.achievement-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(5px);
    border-color: rgba(141, 53, 229, 0.2);
}

.achievement-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(141, 53, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.achievement-icon i {
    color: var(--primary-color);
    font-size: 1rem;
}

.achievement-content {
    flex-grow: 1;
}

.achievement-content p {
    color: var(--muted-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.achievement-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: rgba(141, 53, 229, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.metric i {
    font-size: 0.9rem;
}

.metric:hover {
    background: rgba(141, 53, 229, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .experience-card {
        width: 100%;
        margin: 0 auto;
    }

    .company-info {
        flex-direction: column;
        gap: 15px;
    }

    .tech-tags {
        gap: 8px;
        margin-top: 15px;
    }

    .tech-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .achievement-item {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    #experience .gradient-text {
        font-size: 2rem;
    }

    .experience-header {
        margin: 20px;
    }

    .experience-header .role {
        font-size: 1.4em;
    }

    .company-info span {
        font-size: 0.9rem;
    }

    .achievement-content p {
        font-size: 0.9rem;
    }

    .tech-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tech-tag {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .achievement-metrics {
        gap: 8px;
        flex-wrap: wrap;
    }

    .metric {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

@media (max-width: 576px) {
    #experience {
        padding: 10px 0 40px 0;
    }

    #experience .gradient-text {
        font-size: 1.75rem;
    }

    .experience-card {
        border-radius: 15px;
    }

    .experience-header {
        margin: 15px;
    }

    .experience-header .role {
        font-size: 1.2em;
    }

    .company-info {
        gap: 10px;
    }

    .company-info span {
        font-size: 0.85rem;
    }

    .tech-tags {
        margin-top: 12px;
    }

    .achievement-item {
        padding: 10px;
        gap: 10px;
    }

    .achievement-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .achievement-metrics {
        margin-top: 8px;
    }

    .position-status {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .experience-header .role {
        font-size: 1.1em;
    }

    .company-info span {
        font-size: 0.8rem;
    }

    .tech-tag {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .achievement-content p {
        font-size: 0.8rem;
    }
}
