/* Experience Page Redesign V4 - Card Stack */

.experience-section {
    padding: 1rem 2% 2rem;
    min-height: 100vh;
    padding-top: 2rem;
    width: 100%;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.main-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Space between Work and Community sections */
}

.section-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.block-title {
    font-size: 1.5rem;
    color: var(--text-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.icon-glow {
    color: #ef3893;
    filter: drop-shadow(0 0 5px rgba(239, 56, 147, 0.4));
}

/* =========================================
   Work Experience Cards
   ========================================= */
.experience-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.job-card {
    background: rgba(20, 20, 23, 0.6);
    backdrop-filter: blur(10px); /* Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle border */
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.job-card:hover {
    background: rgba(25, 25, 30, 0.8);
    border-color: rgba(88, 28, 135, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(88, 28, 135, 0.15);
}

.job-card.featured {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(20,20,23,0.8) 100%);
    border: 1px solid rgba(239, 56, 147, 0.3); /* Slight highlight for calling out current job */
}

/* Header Grid inside Card */
.job-header {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Icon | Title | Date */
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1.5rem;
}

.company-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef3893;
    font-size: 1.8rem;
}

.job-title-group h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.job-title-group h4 {
    color: var(--text-gray);
    font-weight: 400;
    font-size: 1.1rem;
}

.intern-tag {
    background: rgba(239, 56, 147, 0.1);
    color: #ef3893;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-weight: 600;
    text-transform: uppercase;
}

.date-badge {
    background: #ef3893;
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(239, 56, 147, 0.3);
}

.date-badge.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    box-shadow: none;
}

/* List Style */
.job-description li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    font-size: 1rem;
}

.job-description li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #ef3893;
    border-radius: 50%;
}

/* =========================================
   Community Engagement Grid
   ========================================= */
.engagement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.engage-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.engage-card:hover {
    background: rgba(30,30,35,0.8);
    border-color: rgba(88, 28, 135, 0.4);
    transform: translateY(-5px);
}

.engage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.engage-header i {
    font-size: 1.5rem;
    color: #ef3893;
}

.engage-date {
    font-size: 0.75rem;
    background: rgba(239, 56, 147, 0.1);
    color: #ef3893;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
}

.engage-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.engage-loc {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1rem;
    font-style: italic;
}

.engage-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================================
   Maintenance Grid
   ========================================= */
.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.maintenance-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.maintenance-card:hover {
    background: rgba(30, 30, 35, 0.8);
    border-color: rgba(88, 28, 135, 0.4);
    transform: translateY(-3px);
}

.m-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Specific colors for tech stacks */
.m-icon.liferay {
    background: rgba(11, 87, 208, 0.1);
    color: #0b57d0; /* Blue-ish */
}

.m-icon.kentico {
    background: rgba(240, 87, 34, 0.1);
    color: #f05722; /* Orange */
}

.m-icon.xperience {
    background: rgba(0, 150, 136, 0.1);
    color: #009688; /* Teal */
}

.m-icon.flutter {
    background: rgba(66, 165, 245, 0.1);
    color: #42a5f5; /* Light Blue */
}

.m-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.m-content h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.tech-tag {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {
    .job-header {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 1rem;
    }
    
    .job-meta {
        grid-row: 1; /* Move date up or down? Let's verify layout. */
        /* Actually simpler to just stack them */
    }
    
    .engagement-grid {
        grid-template-columns: 1fr; /* Stack vertically on tablet/mobile */
        gap: 1rem;
    }

    .maintenance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .job-card {
        padding: 1.5rem;
    }
    
    .company-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .job-title-group h3 {
        font-size: 1.3rem;
    }
}
