/* Interactive Experience Section Styles */

/* Company Cards Grid */
.company-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Company Card */
.company-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.company-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.company-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.company-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
}

.company-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-info {
    flex: 1;
}

.company-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.company-info h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.experience-date {
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--light-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

.card-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-2);
    color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.company-card.active .card-arrow {
    transform: rotate(180deg);
}

/* Experience Details */
.experience-details {
    margin-top: 2rem;
}

.experience-detail {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-detail.active {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
    padding: 2rem;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.detail-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    padding: 8px;
    background: var(--light-color);
}

.detail-title h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.detail-title h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.detail-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: var(--gradient-2);
    color: white;
    border-radius: 20px;
    font-weight: 500;
}

.experience-detail ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-detail li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.experience-detail li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .company-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .company-card {
        padding: 1.2rem;
    }
    
    .company-info h3 {
        font-size: 1.1rem;
    }
    
    .company-info h4 {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .company-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .company-card {
        padding: 1rem;
    }
    
    .company-card-content {
        gap: 0.8rem;
    }
    
    .company-info h3 {
        font-size: 1rem;
    }
    
    .company-info h4 {
        font-size: 0.9rem;
    }
    
    .experience-date {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .card-arrow {
        width: 35px;
        height: 35px;
    }
    
    .experience-detail.active {
        padding: 1.5rem;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .detail-logo {
        width: 50px;
        height: 50px;
    }
    
    .detail-title h3 {
        font-size: 1.2rem;
    }
    
    .detail-title h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .company-card {
        padding: 0.8rem;
    }
    
    .company-card-content {
        gap: 0.6rem;
    }
    
    .company-info h3 {
        font-size: 0.95rem;
    }
    
    .company-info h4 {
        font-size: 0.85rem;
    }
    
    .experience-date {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .card-arrow {
        width: 30px;
        height: 30px;
    }
    
    .experience-detail.active {
        padding: 1rem;
    }
    
    .detail-logo {
        width: 40px;
        height: 40px;
    }
    
    .detail-title h3 {
        font-size: 1.1rem;
    }
    
    .detail-title h4 {
        font-size: 0.9rem;
    }
    
    .detail-description p {
        font-size: 0.9rem;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .experience-detail li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
}
