/* ==========================================
   EXPERIENCE TIMELINE PREMIUM V2
========================================== */

.experience {
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    top: -300px;
    left: -250px;
    background: rgba(139, 92, 246, .15);
    filter: blur(180px);
    pointer-events: none;
}

.experience::after {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    right: -250px;
    bottom: -250px;
    background: rgba(6, 182, 212, .12);
    filter: blur(180px);
    pointer-events: none;
}

/* ======================
   SECTION HEADER
====================== */

.section-heading {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(139, 92, 246, .25);
    color: #c4b5fd;
    margin-bottom: 20px;
}

.section-subtitle {
    max-width: 700px;
    margin: 20px auto 0;
}

/* ======================
   CAREER STATS
====================== */

.career-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.career-stat {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    transition: .4s;
}

.career-stat:hover {
    transform: translateY(-8px);
    border-color: rgba(139,92,246,.4);
}

.career-stat h3 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.career-stat span {
    color: var(--text-secondary);
}

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

.timeline {
    position: relative;
    max-width: 950px;
    margin: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 0;
    width: 2px;
    height: 100%;
    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--primary),
            var(--secondary),
            transparent
        );
}

.timeline-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 50px;
}

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

/* ======================
   DOT
====================== */

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 35px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--body-bg);
    z-index: 5;
}

.timeline-dot::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: rgba(139,92,246,.25);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0% {
        transform: scale(.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }

}

/* ======================
   CARD
====================== */

.timeline-card {
    position: relative;
    overflow: hidden;

    background: rgba(255,255,255,.03);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 28px;

    padding: 35px;

    transition: .4s;
}

.timeline-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 28px;
    background: var(--gradient-primary);

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    opacity: 0;
    transition: .4s;
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

/* ======================
   WATERMARK
====================== */

.year-watermark {
    position: absolute;
    right: 20px;
    bottom: -5px;
    font-size: 90px;
    font-weight: 900;
    color: rgba(255,255,255,.03);
    pointer-events: none;
    line-height: 1;
}

/* ======================
   TOP
====================== */

.timeline-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.company-logo {
    width: 65px;
    height: 65px;
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(139,92,246,.2),
            rgba(6,182,212,.2)
        );

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    color: var(--primary);
}

.company-info h3 {
    margin-bottom: 5px;
}

.role {
    color: var(--text-secondary);
}

.duration {
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(139,92,246,.15);
    border: 1px solid rgba(139,92,246,.25);
    color: #c4b5fd;
    font-size: .9rem;
    white-space: nowrap;
}

/* ======================
   ACHIEVEMENT
====================== */

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 12px 18px;

    border-radius: 999px;

    background: rgba(34,197,94,.12);

    border: 1px solid rgba(34,197,94,.25);

    color: #4ade80;

    margin-bottom: 25px;
}

.achievement-badge i {
    color: #22c55e;
}

/* ======================
   RESPONSIBILITIES
====================== */

.responsibilities {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.responsibilities li {
    position: relative;
    padding-left: 30px;
    color: var(--text-secondary);
}

.responsibilities li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

/* ======================
   STACK
====================== */

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack span {
    padding: 10px 16px;
    border-radius: 999px;

    background: rgba(255,255,255,.05);

    border: 1px solid rgba(255,255,255,.08);

    transition: .3s;
}

.tech-stack span:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ======================
   MOBILE
====================== */

@media(max-width:992px){

    .career-stats{
        grid-template-columns: repeat(2,1fr);
    }

}

@media(max-width:768px){

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

    .timeline-item{
        padding-left:50px;
    }

    .timeline-dot{
        left:1px;
        width:26px;
        height:26px;
    }

    .timeline-top{
        flex-direction:column;
        align-items:flex-start;
    }

    .timeline-card{
        padding:25px;
    }

    .company-logo{
        width:55px;
        height:55px;
        font-size:20px;
    }

    .year-watermark{
        font-size:60px;
    }

}

@media(max-width:576px){

    .career-stats{
        grid-template-columns:1fr;
    }

    .career-stat{
        padding:25px;
    }

    .career-stat h3{
        font-size:2rem;
    }

}   