/* Base Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --purple-primary: #8b5cf6;
    --purple-light: #a78bfa;
    --purple-dark: #6d28d9;
    --purple-glow: rgba(139, 92, 246, 0.2);
    --white: #ffffff;
    --white-90: rgba(255, 255, 255, 0.9);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-20: rgba(255, 255, 255, 0.2);
    --white-10: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(26, 26, 46, 0.7);
}

/* Section Base */
#experience {
    background: #0a0017c9;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Background Elements */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(var(--white-10) 1px, transparent 1px),
            linear-gradient(90deg, var(--white-10) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.4;
    z-index: 1;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: float 15s infinite ease-in-out;
}

.floating-particles::before {
    top: 10%;
    left: 80%;
    animation-delay: 0s;
}

.floating-particles::after {
    bottom: 10%;
    left: 10%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(15px); }
}

/* Container */
.experience-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Compact Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 15px;
    letter-spacing: -1px;
}

.title-line {
    width: 80px;
    height: 3px;
    background: var(--purple-primary);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--purple-glow);
}

/* Masonry Grid Layout */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    align-items: start;
}

/* Experience Cards - Compact Design */
.experience-card {
    background: #0d001ec9;
    border-radius: 12px;
    border: 1px solid var(--white-20);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px;
    box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 var(--white-10);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card.featured {
    grid-column: 1 / -1;
    max-width: none;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.4),
            0 0 25px var(--purple-glow),
            inset 0 1px 0 var(--white-20);
}

/* Card Badges */
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--purple-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.card-badge.new {
    background: #10b981;
}

/* Compact Card Header */
.card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.icon-wrapper.engineering {
    background: linear-gradient(135deg, #10b981, #059669);
}

.icon-wrapper.mentor {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.icon-wrapper i {
    font-size: 1.3rem;
    color: white;
}

.role-details h3 {
    width: 70%;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 5px;
    line-height: 1.2;
}

.company {
    font-size: 0.95rem;
    color: var(--purple-light);
    margin: 0 0 8px;
    font-weight: 500;
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta span {
    font-size: 0.8rem;
    color: var(--white-70);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta i {
    width: 12px;
    font-size: 0.8rem;
}

/* Stats Row for Featured Card */
.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-number i {
    color: var(--primary-purple) !important;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--white-70);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Efficiency/Community Highlights */
.efficiency-highlight, .community-stats {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 15px;
}

.community-stats {
    background: #f59e0b1c;
    border-color: rgba(245, 158, 11, 0.3);
}

.efficiency-number, .community-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
}

.community-number {
    color: #f59e0b;
}

.efficiency-text, .community-text {
    font-size: 0.8rem;
    color: var(--white-70);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Compact Highlights */
.highlights {
    margin-bottom: 15px;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--white-90);
}

.highlight i {
    color: var(--purple-light);
    font-size: 0.8rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 12px;
}

/* Compact Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 70%;
}

.skills span {
    background: rgba(139, 92, 246, 0.15);
    color: var(--white-90);
    padding: 4px 15px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.skills span:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

/* Info Card */
.info-card {
    background: #17072d;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.info-header i {
    color: var(--purple-light);
    font-size: 1.2rem;
}

.info-header h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.career-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.career-stat {
    text-align: center;
    flex: 1;
}

.career-stat .number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--purple-light);
    line-height: 1;
}

.career-stat .label {
    display: block;
    font-size: 0.7rem;
    color: var(--white-70);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.specialties h5 {
    color: var(--white);
    margin: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.specialty-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    align-items: center;
}
.specialty-list span {
    display: flex;
    border: 1.56px solid #440080;
    align-items: center;
    font-size: 0.92rem;
    background: rgb(179 145 255 / 7%);
    border-radius: 5px;
    padding: 0.1em 0.4em;
    margin-bottom: 0.15em;
}

.specialty-list i {
    color: var(--purple-light);
    width: 12px;
    margin-right: 12px;
}


.work-details-btn {
    position: absolute;
    top: 105px;
    border: 2px solid #7f53ff85;
    color: white;
    right: 20px;
    padding: 10px 33px;
}

.work-details-btn i {
    color: var(--purple-primary);
}

.work-details-btn:hover {
    background: rgb(78 0 255 / 10%);
    border: 2px solid #8b00ff85;
    color: var(--purple-primary);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .experience-card.featured {
        grid-column: 1;
    }

    .stats-row {
        gap: 10px;
        padding: 12px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .card-header {
        gap: 12px;
    }

    .icon-wrapper {
        width: 45px;
        height: 45px;
    }

    .role-details h3 {
        font-size: 1.2rem;
    }

    .career-stats {
        gap: 10px;
    }
}

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

    .experience-container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .experience-card {
        padding: 15px;
    }

    .stats-row {
        flex-direction: row;
        gap: 8px;
        text-align: center;
    }

    .meta {
        gap: 2px;
    }

    .skills span {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}