.experience {
    background: var(--bg);
    min-height: auto;
    position: relative;
}

.experience-container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* ── Heading ── */
.experience-heading {
    margin-bottom: 2.2rem;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
}

.experience-heading h2 {
    font-family: "Playfair Display", Georgia, serif;
    margin-top: 0.4rem;
    color: var(--text-title);
    font-size: clamp(1.75rem, 2.6vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.4px;
}

.experience-intro {
    margin-top: 0.8rem;
    max-width: 560px;
    color: var(--text-sub);
    font-size: 0.98rem;
    line-height: 1.8;
}

/* ── Experience Cards List ── */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.experience-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.4rem 2.6rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.experience-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--grad-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover {
    border-color: var(--border-h);
    transform: translateY(-3px);
    box-shadow: var(--shadow-h);
}

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

/* Left meta info (Dates & Organization) */
.exp-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.exp-period {
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.exp-badge {
    display: inline-block;
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(154, 106, 122, 0.2);
    border-radius: 6px;
    width: fit-content;
    font-weight: 600;
}

.exp-company {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-title);
    margin-top: 0.2rem;
    letter-spacing: -0.2px;
}

.exp-location {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* Right content info (Role, summary & tech tags) */
.exp-content {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.exp-role {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-title);
    letter-spacing: -0.3px;
}

.exp-desc {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.8;
}

.exp-highlights {
    list-style: none;
    margin: 0.4rem 0 0.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.exp-highlights li {
    font-size: 0.9rem;
    color: var(--text);
    position: relative;
    padding-left: 1.3rem;
    line-height: 1.65;
}

.exp-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.2;
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.exp-tech span {
    font-size: 0.74rem;
    font-weight: 500;
    padding: 0.32rem 0.75rem;
    border-radius: 99px;
    background: var(--bg-alt);
    color: var(--text-sub);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.experience-card:hover .exp-tech span {
    background: var(--surface);
    border-color: var(--border-h);
    color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .experience-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.8rem;
    }
}

@media (max-width: 600px) {
    .experience {
        padding: 55px 6%;
    }
}
